unmapped reads
1
0
Entering edit mode
18 months ago
Komal • 0

How to remove unmapped reads from bam file?

unmapped reads • 540 views
ADD COMMENT
3
Entering edit mode
18 months ago
d-cameron ★ 2.9k

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.

ADD COMMENT

Login before adding your answer.

Traffic: 2057 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6