Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Papillon
    Member
    • Mar 2011
    • 13

    #16
    Originally posted by Papillon View Post
    I now first filter out reads with a low mapping quality within the SAM-file and reads that are 'B' flagged for over 90% by Illumina within FASTQ-files...
    This doesn't seems to work. Although alignment looks okay at first sight, creating the SAM file fails hopelessly (as you can see below). The same thing happened to me when I tried to map fastq-files in which I trimmed the bad read-ends.

    Since mapping went well with untouched fastq-files, would it be safe for me to assume that tempering with these files can be quite tricky?
    The only other cause could be using a newer version of BWA - v. 0.5.9b - and using the -I option for Illumina scoring.
    Those are the only differences between being able to map at all and the absolute failures.

    In retrospect, this method wasn't powerful enough to begin with, so I removed it from the pipeline.

    [bwa_sai2sam_pe_core] time elapses: 10.97 sec
    [bwa_sai2sam_pe_core] changing coordinates of 18 alignments.
    [bwa_sai2sam_pe_core] align unmapped mate...
    [bwa_paired_sw] 19395 out of 60331 Q17 singletons are mated.
    [bwa_paired_sw] 238 out of 193695 Q17 discordant pairs are fixed.
    [bwa_sai2sam_pe_core] time elapses: 22668.70 sec
    [bwa_sai2sam_pe_core] refine gapped alignments... 0.81 sec
    [bwa_sai2sam_pe_core] print alignments... 2.02 sec
    [bwa_sai2sam_pe_core] 262144 sequences have been processed.
    [bwa_sai2sam_pe_core] convert to sequence coordinate...
    [infer_isize] (25, 50, 75) percentile: (16981, 39972, 70412)
    [infer_isize] low and high boundaries: 101 and 177274 for estimating avg and std
    [infer_isize] inferred external isize from 39 pairs: 42807.359 +/- 29283.488
    [infer_isize] skewness: 0.344; kurtosis: -1.096; ap_prior: 1.00e-05
    [infer_isize] inferred maximum insert size: 220265 (6.06 sigma)
    [bwa_sai2sam_pe_core] time elapses: 11.07 sec
    [bwa_sai2sam_pe_core] changing coordinates of 12 alignments.
    [bwa_sai2sam_pe_core] align unmapped mate...
    [bwa_paired_sw] 20365 out of 59571 Q17 singletons are mated.
    [bwa_paired_sw] 253 out of 194428 Q17 discordant pairs are fixed.
    [bwa_sai2sam_pe_core] time elapses: 27222.88 sec
    [bwa_sai2sam_pe_core] refine gapped alignments... 0.83 sec
    [bwa_sai2sam_pe_core] print alignments... 2.03 sec
    [bwa_sai2sam_pe_core] 524288 sequences have been processed.
    [bwa_sai2sam_pe_core] convert to sequence coordinate...
    [infer_isize] fail to infer insert size: too few good pairs

    Comment

    • genlyai
      Member
      • Aug 2009
      • 39

      #17
      It should not be tricky, but you need to remove both sequences from a pair of reads if you decide to remove one. Although I'm not familiar with BWA, that seems like your problem.

      Comment

      • Papillon
        Member
        • Mar 2011
        • 13

        #18
        In the end I only removed ~109,000 reads out of ~92,000,000 per fastq file, so I'd expected that BWA would only have difficulties with pairing those few reads. Trimming reads (not removing them) seemed to cause similar problems, although I have to admit there were > ~50,000 with a 100% Q2/B flag, so that would be identical to removing them.

        Somewhere on this forum, the same problem is described (thread: 'BWA sampe hanging'). Same symptoms, slightly different causes, but it seems to agree with your answer that all pairs have to be lined up correctly and it seems that a small change can cause serious problems.

        Comment

        • genlyai
          Member
          • Aug 2009
          • 39

          #19
          I'm not familiar with BWA, but on bowtie, it just uses the read order to find read pairs, so as soon as you remove one read but not its pair, all subsequent reads go out of alignment and can't be correctly paired.

          Comment

          • Papillon
            Member
            • Mar 2011
            • 13

            #20
            Thank you for responding! I remapped my data again, using the latest version of BWA and it worked out great, so the most likely cause for my previous failure would indeed be that the read order was disturbed and therefor caused all problems.

            BWA does try to fix it, so it seems, but it takes an insane amount of time and in the end the results are not quite what you would expect (see my previous copy-paste of BWA's output).

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 10:52 AM
            0 responses
            10 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            19 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            17 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Working...