Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xinwu
    Member
    • Jul 2010
    • 33

    #46
    Originally posted by Azazel View Post
    I am using bwa Version: 0.5.8 (r1442) on CentOS, a machine with lots of RAM.

    I downloaded the unmasked mouse genome from


    I then created an index for bwa like this:
    Code:
    bwa index -a bwtsw mm9.fa
    I then aligned my illumina short reads agains the genome and get sai files. My goal is bed files, so I want to convert sai -> sam -> bam -> bed to get there.

    When I try to convert from sai to sam like this:
    Code:
    bwa samse SOMEPATH/mm9.fa stuff.sai stuff.fq > stuff.sam
    I get:
    convert to sequence coordinate... Segmentation fault

    But, I have done the very same procedure with different illumina short read sequences (even higher amount of data) for a different organism (rat), and it went OK.

    Any help would be very much appreciated. (I am afraid I am not able to patch bwa, though)
    I run into the same error with you when I use another genome. No ideas...
    Another BWA run at background over 70 hours when generate SAM file from SAI file for transcriptome.

    Comment

    • hrajasim
      Member
      • Aug 2009
      • 27

      #47
      segmentation fault - solved for me

      Folks, I came to this thread looking for an answer to the segmentation fault that I too encountered a couple weeks ago. However, I did not find an answer then - Upon investigation, here is what I found:

      The bwa aln command when run with a "nohup" and &, inserted the bwa output trace such as:
      Code:
      [bwa_aln_core] convert to sequence coordinate... 0.43 sec
      [bwa_aln_core] refine gapped alignments... 0.29 sec
      [bwa_aln_core] print alignments...
      into the sai file itself (rather than to nohup.out). WHen I deleted all lines containing these bwa_aln_core tags and the 0.29 sec from the files, it worked just fine. I came back to this thread to share this finding - hope it helps.

      Comment

      • DrDolittle
        Junior Member
        • Oct 2010
        • 3

        #48
        I can confirm the report by harjasim (thanks for the hint!) trying to align Illumina 40 bp single end to the rat genome. I got two different errors, however: 1) "bwa samse" stalled at the exact same position, 2) most recently "bwa samse" complained about missing "*fa.nt.ann" files. I cannot recall why this changed, I didn't install new versions and had both errors on two different systems. The only settings I changed were the -n and -t options. Maybe Heng Li can advise on this or patch bwa?

        Cheers
        Top of *.sai file
        [bwa_aln] 17bp reads: max_diff = 2
        [bwa_aln] 38bp reads: max_diff = 3
        [bwa_aln] 64bp reads: max_diff = 4
        [bwa_aln] 93bp reads: max_diff = 5
        [bwa_aln] 124bp reads: max_diff = 6
        [bwa_aln] 157bp reads: max_diff = 7
        [bwa_aln] 190bp reads: max_diff = 8
        [bwa_aln] 225bp reads: max_diff = 9
        [bwa_aln_core] calculate SA coordinate... 603.08 sec
        [bwa_aln_core] write to the disk... ^C^@^@^@^K^@^@^@^D^@^@^@^C^B^@^@^E^@^@^@

        used versions
        cutadapt version 0.9
        bwa version 0.5.9-r16
        samtools version 0.1.12a (r862)
        Mac OS X 10.6.6/Red Hat Enterprise Linux Server release 5.4 (Tikanga)

        Comment

        • fali
          Junior Member
          • Mar 2011
          • 1

          #49
          Originally posted by hrajasim View Post
          Folks, I came to this thread looking for an answer to the segmentation fault that I too encountered a couple weeks ago. However, I did not find an answer then - Upon investigation, here is what I found:

          The bwa aln command when run with a "nohup" and &, inserted the bwa output trace such as:
          Code:
          [bwa_aln_core] convert to sequence coordinate... 0.43 sec
          [bwa_aln_core] refine gapped alignments... 0.29 sec
          [bwa_aln_core] print alignments...
          into the sai file itself (rather than to nohup.out). WHen I deleted all lines containing these bwa_aln_core tags and the 0.29 sec from the files, it worked just fine. I came back to this thread to share this finding - hope it helps.
          I am also having this problem. However, I am a beginner. How can I enter the sai file and delete these lines? Thanks!

          Comment

          • DrDolittle
            Junior Member
            • Oct 2010
            • 3

            #50
            I assume, you're running it with the nohup / background option? If you will start it without this, you shouldn't run into any problem. I hadn't at least. You could also try to just delete those lines with a texteditor, but the files are large! I have never tried this, but harjasim seemed to have gone that route.

            Comment

            • nilshomer
              Nils Homer
              • Nov 2008
              • 1283

              #51
              Originally posted by fali View Post
              I am also having this problem. However, I am a beginner. How can I enter the sai file and delete these lines? Thanks!
              Try piping the stderr stream too. So "nohup bwa aln ... > out.sai 2> out.stderr &".

              Comment

              • variadevang
                Junior Member
                • Jun 2012
                • 7

                #52
                is a 24GB RAM machine alright for aligning the .sai files using bwa sampe?????????

                Comment

                • carolW
                  Senior Member
                  • Apr 2013
                  • 103

                  #53
                  segmentation fault with bwa samse

                  Hi,
                  When I try to execute the following command:

                  ../pgm/bwa-0.7.3a/bwa samse -f SRR062641.filt.sam -r "@RG\tID:Exome1\tLB:Exome1\tSM:Exome1\t:PL:ILLUMINA" ../hg19/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.0/genome.fa SRR062641.filt.sai SRR062641.filt.fastq

                  I just get Segmentation fault (core dumped)

                  The data is 1000genomes data 255 bp, 109811 sequences.

                  Where did I do wrong?

                  Thanks,

                  Carol

                  Comment

                  • mastal
                    Senior Member
                    • Mar 2009
                    • 666

                    #54
                    bwa samse segmentation fault

                    I'm not sure what is causing your segmentation fault, but if your reads are 250 bp long, you should be using the newer bwa mem algorithm. bwa backtrack (bwa aln, bwa samse) is designed for reads up to 100 bp.

                    Comment

                    • carolW
                      Senior Member
                      • Apr 2013
                      • 103

                      #55
                      The number of reads comes from the output of bw aln (see below)

                      How to specify the index file with bwa mem?

                      Thanks
                      --------------------------------------------------------
                      [bwa_aln] 17bp reads: max_diff = 2
                      [bwa_aln] 38bp reads: max_diff = 3
                      [bwa_aln] 64bp reads: max_diff = 4
                      [bwa_aln] 93bp reads: max_diff = 5
                      [bwa_aln] 124bp reads: max_diff = 6
                      [bwa_aln] 157bp reads: max_diff = 7
                      [bwa_aln] 190bp reads: max_diff = 8
                      [bwa_aln] 225bp reads: max_diff = 9
                      [bwa_aln_core] calculate SA coordinate... 114.72 sec
                      [bwa_aln_core] write to the disk... 0.04 sec
                      [bwa_aln_core] 109811 sequences have been processed.
                      [main] Version: 0.6.1-r104
                      [main] CMD: bwa aln -t 4 -f SRR062641.filt.sai -I ../../hg19/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.0/genome.fa ../../data/SRR062641.filt.fastq
                      [main] Real time: 111.442 sec; CPU: 119.167 sec

                      Comment

                      • mastal
                        Senior Member
                        • Mar 2009
                        • 666

                        #56
                        bwa samse segmentation fault

                        Originally posted by carolW View Post
                        How to specify the index file with bwa mem?
                        I think it's the same as for bwa aln.
                        Have a look at the bwa manual page:

                        Comment

                        • carolW
                          Senior Member
                          • Apr 2013
                          • 103

                          #57
                          well, it doesn't work. I have used different combinations. The problem is that there is no parameter for the index file and on the command line, bwa mem can't recognize it.

                          ../pgm/bwa-0.7.3a/bwa mem samse SRR062641.filt.sam -r "@RG\tID:Exome1\tLB:Exome1\tSM:Exome1\t:PL:ILLUMINA" ../hg19/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.0/genome.fa SRR062641.filt.fastq SRR062641.filt.mem.sai
                          [E::bwa_idx_load] fail to locate the index files

                          Comment

                          • GenoMax
                            Senior Member
                            • Feb 2008
                            • 7142

                            #58
                            Originally posted by carolW View Post
                            well, it doesn't work. I have used different combinations. The problem is that there is no parameter for the index file and on the command line, bwa mem can't recognize it.

                            ../pgm/bwa-0.7.3a/bwa mem samse SRR062641.filt.sam -r "@RG\tID:Exome1\tLB:Exome1\tSM:Exome1\t:PL:ILLUMINA" ../hg19/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.0/genome.fa SRR062641.filt.fastq SRR062641.filt.mem.sai
                            [E::bwa_idx_load] fail to locate the index files
                            Correct order for the files for samse (as indicated in the manual page):

                            Code:
                            bwa samse ref.fa aln_sa.sai short_read.fq > aln-se.sam
                            Also this line from the same manual:
                            Alignment algorithms are invoked with different sub-commands: aln/samse/sampe for BWA-backtrack, bwasw for BWA-SW and mem for the BWA-MEM algorithm.

                            Comment

                            • carolW
                              Senior Member
                              • Apr 2013
                              • 103

                              #59
                              I have been using the parameters that were given in the tutorial

                              http://seqanswers.com/wiki/How-to/ex...ina_technology

                              If I use in the order that you indicated, I will get segmentation fault again

                              ../pgm/bwa-0.7.3a/bwa samse ../hg19/Homo_sapiens/UCSC/hg19/Sequence/BWAIndex/version0.6.0/genome.fa SRR062641.filt.sai SRR062641.filt.fastq > SRR062641.filt.sam
                              Segmentation fault (core dumped)

                              Comment

                              • GenoMax
                                Senior Member
                                • Feb 2008
                                • 7142

                                #60
                                How much memory do you have on the machine you are using? Does the segmentation fault happen right away or after some time?

                                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
                                31 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-14-2026, 05:39 AM
                                0 responses
                                38 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-13-2026, 09:56 AM
                                0 responses
                                31 views
                                0 reactions
                                Last Post SEQadmin2  
                                Started by SEQadmin2, 10-09-2026, 11:14 AM
                                0 responses
                                29 views
                                0 reactions
                                Last Post SEQadmin2  
                                Working...