Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rcorbett
    Member
    • Sep 2009
    • 29

    #1

    bwa color space error

    Hi all,
    I'm getting an error using bwa to align solid reads to hg18.

    Here are the steps I have completed, and the error

    Create fastq files from my raw solid data (no problems here)
    > /bwa-0.5.0/solid2fastq.pl ...

    Index my hg18 reference fasta into colour space (no problems)
    > /bwa-0.5.0/bwa index -a bwtsw -c human.fasta

    Align some small fastq files (500K reads ) (again no problems):
    > /bwa-0.5.0/bwa aln -c ./human.fasta read1 > read1.sai
    > /bwa-0.5.0/bwa aln -c ./human.fasta read2 > read2.sai

    Then sampe the sai files (problems here - I am showing all the output):
    > /bwa-0.5.0/bwa sampe human.fasta read1.sai read2.sai read1 read2 out.sam
    [bwa_sai2sam_pe_core] convert to sequence coordinate...
    [infer_isize] fail to infer insert size: weird pairing
    [bwa_sai2sam_pe_core] time elapses: 18.60 sec
    [bwa_sai2sam_pe_core] change of coordinates in 0 alignments.
    [bwa_sai2sam_pe_core] align unmapped mate...
    [bwa_sai2sam_pe_core] time elapses: 0.93 sec
    [bwa_sai2sam_pe_core] refine gapped alignments... Segmentation fault

    here is a head of the two starting fastq files, in case this will help with debugging:

    ==> read1 <==
    @HS12521_tra19938_4:705_604_1571/2
    ATTAAAATTCCAATACTCCACTACCTCGAATTATTCTGTACTAAATTAA
    +
    ,2+262=,*9,95)9123)<2,1/-12,,2//455&+++;#0..*#$&9
    @HS12521_tra19938_4:705_604_1602/2
    GAGGCCAATCAGAATCAGTTAGAGCCGCTTCAGTCCAAAGACAGGGAAA
    +
    8<88>9<?99<3>;<<=9;=?67568=7786869;89;8;<&8683&:7
    @HS12521_tra19938_4:705_604_1651/2
    GCGCAGCTGCTTCGTCTAAAACGAGTAAAAAAAAAGAATGAATAAGGGA

    ==> read2 <==
    @HS12521_tra19938_4:705_604_1571/1
    CTATATTGCGGTATAGTAGATAGAACAATTTAACCGAATAGAGGCTTGC
    +
    A984:;<28<?4&*%*,)222&$214&3&$1;1)%/)(1/79#7++
    @HS12521_tra19938_4:705_604_1602/1
    GTCGTCTTCCTGATCTACCTTGGGGAAACCAACTCGATCCGCCAACGAC
    +
    ?78>697/=:=95;;<6==8>:=?;><,>;;3359;77;851<7:98,<
    @HS12521_tra19938_4:705_604_1651/1
    AGTATAAGCTACTTATTTGAGTACAGTGAGCGGGGTAGGCAGTTAAGGA


    Does anyone have a suggestion to help me get this working?
    Last edited by rcorbett; 09-29-2009, 09:57 AM. Reason: typo
  • xguo
    Member
    • Jul 2008
    • 48

    #2
    The problem is that the solid2fastq.pl script included in BWA doesn't handle missing quality value. It generates -" for phred score -1. Please see my post
    "bwa samse segmentation fault" for details.

    Comment

    • rcorbett
      Member
      • Sep 2009
      • 29

      #3
      Hi. Thanks for the quick reply. I tried using the script posted at the bottom of that thread, (csfastaToFastq), but it appears to only work for single ended reads. Did you edit solid2fastq.pl? If so, could you post the changes here?

      Thanks!

      Comment

      • rcorbett
        Member
        • Sep 2009
        • 29

        #4
        Hi again,

        So I added a line in /bwa-0.5.0/solid2fastq.pl in read1 sub to change the -1 qualities to 0s before converting...
        s/-1/0/g;

        Now, as before I re-run the alignments, but now I get a different error when using sampe... bwa-0.5.0/bwa sampe human.fasta read1.fastq.sai read2.fastq.sai read1.fastq read2.fastq > aln.sam
        [bwa_sai2sam_pe_core] convert to sequence coordinate...
        [infer_isize] (25, 50, 75) percentile: (1165, 1290, 1467)
        [infer_isize] low and high boundaries: 561 and 2071
        [infer_isize] inferred external isize from 43138 pairs: 1300.140 +/- 188.574
        [bwa_sai2sam_pe_core] time elapses: 23.01 sec
        [bwa_sai2sam_pe_core] change of coordinates in 3192 alignments.
        [bwa_sai2sam_pe_core] align unmapped mate...
        [bwa_paired_sw] 6630 reads aligned out of 88901 candidates.
        [bwa_sai2sam_pe_core] time elapses: 47.83 sec
        [bwa_sai2sam_pe_core] refine gapped alignments... Segmentation fault

        Looks like we're close but not quite there, can anyone spot my problem?
        Thanks in advance!

        Comment

        • xguo
          Member
          • Jul 2008
          • 48

          #5
          Originally posted by rcorbett View Post
          Hi again,

          So I added a line in /bwa-0.5.0/solid2fastq.pl in read1 sub to change the -1 qualities to 0s before converting...
          s/-1/0/g;

          Now, as before I re-run the alignments, but now I get a different error when using sampe... bwa-0.5.0/bwa sampe human.fasta read1.fastq.sai read2.fastq.sai read1.fastq read2.fastq > aln.sam
          [bwa_sai2sam_pe_core] convert to sequence coordinate...
          [infer_isize] (25, 50, 75) percentile: (1165, 1290, 1467)
          [infer_isize] low and high boundaries: 561 and 2071
          [infer_isize] inferred external isize from 43138 pairs: 1300.140 +/- 188.574
          [bwa_sai2sam_pe_core] time elapses: 23.01 sec
          [bwa_sai2sam_pe_core] change of coordinates in 3192 alignments.
          [bwa_sai2sam_pe_core] align unmapped mate...
          [bwa_paired_sw] 6630 reads aligned out of 88901 candidates.
          [bwa_sai2sam_pe_core] time elapses: 47.83 sec
          [bwa_sai2sam_pe_core] refine gapped alignments... Segmentation fault

          Looks like we're close but not quite there, can anyone spot my problem?
          Thanks in advance!
          If you haven't figured out how to solve the problem, please PMing me your email address. I can forward you my version of the script.

          Comment

          • guo
            Junior Member
            • Jun 2011
            • 8

            #6
            My problem happened at

            > /bwa-0.5.0/solid2fastq.pl ...

            I have the single.fastq file, but read 1 and read 2 are empty..... and the single.fastq actually has only the forward read.......then I checked the csfasta file, seems all right...

            Is it problem of the script? I didn't change the orginal version....

            Comment

            • poisson200
              Member
              • Feb 2010
              • 63

              #7
              Possible alternatives

              It is possible you could remove errors in colour-space reads by first

              1) running SAET from bioscope
              2) Running Sasson and Michael Solid read quality scripts. (PMID: 20207696)

              then running solid2fastq.pl ... and BWA on the passed mp files

              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
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 08-03-2026, 10:13 AM
              0 responses
              31 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 07-31-2026, 02:55 AM
              0 responses
              41 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...