Open ReemaSingh opened 3 months ago
Yes, this is expected. If a read maps to more than one chromosome, it should not be counted because it cannot be unambiguously assigned to one feature. However, if you run the alignment for each chromosome separately, the aligner cannot detect such ambiguity and cannot mark it.
Thank you, @simon-anders for your response. I understand it now.
Just one more query - What about ambiguity within a single chromosome? Is there a way to fix it?
I am asking this question because I checked the count of one ID (i.e., ENSMUSG00000020870) and I found:
Whereas the original count of this ID using BAM files (generated without splitting the genome) is "35".
If you want to get at the bottom of this, you could re-run htseq-count on your separate BAM file with the option --samout
. You will get a SAM file where each alignment is annotated with how it is counted. Use grep to find the IDs of the 1182 reads assigned to your feature, pick a few of them at random, and grep them in the integrated BAM file to see whether they are multimappers there.
Thank you for your response, @simon-anders. I got the SAM output and I am currently comparing them.
Hi,
I wonder if anyone in this community can help me figure out the reason behind the discrepancy in counts. Please see below:
I am using HTSeq-count to generate counts from two different types of alignments. These alignments were generated using two different types of genome indexes built from the same genome using the STAR aligner. See below the detailed process I have used to generate the counts:
Genome used: Mus_musculus.GRCm39.dna_sm.toplevel.fa
Scenario 1: Using full genome to generate genome index and counts:
Scenario 2: Split the genomes into separate chromosomes.
Ideally, the final counts generated from both the above scenarios should be the same. But, in my case, the counts generated from Scenario 2 are much higher than Scenario 1 in a lot of IDs.
I have also tried feature-count (from the Rsubread Bioconductor package) to generate counts from the above two scenarios but again the counts are different.
I would highly appreciate any response.
Many Thanks, Reema,