Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Making sense of tophat output "align_summary.txt"

    I run tophat2 with “-g 20" on some data. As a result, the "align_summary.txt" says
    Reads:
    Input: 92302015
    Mapped: 79916185 (86.6% of input)
    of these: 17726355 (22.2%) have multiple alignments (22103 have >20)
    86.6% overall read alignment rate.
    Then I run some manual checking on the numbers by using samtools on the output "accepted_hits.bam" and "unmapped.bam". I tried
    Code:
    samtools view unmapped.bam | wc -l
    Result is 12385846, looks close enough, although not perfect (12385846 + 79916185 = 92302031).

    Then I tried command (a)
    Code:
    samtools view -f 256 accepted_hits.bam | wc -l
    Result is 15255480

    I also tried command (b)
    Code:
    samtools view -f 256 accepted_hits.bam | cut -f1 | sort | uniq | wc -l
    Result is 13013262

    My understanding about tophat's behavior is that when there are multiple equally good hits, it will randomly pick one hit as "best", and all other hits will be assigned the 256 bit flag (secondary hits). So presumably, if the number 17726355 in "align_summary.txt" is the number of reads, then it should be similar to the result of (b). Or if 17726355 in "align_summary.txt" is the number of hits, it should be at least 2 times the result of (a). But none of my two guesses are correct.

    So my question is, what exactly does the number 17726355 means.

    Please let me know if I missed anything. Thanks all for any comments or suggestions!

    jianrong

  • #2
    Originally posted by yangjr View Post
    I run tophat2 with “-g 20" on some data. As a result, the "align_summary.txt" says


    Then I run some manual checking on the numbers by using samtools on the output "accepted_hits.bam" and "unmapped.bam". I tried
    Code:
    samtools view unmapped.bam | wc -l
    Result is 12385846, looks close enough, although not perfect (12385846 + 79916185 = 92302031).

    Then I tried command (a)
    Code:
    samtools view -f 256 accepted_hits.bam | wc -l
    Result is 15255480

    I also tried command (b)
    Code:
    samtools view -f 256 accepted_hits.bam | cut -f1 | sort | uniq | wc -l
    Result is 13013262

    My understanding about tophat's behavior is that when there are multiple equally good hits, it will randomly pick one hit as "best", and all other hits will be assigned the 256 bit flag (secondary hits). So presumably, if the number 17726355 in "align_summary.txt" is the number of reads, then it should be similar to the result of (b). Or if 17726355 in "align_summary.txt" is the number of hits, it should be at least 2 times the result of (a). But none of my two guesses are correct.

    So my question is, what exactly does the number 17726355 means.

    Please let me know if I missed anything. Thanks all for any comments or suggestions!

    jianrong
    Did you get the answer?

    Comment


    • #3
      in my case, que I run

      samtools view accepted_hits.bam | cut -f1 | sort | uniq | wc -l

      without the -f 256, the number of reads matches the number stated at align_summary.txt.

      What doesn't make sense to me is the multiple mapping reads, since align_summary.txt number does not coincide with NH:i (>1) nor MAPQ counts.

      Comment


      • #4
        Hi Guys,
        Is that the output for a paired end alignment?

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Essential Discoveries and Tools in Epitranscriptomics
          by seqadmin


          The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
          Yesterday, 07:01 AM
        • seqadmin
          Current Approaches to Protein Sequencing
          by seqadmin


          Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
          04-04-2024, 04:25 PM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 04-11-2024, 12:08 PM
        0 responses
        54 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 10:19 PM
        0 responses
        50 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-10-2024, 09:21 AM
        0 responses
        44 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 04-04-2024, 09:00 AM
        0 responses
        55 views
        0 likes
        Last Post seqadmin  
        Working...
        X