Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?

  • #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


    • #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


      • #4
        Good to hear! Good luck!

        Comment


        • #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


          • #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


            • #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


              • #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


                • #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


                  • #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:
                    http://linux.die.net/man/1/bwa

                    -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


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

                      Comment


                      • #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

                        • seqadmin
                          Understanding Genetic Influence on Infectious Disease
                          by seqadmin




                          During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

                          Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
                          09-09-2024, 10:59 AM
                        • seqadmin
                          Addressing Off-Target Effects in CRISPR Technologies
                          by seqadmin






                          The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
                          08-27-2024, 04:44 AM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by seqadmin, 09-11-2024, 02:44 PM
                        0 responses
                        11 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 09-06-2024, 08:02 AM
                        0 responses
                        145 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 09-03-2024, 08:30 AM
                        0 responses
                        152 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 08-27-2024, 04:40 AM
                        0 responses
                        161 views
                        0 likes
                        Last Post seqadmin  
                        Working...
                        X