Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcgreevy
    Junior Member
    • Oct 2012
    • 7

    #1

    BWA sampe malformed @RG line

    Coming into work today code that was working all last week now is giving problems. I have fastq files, i align them using bwa aln then create sam files using the following:

    ~/bwa-0.5.9/bwa sampe -r ~/resources/genomes/ucsc.hg19.fasta @saiA[$i] @saiB[$i] @fastqA[$i] @fastqB[$i] > @saiA[$i].sam

    I get the error

    [bwa_sai2sam_pe] malformated @RG line

    Any ideas why this would be happening?
  • Rhizosis
    Member
    • Mar 2012
    • 41

    #2
    I couldn't give you any specific solutions, but it looks like the readsgroups have not been formatted correctly.



    In the argument listing:
    "-r STR Specify the read group in a format like ‘@RG\tID:foo\tSM:bar’. [null]"

    Maybe quote the readgroup arguments?

    Comment

    • mcgreevy
      Junior Member
      • Oct 2012
      • 7

      #3
      thanks it was a silly error -r doesn't specify the reference genome it specifies the read group IDs.. thanks for the reply. everything working now

      Comment

      • Rhizosis
        Member
        • Mar 2012
        • 41

        #4
        Good to hear! Good luck!

        Comment

        • prasadg
          Member
          • Mar 2012
          • 16

          #5
          Originally posted by mcgreevy View Post
          thanks it was a silly error -r doesn't specify the reference genome it specifies the read group IDs.. thanks for the reply. everything working now
          Hello,

          I am having the same problem. how did you specify the -r ?

          This is my sample id : @HWI-ST741:2040TEJACXX:8:1101:1107:1901 1:N:0: BC=ACGTAA SAMPLE=1 LENGTH=64 MEAN_QUAL=38.6

          how should i try the code for this header?

          Thanking in anticipation.

          Comment

          • dpryan
            Devon Ryan
            • Jul 2011
            • 3478

            #6
            Originally posted by prasadg View Post
            Hello,

            I am having the same problem. how did you specify the -r ?

            This is my sample id : @HWI-ST741:2040TEJACXX:8:1101:1107:1901 1:N:0: BC=ACGTAA SAMPLE=1 LENGTH=64 MEAN_QUAL=38.6

            how should i try the code for this header?

            Thanking in anticipation.
            That's not a read group, that's the name of an individual read (along with it's barcode and other information that's unrelated to a read group). The two are unrelated. Check out the SAM specification (or search the forum) for further information.

            Comment

            • sigma
              Junior Member
              • May 2012
              • 8

              #7
              Hi,

              It's an old post but i have a problem with -r option of BWA.
              How to use this option ?
              Actually a string is necessary but which one to put ?

              advance thanks,
              Siva

              Comment

              • dpryan
                Devon Ryan
                • Jul 2011
                • 3478

                #8
                Originally posted by sigma View Post
                Hi,

                It's an old post but i have a problem with -r option of BWA.
                How to use this option ?
                Actually a string is necessary but which one to put ?

                advance thanks,
                Siva
                Yes, a string is required. Exactly what that string is is entirely dependent on what information you want associated with things. There is an example up-thread in the second post (obviously, you would want to change "foo" and "bar" into something meaningful for you). You can also add more information, such as platform.

                Comment

                • sigma
                  Junior Member
                  • May 2012
                  • 8

                  #9
                  bwa sampe -n 1 -r @RG\tID:NAME\tSM:NAME -f ...

                  I still have the error : [bwa_sai2sam_pe] malformated @RG line
                  Last edited by sigma; 06-04-2013, 08:36 AM.

                  Comment

                  • Rhizosis
                    Member
                    • Mar 2012
                    • 41

                    #10
                    Originally posted by sigma View Post
                    Hi,

                    It's an old post but i have a problem with -r option of BWA.
                    How to use this option ?
                    Actually a string is necessary but which one to put ?

                    advance thanks,
                    Siva
                    Please check out the options on this page:
                    BWA is a fast light-weighted tool that aligns relatively short sequences (queries) to a sequence database (targe), such as the human reference genome.


                    -r is meant for readgroup (RG) filtering and 'foo' in the proposed syntax can be used to only use RG's which you so desire to use in the alignments

                    Comment

                    • sigma
                      Junior Member
                      • May 2012
                      • 8

                      #11
                      It's working thanks to dpryan & Rhizosis.
                      I've forgotten to put '

                      Comment

                      • Rhizosis
                        Member
                        • Mar 2012
                        • 41

                        #12
                        Originally posted by sigma View Post
                        It's working thanks to dpryan & Rhizosis.
                        I've forgotten to put '
                        Glad you got it working, you had me wondering there for a second!
                        Good luck

                        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, Yesterday, 11:13 AM
                        0 responses
                        21 views
                        0 reactions
                        Last Post SEQadmin2  
                        Started by SEQadmin2, Yesterday, 10:48 AM
                        0 responses
                        18 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...