minimap2 icon indicating copy to clipboard operation
minimap2 copied to clipboard

How to obtain fastq format file after mapping?

Open bioramg opened this issue 3 years ago • 1 comments

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.

bioramg avatar Nov 06 '20 02:11 bioramg

You can simply use samtools for that samtools fastq in.sam > out.fastq

erekevan avatar Jul 06 '22 22:07 erekevan