Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • chumho
    Junior Member
    • Jan 2013
    • 4

    htseq-count __alignment_not_unique vs tophat

    Hi guys,

    I'm really confused by the numbers between tophat & htseq-count.

    There was a huge difference between __alignment_not_unique from htseq-count and unmapped reads from tophat. Here's the data:

    I mapped single-end, 50-bp short reads to mouse genome using tophat2.

    alignment_summary.txt from tophat showed this statistics below:

    Reads:
    Input : 59054037
    Mapped : 57231649 (96.9% of input)
    of these: 10102891 (17.7%) have multiple alignments (5593 have >20)
    96.9% overall read mapping rate.

    However, when I used htseq-count (v0.6.1p1, -s no) to do a raw count from accepted_hits.bam. I got a large number of non-unique alignment. See below:

    __no_feature 9924659
    __ambiguous 1401163
    __too_low_aQual 0
    __not_aligned 0
    __alignment_not_unique 25773467

    unmappable reads from tophat = 59045037-57231649 ~= 1.8M, but htseq-count was 25M

    Does it make sense to compare these two numbers? What might be wrong? BTW, both tophat and htseq-count used the same genes.gtf.

    Also, when I added up the numbers from the log file produced by htseq-count, the counts added up ~73M (mapped+no feature+ambiguous+not_unique), which was much higher than the 59M reads printed from tophat (and fastqc). Why?

    Many thanks.
  • cmbetts
    Senior Member
    • Jun 2012
    • 120

    #2
    Originally posted by chumho View Post
    Hi guys,

    I'm really confused by the numbers between tophat & htseq-count.

    There was a huge difference between __alignment_not_unique from htseq-count and unmapped reads from tophat. Here's the data:

    I mapped single-end, 50-bp short reads to mouse genome using tophat2.

    alignment_summary.txt from tophat showed this statistics below:

    Reads:
    Input : 59054037
    Mapped : 57231649 (96.9% of input)
    of these: 10102891 (17.7%) have multiple alignments (5593 have >20)
    96.9% overall read mapping rate.

    However, when I used htseq-count (v0.6.1p1, -s no) to do a raw count from accepted_hits.bam. I got a large number of non-unique alignment. See below:

    __no_feature 9924659
    __ambiguous 1401163
    __too_low_aQual 0
    __not_aligned 0
    __alignment_not_unique 25773467

    unmappable reads from tophat = 59045037-57231649 ~= 1.8M, but htseq-count was 25M

    Does it make sense to compare these two numbers? What might be wrong? BTW, both tophat and htseq-count used the same genes.gtf.

    Also, when I added up the numbers from the log file produced by htseq-count, the counts added up ~73M (mapped+no feature+ambiguous+not_unique), which was much higher than the 59M reads printed from tophat (and fastqc). Why?

    Many thanks.
    The tophat output says that 17.7% of your reads ~10M have multiple alignments. Those will all get counted as _alignment_no_unique since they can't be assigned to a unique site in the genome. Additionally, they'll show up multiple times in the sam/bam file, once for each possible alignment, which is why you can have more overall counts from htseq-count than you have reads.

    Comment

    • chumho
      Junior Member
      • Jan 2013
      • 4

      #3
      Thanks cmbetts for the reply.

      I agree that "The tophat output says that 17.7% of your reads ~10M have multiple alignments. Those will all get counted as _alignment_no_unique since they can't be assigned to a unique site in the genome." So that explains the 1.8M I calculated.

      "Additionally, they'll show up multiple times in the sam/bam file, once for each possible alignment, which is why you can have more overall counts from htseq-count than you have reads." Are you saying the unit of "__alignment_not_unique" is times instead of reads? E.g. One non-unique read mapped 6 locations will be added 6 times in "__alignment_not_unique" by htseq-count but it is counted as 1 by tophat?

      Comment

      • cmbetts
        Senior Member
        • Jun 2012
        • 120

        #4
        Think that you're misinterpreting the tophat output. You have 1.8M unmapped reads. Tophat doesn't even put those in the bam file, and if it did, they would be counted as _not_aligned.
        While tophat was able to map 96.9% of your reads (57.2M), 17.7% of those (10.1M) are not uniquely aligned, meaning that they have equally good alignments to two or more places in the genome. For those reads, they will have as many occurrences in the bam file as they have valid alignments, which means the bam has a minimum of 20.2M occurrences of those reads and some of those reads will have more than just two alignments, bringing the total up to the 25.7M seen by running htseq-count.

        from the htseq-count FAQ:
        Why is the sum of all counts different from the number of reads in my FASTQ file?
        A read with more than one reported alignment appears only once in the FASTQ file, but several times in the SAM file (once for each alignment), and each time htseq-count encounters one, it increased the __alignment_not_unique counter by one. Therefore, mutiply aligned reads are counted multiple times.

        Comment

        • chumho
          Junior Member
          • Jan 2013
          • 4

          #5
          Thanks. It makes sense now.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
            by SEQadmin2


            Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

            The systematic characterization of the human proteome has
            ...
            07-20-2026, 11:48 AM
          • SEQadmin2
            Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
            by SEQadmin2



            Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
            ...
            07-09-2026, 11:10 AM
          • SEQadmin2
            Cancer Drug Resistance: The Lingering Barrier to Rising Survival
            by SEQadmin2



            Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

            There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
            07-08-2026, 05:17 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-24-2026, 12:17 PM
          0 responses
          29 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-23-2026, 11:41 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-20-2026, 11:10 AM
          0 responses
          211 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-13-2026, 10:26 AM
          0 responses
          78 views
          0 reactions
          Last Post SEQadmin2  
          Working...