Hello,
I'm sorry if this is out of the blue since this was answered more than a year ago...
I was struggling with the exact same thing. I want to know the number of reads that mapped so I can have an idea of the mapping % and success.
I used samtools flagstats first but I got a huge number! However, now I understand that it's due to the multiple alignments that are allowed.
Next, I checked the library sizes in edgeR and they seem about right, giving me aproximately 460M reads in total for all samples (I doubled the expected counts, since they are counts for fragments, right?), when the input is 650M, which means that is some amount of failure, which is ok. Now I was looking to the my_sample.rsem.out.cnt file in the my_sample.rsem.out.stat/ folder and I can see that the #total reads is exactly half of what it should be (counted by the input fastqcs). Am I reading this wrong or this is a count for fragments and I should double it too? Here is an example for 1 sample
Library size in EdgeR: 16061092 (the double would be the number of reads right?)
# of alignable reads in .cnt file: 16279180
# of total "reads" in .cnt file: 22002705 (which is exactly half of what it should be by the .cnt)
# of input reads counted in fastqc: 44005410 (which is exactly double of what it should be by the .cnt)
I'm pretty sure that I didn't count the input wrong because I've did it with a custom script, FastQC and with wc -l and they all converge in the same number.
This is the head of my_sample.rsem.out.cnt:
5723525 16279180 0 22002705
16222463 56717 6069312
37528223 3
0 5723525
1 10209868
2 2878169
3 645611
4 970148
5 263091
6 386832