Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • nexgengirl
    Member
    • Apr 2010
    • 31

    Remapping 1000 Genomes Data with BWA

    Hi,

    I'm working now to remap some 1000 genomes exome data with BWA to compare with other exomes I've aligned with BWA. These were originally mapped with Mosaik. I've hit a bit of a snag and I'm checking to see if anyone has also experienced this or has some suggestions on how to fix. Basically, I took the bam file and converted it to the two fastq files (since it's paired end). I then aligned these using BWA aln to the reference (it worked great and fast). However, when I run the sampe step it hits the message below and after that the analysis slows drastically (sam file is only on chromosome 1 after running for two days on a 12 core machine with over 40 Gb of memory). Anyone else seen this?

    [bwa_read_seq] 10.0% bases are trimmed.
    [bwa_read_seq] 7.5% bases are trimmed.
    [bwa_sai2sam_pe_core] convert to sequence coordinate...
    [infer_isize] (25, 50, 75) percentile: (4084, 11785, 30818)
    [infer_isize] low and high boundaries: 76 and 84286 for estimating avg and std
    [infer_isize] inferred external isize from 207594 pairs: 19383.946 +/- 21062.583
    [infer_isize] skewness: 1.370; kurtosis: 0.892; ap_prior: 1.00e-05
    [infer_isize] inferred maximum insert size: 148287 (6.12 sigma)
    [bwa_sai2sam_pe_core] time elapses: 3.36 sec
    [bwa_sai2sam_pe_core] changing coordinates of 385 alignments.
    [bwa_sai2sam_pe_core] align unmapped mate...
    [aln_local_core] Potential bug: (155,166) > 65
  • xied75
    Senior Member
    • Feb 2012
    • 129

    #2
    Hi, nexgengirl,

    1, You don't need to convert bam into fastq first, BWA can take bam directly, with -b -1, -b -2 you can let it aln directly from the bam.
    2, The error is mismatched pair, you can see that those infered insert size all went mad.

    Best,

    dong

    Comment

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #3
      You might not be able to use a single .bam file as a paired end file.

      Try using Picard to sort your .bam file by name, then use samtools to pull out read1 .bam and read2 bams, and then you can align them separately and use sampe to put them together, as usual.

      Comment

      • xied75
        Senior Member
        • Feb 2012
        • 129

        #4
        If the bam is made from paired end sam and sorted with name other than coordinate, then yes you can run BWA ALN on it directly, without all these extra steps.

        Code:
        bwa aln -b -1
        will take the first read
        Code:
        bwa aln -b -2
        will take the second read

        Only if the bam is a mixture of single reads and paired reads then this might not work.
        Last edited by xied75; 12-13-2012, 06:07 AM. Reason: reformatting.

        Comment

        • nexgengirl
          Member
          • Apr 2010
          • 31

          #5
          Hi all,

          Thanks for your suggestions. I reran the bwa sampe with the -A option to get it to run. It ran successfully in 16 minutes!

          Thanks again.

          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, 07-09-2026, 10:04 AM
          0 responses
          11 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-08-2026, 10:08 AM
          0 responses
          9 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-07-2026, 11:05 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          31 views
          0 reactions
          Last Post SEQadmin2  
          Working...