Unconfigured Ad

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

    #1

    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
            Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
            by SEQadmin2



            CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

            Despite this, “CRISPR helped turn genome editing from a specialized technique into
            ...
            07-31-2026, 11:01 AM
          • 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

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 12:22 PM
          0 responses
          12 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-11-2026, 10:35 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-06-2026, 07:41 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 08-03-2026, 10:13 AM
          0 responses
          49 views
          0 reactions
          Last Post SEQadmin2  
          Working...