Get # of unique mapped reads from Tophat output
1
3
Entering edit mode
9.4 years ago
colin.kern ★ 1.1k

I'm using Tophat to align RNA-Seq reads to a genome. I want to know how many reads aligned, but I didn't know about the -g option when I ran Tophat, so the normal commands like "samtools -c accepted_hits.bam" isn't giving me the number of unique reads in the file, it's giving me the total number of alignments. Is there any way I can get this information without re-running Tophat?

RNA-Seq Tophat • 3.1k views
ADD COMMENT
4
Entering edit mode
9.4 years ago

samtools view -c -F 256 accepted_hits.bam

ADD COMMENT

Login before adding your answer.

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