Count Unique Alignments in BAM file
1
0
Entering edit mode
7.7 years ago
colin.kern ★ 1.1k

I want to get the number of alignments in my bam file that aren't duplicates. I've run Picard Tools to mark duplicates on the bam file, but didn't use the option to actually remove them. I'd prefer not to rerun that step, but I can't figure out how to get a count of this. The samtools flagstat output gives one number (6,689,555) for duplicates, but samtools view -c -F 1024 gives something different (3,266,467). I'm confused.

RNA-Seq alignment • 3.1k views
ADD COMMENT
0
Entering edit mode
7.7 years ago

You should be using -f instead -F

ADD COMMENT

Login before adding your answer.

Traffic: 2004 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