minimap2
minimap2 copied to clipboard
How to obtain fastq format file after mapping?
I used minimap2 for mapping ONT reads with the plant mitochondrial genome database and obtained sam file. I would like to know how to extract potential ONT reads in a .fastq format after mapping?
The following commands used: $minimap2 -ax map-ont ref.fasta ONT_reads.fastq > aln.sam
Thank you and looking forward to hearing from you.
You can simply use samtools for that samtools fastq in.sam > out.fastq