Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • papori
    Senior Member
    • Dec 2010
    • 181

    #1

    bwa sampe segmentation fault

    Hi all,
    i am using bwa-0.5.9 for illumina output.

    i have reads from 2 samples of same organism.
    So i have 2 databases.

    when i run BWA on the first, everything went well. the SAM file is 3.3GB.

    On the second, i got segmentation fault in the last part, when converting to *.sam.
    it succeed to convert 2.2GB , and then seg` fault.

    My steps are:
    bwa index -a is database.fasta

    bwa aln database.fasta read_1.fastq > database_aln_sa_1.sai
    bwa aln database.fasta read_2.fastq > database_aln_sa_2.sai

    bwa sampe database.fasta database_aln_sa_1.sai database_aln_sa_2.sai read_1.fastq read_2.fastq > database_aln.sam

    When i run bwa with samse on each end separately , i got 2 sam file , each in size 1.6GB , as expected.


    My questions are:
    How can i solve the Segmentation fault?
    Or, Can i merge the 2 sam files that have been resulted separately to one sam?without loosing any data?

    Thanks in advance..
  • giorgifm
    Member
    • Aug 2011
    • 35

    #2
    Dear papori,

    my best solution at BWA segmentation fault has always been to change cpu and increase RAM. Otherwise, you may try splitting your original paired fastq files in half and try again.

    And then merge the resulting (paired) BAM files with Picard Tools MergeSamFiles

    Good luck!

    Comment

    • CompBio
      Member
      • Aug 2009
      • 26

      #3
      I'm running into a similar problem. I've got about 1 million paired-end reads (~500,000 pairs) that I'm aligning to about 6,000 transcript sequences. bwa aln works fine for both of them, but bwa sampe exits immediately with a segmentation fault, both with and without the -P option.

      I'm using the following format:
      bwa sampe -f part_1_part_2.sam transcripts.fa part_1.aln part_2.aln part_1.fq part_2.fq
      The only feedback I get is:
      Segmentation fault (core dumped)
      I'm working on a machine with 128GB memory, so I really can't imagine it's a memory issue. I've used bwa sampe successfully with similar data (500,000 pairs and 28,000 transcripts), but not with this particular data set.

      It's frustrating, to say the least.

      Comment

      • stylz2k
        Junior Member
        • Nov 2012
        • 8

        #4
        I'm having the same trouble with bwa 0.6.2. Its really frustrating.

        I have a machine with Intel Core i5 and 8 GB RAM.

        Comment

        • fongchun
          Member
          • May 2011
          • 55

          #5
          Did you guys ever find solutions to your problems of segmentation fault?

          Comment

          • CompBio
            Member
            • Aug 2009
            • 26

            #6
            In our case the problem went away when we reduced the size of the headers in the FASTA file. We were storing meta-data in the headers that sometimes grew pretty long (100's of characters). By storing the meta-data in a table and using only the indexes as FASTA headers, the problem went away.

            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, 10-15-2026, 10:52 AM
            0 responses
            26 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            32 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            28 views
            0 reactions
            Last Post SEQadmin2  
            Working...