Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmartin
    Member
    • Dec 2009
    • 78

    #1

    bfast match segmentation fault

    I'm investigating bfast for the purpose of identifying human contaminant reads out of metagenomic bacterial samples. But I'm having some problems getting bfast working.

    I'm trying to run the bfast match component of the alignment, and I keep getting segmentation faults. The fasta2brg & index steps were done successfully, but then I try:

    bfast match -f <my indexed reference fasta> -r <pool of 100mer reads> -A 0 -n 1

    Originally I tried this with a about a full lane's worth of data (44 million 100mer reads), and that segfaulted each time I tried. Then I built an artificial set of just 5000 reads and that also segfaulted. Here is the error message I got with the small subset:

    ************************************************************
    Checking input parameters supplied by the user ...
    Validating fastaFileName HUMAN_SCREENING_DB.current_plus_novelBGI.fna.
    Validating readsFileName flowcell61BKElane1end1.5000_random.100mer.fna.
    Validating tmpDir path ./.
    **** Input arguments look good!
    ************************************************************
    ************************************************************
    Printing Program Parameters:
    programMode: [ExecuteProgram]
    fastaFileName: HUMAN_SCREENING_DB.current_plus_novelBGI.fna
    mainIndexes [Auto-recognizing]
    secondaryIndexes [Not Using]
    readsFileName: flowcell61BKElane1end1.5000_random.100mer.fna
    offsets: [Using All]
    loadAllIndexes: [Not Using]
    compression: [Not Using]
    space: [NT Space]
    startReadNum: 1
    endReadNum: 2147483647
    keySize: [Not Using]
    maxKeyMatches: 8
    maxNumMatches: 384
    whichStrand: [Both Strands]
    numThreads: 1
    queueLength: 10000
    tmpDir: ./
    timing: [Not Using]
    ************************************************************
    Searching for main indexes...
    Found 10 index (40 total files).
    Not using secondary indexes.
    ************************************************************
    Reading in reference genome from HUMAN_SCREENING_DB.current_plus_novelBGI.fna.nt.brg.
    In total read 14657 contigs for a total of 3103051358 bases
    ************************************************************
    Reading flowcell61BKElane1end1.5000_random.100mer.fna into temp files.
    Segmentation fault (core dumped)
    15.930u 5.440s 0:45.24 47.2% 0+0k 0+3033976io 0pf+0w



    I'm running this on a blade with 8Gb of memory reserved for the process. I was not watching the memory usage, but I didn't see any memory related errors. My db size is 3.0Gb. I used the seed masks from the bfast manual (the set listed for >40bp reads...my reads are 100bp).

    Is there anything obvious that I could be doing wrong? Would the fact that I am trying to run all this on a single thread be causing problems? I noticed in another thread that somebody had problems with -n 8, but at -n 4 it was working. I wonder if a similar problem happens when using only a single thread?
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    Originally posted by jmartin View Post
    I'm investigating bfast for the purpose of identifying human contaminant reads out of metagenomic bacterial samples. But I'm having some problems getting bfast working.

    I'm trying to run the bfast match component of the alignment, and I keep getting segmentation faults. The fasta2brg & index steps were done successfully, but then I try:

    bfast match -f <my indexed reference fasta> -r <pool of 100mer reads> -A 0 -n 1

    Originally I tried this with a about a full lane's worth of data (44 million 100mer reads), and that segfaulted each time I tried. Then I built an artificial set of just 5000 reads and that also segfaulted. Here is the error message I got with the small subset:

    ************************************************************
    Checking input parameters supplied by the user ...
    Validating fastaFileName HUMAN_SCREENING_DB.current_plus_novelBGI.fna.
    Validating readsFileName flowcell61BKElane1end1.5000_random.100mer.fna.
    Validating tmpDir path ./.
    **** Input arguments look good!
    ************************************************************
    ************************************************************
    Printing Program Parameters:
    programMode: [ExecuteProgram]
    fastaFileName: HUMAN_SCREENING_DB.current_plus_novelBGI.fna
    mainIndexes [Auto-recognizing]
    secondaryIndexes [Not Using]
    readsFileName: flowcell61BKElane1end1.5000_random.100mer.fna
    offsets: [Using All]
    loadAllIndexes: [Not Using]
    compression: [Not Using]
    space: [NT Space]
    startReadNum: 1
    endReadNum: 2147483647
    keySize: [Not Using]
    maxKeyMatches: 8
    maxNumMatches: 384
    whichStrand: [Both Strands]
    numThreads: 1
    queueLength: 10000
    tmpDir: ./
    timing: [Not Using]
    ************************************************************
    Searching for main indexes...
    Found 10 index (40 total files).
    Not using secondary indexes.
    ************************************************************
    Reading in reference genome from HUMAN_SCREENING_DB.current_plus_novelBGI.fna.nt.brg.
    In total read 14657 contigs for a total of 3103051358 bases
    ************************************************************
    Reading flowcell61BKElane1end1.5000_random.100mer.fna into temp files.
    Segmentation fault (core dumped)
    15.930u 5.440s 0:45.24 47.2% 0+0k 0+3033976io 0pf+0w



    I'm running this on a blade with 8Gb of memory reserved for the process. I was not watching the memory usage, but I didn't see any memory related errors. My db size is 3.0Gb. I used the seed masks from the bfast manual (the set listed for >40bp reads...my reads are 100bp).

    Is there anything obvious that I could be doing wrong? Would the fact that I am trying to run all this on a single thread be causing problems? I noticed in another thread that somebody had problems with -n 8, but at -n 4 it was working. I wonder if a similar problem happens when using only a single thread?
    Are you reads in the FASTQ format (post a sample here to make sure)? For illumina data, BFAST comes with a handy script "ill2fastq.pl" that will convert the raw data of a sequencer to the proper FASTQ format. Once the inputs are validated, and if the problem persists, I can suggest some ways to debug

    To be clear, the thread problem another user had is an isolated case from my perspective. In fact, BFAST has hundreds of users and genome centers using it with no problems (just like BWA/MAQ etc). I say this since such isolated reported problems get hyped (and thus deem an infective software tool), when in fact it has been successful most elsewhere.

    Nils

    Comment

    • blu78
      Member
      • Apr 2010
      • 20

      #3
      Originally posted by nilshomer View Post
      Are you reads in the FASTQ format (post a sample here to make sure)? For illumina data, BFAST comes with a handy script "ill2fastq.pl" that will convert the raw data of a sequencer to the proper FASTQ format. Once the inputs are validated, and if the problem persists, I can suggest some ways to debug

      To be clear, the thread problem another user had is an isolated case from my perspective. In fact, BFAST has hundreds of users and genome centers using it with no problems (just like BWA/MAQ etc). I say this since such isolated reported problems get hyped (and thus deem an infective software tool), when in fact it has been successful most elsewhere.

      Nils
      Hi, to be fair to BFAST I have to say that just a few moments ago I tried the same dataset I tried a few days ago but on a different machine and it worked with 8 cores. Therefore I completely agree that my case might have been an isolated one. Perhaps I have different versions of some libraries in the two different machines... I will investigate this further as soon as I will have a bit more free time.

      Thanks again to Nils for his help with this

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Originally posted by blu78 View Post
        Hi, to be fair to BFAST I have to say that just a few moments ago I tried the same dataset I tried a few days ago but on a different machine and it worked with 8 cores. Therefore I completely agree that my case might have been an isolated one. Perhaps I have different versions of some libraries in the two different machines... I will investigate this further as soon as I will have a bit more free time.

        Thanks again to Nils for his help with this
        If you figure it out let me know. I am always grateful for feedback as it will better inform me on how to help other users (a skill in constant training).

        Comment

        • blu78
          Member
          • Apr 2010
          • 20

          #5
          In the machine that gives the problem I get some warnings at compilation time which I think might be related to zlib...

          If I get some more info I will let you know.

          Comment

          • jmartin
            Member
            • Dec 2009
            • 78

            #6
            I just realized that I was mistakenly feeding it a fasta file instead of a fastq file. So this is just a case of user error, my apologies for this post & thanks for the (very) fast reply.

            Comment

            • Chipper
              Senior Member
              • Mar 2008
              • 323

              #7
              I had a related problem recently when I accidentally tried to ailign a bwa-fastq file (CS), then the match step worked but not the localalign. BFAST will also crash if there is a corrupt read in the fastq file, a sanity check on the read would make the life much easier for both the user and developer...

              Comment

              Latest Articles

              Collapse

              • SEQadmin2
                Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                by SEQadmin2



                CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                Despite this, “CRISPR helped turn genome editing from a specialized technique into
                ...
                07-31-2026, 11:01 AM
              • SEQadmin2
                Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
                by SEQadmin2


                Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

                The systematic characterization of the human proteome has
                ...
                07-20-2026, 11:48 AM

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 08-06-2026, 07:41 AM
              0 responses
              17 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              33 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              43 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-24-2026, 12:17 PM
              0 responses
              26 views
              0 reactions
              Last Post SEQadmin2  
              Working...