This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Get # of unique mapped reads from Tophat output

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

1 answer

samtools view -c -F 256 accepted_hits.bam

Log in to answer this question.