Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Bwa mem is exiting with segmentation fault for large contigs (> 0.4Mbp)

    Hello all,

    I am using bwa mem to align contigs to a reference genome and I observed that it is exiting with an error message "Segmentation Fault". For example:

    [M::main_mem] read 1 sequences (405327 bp)...
    Segmentation fault

    Upon closer examination, I found that whenever the size of input sequence >=0.4 Mbp, I see this message. In bwa mem page (http://bio-bwa.sourceforge.net/bwa.shtml), it is mentioned that it can handle contigs upto 1Mbp. I am unable to figure out the source of this upper limit at 0.4Mbp. Is it specific to my computer or is there any parameter by which I can assign more memory to bwa?
    I am currently thinking of breaking contigs greater than 0.4Mbp into overlapping smaller contigs of size 399999. Is there any other way to go about it.

    Thanks all,
    Ramya

  • #2
    What happens to memory usage during this? Another cause might be just that bwa is trying to use more memory than you have.

    Comment


    • #3
      cross posted: https://www.biostars.org/p/98534/

      Comment


      • #4
        @dpryan I checked the memory usage during the few seconds before it exits with the error.
        The stats before running the process were:
        Cpu(s): 0.7%us, 0.1%sy, 0.0%ni, 99.1%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
        Mem: 16446968k total, 4512156k used, 11934812k free, 138536k buffers
        Swap: 31249404k total, 1169612k used, 30079792k free, 1910296k cached

        The stats while running the process were:
        Cpu(s): 10.9%us, 0.3%sy, 0.0%ni, 88.7%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st
        Mem: 16446968k total, 4606148k used, 11840820k free, 138592k buffers
        Swap: 31249404k total, 1169588k used, 30079816k free, 1910316k cached

        As you can see, there is not much of a difference in terms of memory usage.

        @lindenb I am sorry but was I not supposed to cross post. I just tried to get help from any quarter I could. If the two forums are equivalent (wrt the people I can reach out to), in future I shall restrict myself to one.

        I ran bwa-sw and it ran without giving me any errors, so this solves my problem for the time being. I am aligning contigs which are expected to be very similar to the reference sequence wise, differing mostly in chromosomal rearrangements. Thus, I expect both, bwa-sw and bwa-mem to do equally well, accuracy wise. Still I will run both for the same dataset to compare the two.

        Thanks,
        Ramya

        Comment


        • #5
          Dear all,

          For completion purposes, I wish to report the solution to my problem. As it turns out, I was using bwa-0.7.0 version which is known to have bugs. Thus, on the sugestion of lh3-Alt (https://www.biostars.org/p/98534/#98886), I used the latest version i.e. bwa-0.7.8 and I did not get any segmentation faults.

          Thanks all for the help and time :-)
          Ramya

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM
          • seqadmin
            Techniques and Challenges in Conservation Genomics
            by seqadmin



            The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

            Avian Conservation
            Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
            03-08-2024, 10:41 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 03-27-2024, 06:37 PM
          0 responses
          12 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 03-27-2024, 06:07 PM
          0 responses
          11 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 03-22-2024, 10:03 AM
          0 responses
          53 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 03-21-2024, 07:32 AM
          0 responses
          69 views
          0 likes
          Last Post seqadmin  
          Working...
          X