Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jaavedm
    Junior Member
    • Jun 2011
    • 8

    #1

    [bwa_read_seq] the maximum barcode length is 15

    Hi

    I am trying to align some Sanger sequencing reads to the D. simulans assembly with BWA and I'm getting the error "the maximum barcode length is 15" when converting from BWA output format to SAM. Actually, I'm trying to align the same reads from when this genome was first assembled back unto the droSim1 reference assembly (downloadable from UCSC Genome Browser).

    Here are the commands I've used to align the reads and convert to SAM format:

    bwa bwasw -t 16 -f c1674_clean.sam droSim1bwaidx c1674_clean.fq
    bwa samse -f c1674_clean.sam droSim1bwaidx c1674_clean.sai c1674_clean.fq


    It is the last command that outputs
    [bwa_read_seq] the maximum barcode length is 15
    I happens almost immediately as well once the command is executed. I don't think it is an out-of-memory issue like other posts seem to suggest.


    I'm using BWA version 0.5.9-r16 on RHEL5.5 machine with 16 processors and 48GB of RAM. As far as I can tell no barcoding was done with Sanger sequencing.

    The input files are large (659MB), but I can put it up somewhere for download temporarily.

    Any help is greatly appreciated.
    Thanks,
    David
  • GenoMax
    Senior Member
    • Feb 2008
    • 7142

    #2
    Originally posted by jaavedm View Post
    Hi

    I am trying to align some Sanger sequencing reads to the D. simulans assembly with BWA and I'm getting the error "the maximum barcode length is 15" when converting from BWA output format to SAM. Actually, I'm trying to align the same reads from when this genome was first assembled back unto the droSim1 reference assembly (downloadable from UCSC Genome Browser).

    Here are the commands I've used to align the reads and convert to SAM format:

    bwa bwasw -t 16 -f c1674_clean.sam droSim1bwaidx c1674_clean.fq
    bwa samse -f c1674_clean.sam droSim1bwaidx c1674_clean.sai c1674_clean.fq


    It is the last command that outputs
    [bwa_read_seq] the maximum barcode length is 15
    I happens almost immediately as well once the command is executed. I don't think it is an out-of-memory issue like other posts seem to suggest.


    I'm using BWA version 0.5.9-r16 on RHEL5.5 machine with 16 processors and 48GB of RAM. As far as I can tell no barcoding was done with Sanger sequencing.

    The input files are large (659MB), but I can put it up somewhere for download temporarily.

    Any help is greatly appreciated.
    Thanks,
    David

    David,

    Perhaps I am overlooking something but shouldn't the sequence of commands be this (<db.fasta> is your "reference"):

    1. bwa index -a bwasw <db.fasta> (*build index*)
    2. bwa aln -t 16 <db.fasta> c1674_clean.fq > c_1674_clean.sai (*do alignment*)
    3. bwa samse <db.fasta> c1674_clean.sai c1674_clean.fq > c_1674_clean.sam (convert to sam)

    Comment

    • jaavedm
      Junior Member
      • Jun 2011
      • 8

      #3
      GenoMax,

      Thanks for your response. I omitted the indexing step. Here are the three bwa commands I executed for completeness:

      Code:
      bwa index -p droSim1bwaidx -a bwtsw droSim1.fa
      bwa bwasw -t 16 -f c1674_clean.sam droSim1bwaidx c1674_clean.fq
      bwa samse -f c1674_clean.sam droSim1bwaidx c1674_clean.sai c1674_clean.fq
      Also of note, I tried redirecting the output from "bwa bwasw" and "bwa samse" like you recommended but that also fails. Earlier posts on Seqanswers.com suggested that this type of error that I'm seeing might be attributed to the ">" redirection symbol, hence my use of the explicit "-f" option in my commands.

      Best,
      David

      Comment

      • GenoMax
        Senior Member
        • Feb 2008
        • 7142

        #4
        Originally posted by jaavedm View Post
        GenoMax,

        Thanks for your response. I omitted the indexing step. Here are the three bwa commands I executed for completeness:

        Code:
        bwa index -p droSim1bwaidx -a bwtsw droSim1.fa
        bwa bwasw -t 16 -f c1674_clean.sam droSim1bwaidx c1674_clean.fq
        bwa samse -f c1674_clean.sam droSim1bwaidx c1674_clean.sai c1674_clean.fq
        Also of note, I tried redirecting the output from "bwa bwasw" and "bwa samse" like you recommended but that also fails. Earlier posts on Seqanswers.com suggested that this type of error that I'm seeing might be attributed to the ">" redirection symbol, hence my use of the explicit "-f" option in my commands.

        Best,
        David
        Have you tried putting the command in a file and then execute that file instead of the full command?

        I do that with LSF since the ">" poses a problem. I guess you are not using a queue manager since this appears to be a standalone server.

        If you want to PM me with download info for a small subset of your sequences, I can try to replicate this locally.

        Comment

        • jaavedm
          Junior Member
          • Jun 2011
          • 8

          #5
          The files are temporarily available at http://compgen.bscb.cornell.edu/~jm8.../c1674.tar.bz2
          The problem reproduces fairly quickly with "bwa samse".

          This archive should include the:
          1. c1674_clean.fq file
          2. c1674_clean.sai file
          3. BWA droSim1bwaidx* files
          4. BWA executable (for x86_64 Linux machines)
          5. droSim1.fa (if index needs to be rebuilt)


          Thanks,
          David
          Last edited by jaavedm; 07-01-2011, 09:16 AM.

          Comment

          • GenoMax
            Senior Member
            • Feb 2008
            • 7142

            #6
            Originally posted by jaavedm View Post
            The files are temporarily available at http://compgen.bscb.cornell.edu/~jm889/perm/c1674.tar.bz2
            The problem reproduces fairly quickly with "bwa samse".

            This archive should include the:
            1. c1674_clean.fq file
            2. c1674_clean.sai file
            3. BWA droSim1bwaidx* files
            4. BWA executable (for x86_64 Linux machines)
            5. droSim1.fa (if index needs to be rebuilt)


            Thanks,
            David
            This link requires credentials to complete the download. Can you send those via a PM?

            Comment

            • jaavedm
              Junior Member
              • Jun 2011
              • 8

              #7
              Sorry. Can you try the following address instead:

              http://compgen.bscb.cornell.edu/~jm8.../c1674.tar.bz2

              Comment

              • GenoMax
                Senior Member
                • Feb 2008
                • 7142

                #8
                Originally posted by jaavedm View Post
                Sorry. Can you try the following address instead:

                http://compgen.bscb.cornell.edu/~jm8.../c1674.tar.bz2
                That worked. Thanks.

                Comment

                • GenoMax
                  Senior Member
                  • Feb 2008
                  • 7142

                  #9
                  Documenting the solution for someone doing a search in future:

                  BWA implements two separate alignment algorithms. One is for short reads, requiring "aln" and "samse/sampe" combination.

                  Other ("bwasw") is for long reads. Invoking bwa with "bwasw" makes the .sam file in one step and only works for single-end reads.

                  Comment

                  • saad0105050
                    Junior Member
                    • Apr 2012
                    • 5

                    #10
                    bwa bwasw output format is sam!

                    Hi GenoMax, thank you very much. I was stuck at this step (bwa bwasw) since this behavior (sam output) is not documented in bwa website.

                    Comment

                    • saulbishop
                      Junior Member
                      • Mar 2013
                      • 2

                      #11
                      This is a post on the minimum & maximum size a barcode can be:

                      http://beforeitsnews.com/business/2013/02/how-big-or-small-can-my-barcode-label-be-2487584/barcode-image

                      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-22-2026, 11:13 AM
                      0 responses
                      25 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-22-2026, 10:48 AM
                      0 responses
                      20 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-15-2026, 10:52 AM
                      0 responses
                      36 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 10-14-2026, 05:39 AM
                      0 responses
                      42 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...