Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • manore
    Member
    • Jun 2011
    • 19

    Bowtie2 insert size=0

    Hi,
    I used dwgsim to create simulated read pairs.
    Then, I aligned these read pairs to the reference genome with Bowtie2.
    I obtained 5063956 reads pairs with insert size =0
    Code:
    samtools view file.bam | awk '{ if ( $9 ==0){print $0;} }' | wc -l
    5063956

    What does it means?

    IGV uses color coding to flag anomalous insert sizes. When I look these read pairs with insert size=0, it appear in grey. In IGV grey is for inserts that are like than expected.


    This the flagstat result (file.bam):
    10022022 + 0 in total (QC-passed reads + QC-failed reads)
    0 + 0 duplicates
    9979404 + 0 mapped (99.57%:-nan%)
    10022022 + 0 paired in sequencing
    5011011 + 0 read1
    5011011 + 0 read2
    4958066 + 0 properly paired (49.47%:-nan%)
    8789364 + 0 with itself and mate mapped
    1190040 + 0 singletons (11.87%:-nan%)
    0 + 0 with mate mapped to a different chr
    0 + 0 with mate mapped to a different chr (mapQ>=5)

    This is the results I obtain according to the insert size column (file.bam):
    Mapped in correct orientation and within insert size (i.e properly paired) : 4958066
    Mapped uniquely but wrong insert size : 3831298
    Both unmapped : 38188
    One of the mate is unmapped : 1194470
    Mapped within the insert size but wrong orientation: 0


    I notice that 3831298+38188+1194470=5063956, it correspond reads pairs with insert size =zero

    Someone can help me?
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    So ... what is your question? You answered why you came up with 5063956 zero insert size reads -- they correspond to reads that (a) Mapped uniquely but wrong insert size, (b)Both unmapped or (c) One of the mate is unmapped. Are you expecting a different value than 0 in that insert size field? The sam/bam manual says:

    TLEN: signed observed Template LENgth. If all segments are mapped to the same reference, the
    unsigned observed template length equals the number of bases from the leftmost mapped base
    to the rightmost mapped base. The leftmost segment has a plus sign and the rightmost has a
    minus sign. The sign of segments in the middle is undefined. It is set as 0 for single-segment
    template or when the information is unavailable.

    Comment

    • manore
      Member
      • Jun 2011
      • 19

      #3
      Thanks for your response. My question was, is it possible to have read pairs with insert size=0? and how it is possible.
      The insert size expected is about 560 pb.

      *****
      According to the sam/bam manual "It is set as 0 for single-segment template or when the information is unavailable." So it would like to say that for a couple of reads, insert size can be zero because one read mapp and the other not (i.e One of the mate is unmapped) or because the information is unavailable.

      According to my analyse, zero insert size reads corresponds to reads that (a) Mapped uniquely but wrong insert size, (b)Both unmapped AND (c) One of the mate is unmapped.

      It's actually not clear to me how to interpret such a situation and why Bowtie2 produces this kind of paired alignments

      Comment

      Latest Articles

      Collapse

      • 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
      • GATTACAT
        Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by GATTACAT
        Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
        07-01-2026, 11:43 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, Today, 10:26 AM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-09-2026, 10:04 AM
      0 responses
      25 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-08-2026, 10:08 AM
      0 responses
      16 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 07-07-2026, 11:05 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Working...