Entering edit mode
18 months ago
Komal
•
0
How to remove unmapped reads from bam file?
How to remove unmapped reads from bam file?
samtools view -b -F 4 in.bam > out.bam
The -b
outputs in bam format, and the -F 4
excludes all reads with the "read unmapped" flag set.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.