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
                          Advancing Precision Medicine for Rare Diseases in Children
                          by seqadmin




                          Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
                          12-16-2024, 07:57 AM
                        • seqadmin
                          Recent Advances in Sequencing Technologies
                          by seqadmin



                          Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

                          Long-Read Sequencing
                          Long-read sequencing has seen remarkable advancements,...
                          12-02-2024, 01:49 PM

                        ad_right_rmr

                        Collapse

                        News

                        Collapse

                        Topics Statistics Last Post
                        Started by seqadmin, 12-17-2024, 10:28 AM
                        0 responses
                        26 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 12-13-2024, 08:24 AM
                        0 responses
                        42 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 12-12-2024, 07:41 AM
                        0 responses
                        28 views
                        0 likes
                        Last Post seqadmin  
                        Started by seqadmin, 12-11-2024, 07:45 AM
                        0 responses
                        42 views
                        0 likes
                        Last Post seqadmin  
                        Working...
                        X