Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • hisat2 output more reads than are in the file

    Hi all,
    I am in the middle of testing the hisat2 mapper and encountered a discrepancy between the output hisat2 gives me at the end of the mapping step and the number of reads samtools flagstat counts.

    this is the output I get, when hisat2 is finished:
    Code:
    cat ../hisat2Mapping/WCE7.stat 
    [B]11389273[/B] reads; of these:
      11389273 (100.00%) were paired; of these:
        5961828 (52.35%) aligned concordantly 0 times
        4647893 (40.81%) aligned concordantly exactly 1 time
        779552 (6.84%) aligned concordantly >1 times
        ----
        5961828 pairs aligned concordantly 0 times; of these:
          138165 (2.32%) aligned discordantly 1 time
        ----
        5823663 pairs aligned 0 times concordantly or discordantly; of these:
          11647326 mates make up the pairs; of these:
            10779117 (92.55%) aligned 0 times
            510907 (4.39%) aligned exactly 1 time
            357302 (3.07%) aligned >1 times
    52.68% overall alignment rate
    @Question - how are the 52.68% are calculated? what reads are being considered here as mapped?

    and this is the number of reads I get, when I run samtools flagstat on the sorted/indexed bam file:
    Code:
    samtools flagstat ../hisat2Mapping/WCE7.sorted.bam
    [B]14328481[/B] + 0 in total (QC-passed reads + QC-failed reads)
    2329052 + 0 secondary
    0 + 0 supplementary
    0 + 0 duplicates
    14328481 + 0 mapped (100.00%:-nan%)
    11999429 + 0 paired in sequencing
    6098403 + 0 read1
    5901026 + 0 read2
    10854890 + 0 properly paired (90.46%:-nan%)
    11407498 + 0 with itself and mate mapped
    591931 + 0 singletons (4.93%:-nan%)
    23248 + 0 with mate mapped to a different chr
    18678 + 0 with mate mapped to a different chr (mapQ>=5)
    As you can see, samtools find more reads than there suppose to be originally in the file.

    Is there a simple explanation for that?

    thanks,
    Assa

  • #2
    52.68% = (2*(4647893+779552+138165) + 510907 + 357302)/(2*11389273)

    Samtools is correct, since if sum the numerator you'll get just under 12 million total alignments, which is exactly what's in the BAM file (14328481-2329052).

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM
    • seqadmin
      Understanding Genetic Influence on Infectious Disease
      by seqadmin




      During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

      Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
      09-09-2024, 10:59 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, 10-02-2024, 04:51 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    21 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    0 responses
    25 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-26-2024, 12:57 PM
    0 responses
    18 views
    0 likes
    Last Post seqadmin  
    Working...
    X