Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • david.tamborero
    Member
    • Feb 2011
    • 60

    -r argument from Bfast postprocess

    I'm not sure of the use of the -r argument in the Bfast postprocess command. Can somebody who used it give an example of the required input file? I'm getting parse errors in all my attempts...

    Thank you very much!
    David
  • nilshomer
    Nils Homer
    • Nov 2008
    • 1283

    #2
    The line in the file should match exactly to what you would expect in the output of a SAM file. So that includes the tab separated fields, etc. Please post the contents of your input file.

    Comment

    • david.tamborero
      Member
      • Feb 2011
      • 60

      #3
      I've created a text file containing the following entry:

      Code:
      @RG   readgroups_name
      and also:

      Code:
      @RG   RG:readgroups_name
      (both tab-separated)

      and I get the following error:

      Code:
      In function "ParseReadGroup": Fatal Error[OutOfRange]. Variable/Value: readGroupString.
      Message: Could not parse read group.
       ***** Exiting due to errors *****

      Comment

      • nilshomer
        Nils Homer
        • Nov 2008
        • 1283

        #4
        Look at the SAM spec. What tags are required for the RG field (Hint: there is no RG tag in the RG header section)?

        Try:
        Code:
        @RG<tab>ID:MYID

        Comment

        • david.tamborero
          Member
          • Feb 2011
          • 60

          #5
          ops, once again I did it wrong. It worked when I used a correct tag for the @RG entry.

          Tahnks a lot!

          Comment

          • cllorens
            Member
            • Nov 2011
            • 44

            #6
            Hi Nils

            I experienced the same difficulty than David and saw this thread

            I tried with my sample that has for instance the ID solid_0735

            then have created a RGfilename file with @RG ID:solid0735_hg19.1 and worked, good!

            but now i wonder if it is possible to add more info about library, sample and platform?

            the manual says that you can do it with the LB but what about SM and PL

            according to the sintaxis indicated above i created a new file with the following flag

            @RG ID:solid0735_hg19.1 LB:solid0735_master SM:human_muscle1 PL:solid

            (it is just an example)

            but it did not work (the shell says that cannot parse the file)

            then i tried the following

            @RG ID:solid0735_hg19.1\LB:solid0735_master\SM:human_muscle1\PL:solid

            and didnt work either, perhaps (by sure) i am doing something wrong

            thanks

            Carlos

            Comment

            • nilshomer
              Nils Homer
              • Nov 2008
              • 1283

              #7
              It should work, but the only way to know is to try.

              Comment

              • cllorens
                Member
                • Nov 2011
                • 44

                #8
                That is a very poor answer Nils.
                As I said, I already tried and did not work.
                Of course if I try again and again and again I will find the answer but I would really appreciate i you give some key to follow, maybe the tags abreviations are not appropiate I do not known. Anyway thank you for answering.

                Comment

                • nilshomer
                  Nils Homer
                  • Nov 2008
                  • 1283

                  #9
                  Originally posted by cllorens View Post
                  That is a very poor answer Nils.
                  As I said, I already tried and did not work.
                  Of course if I try again and again and again I will find the answer but I would really appreciate i you give some key to follow, maybe the tags abreviations are not appropiate I do not known. Anyway thank you for answering.
                  Please try inputting it exactly as you would in a normal SAM file. The string will be written exactly as it is given. So you should include the tab characters as well. Here's what the manual says:

                  Code:
                  -r STRING, --readGroupFileName=STRING
                  Specifies to add the read group (@RG) line to add to the header, which is given in the specified file. Additionally, the appropriate read group (RG) tag (and LB tag if present) will be added to each read. Make sure that the line is exactly the same as what would be printed to the SAM file, which includes the “@RG” string

                  Comment

                  • cllorens
                    Member
                    • Nov 2011
                    • 44

                    #10
                    it only works when i only use the ID tag as you note above Nils
                    but i am unable to make it work if I add some other tags such as LB, SM and PL
                    I do not know i tried with tabs with bars with inverter bars etc and with different
                    combinations of these three with the ID tag and in those cases always find a error
                    message sayind than cannot parse the RGfilename fle ID.

                    This one

                    In function "ParseReadGroup": Fatal Error[OutOfRange]. Variable/Value: readGroupString.
                    Message: Could not parse read group; read ID required.
                    ***** Exiting due to errors ***


                    I will try again with other combinations.

                    It might be that any of these additional tags should be in the .baf or in the previous fastq, or .bmf files in order to work later in the sam creation step?

                    In principle, there is not a big problem as I can live only appending the ID tag but it would be good to known how to add the remainder. I will make more attempts anyway.

                    Thanks
                    Carlos

                    Comment

                    • cllorens
                      Member
                      • Nov 2011
                      • 44

                      #11
                      Ok solved at the first subsequent attempt Nils,
                      it was in front my eyes and as it easier it was i did not see it.
                      i was putting spaces between the tags instead of tabs.
                      using this sintax "@RG<tab>ID:my_ID<tab>LB:my_LB<tab>SM:my_SM<tab>PL:my_PL" works.
                      Well, today i will be a little bit happier.
                      Carlos

                      Comment

                      Latest Articles

                      Collapse

                      • SEQadmin2
                        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
                        by SEQadmin2


                        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


                        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
                        ...
                        Yesterday, 10:05 AM
                      • SEQadmin2
                        Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
                        by SEQadmin2


                        With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


                        Introduction

                        Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
                        05-22-2026, 06:42 AM
                      • SEQadmin2
                        Environmental Genomics in the Age of NGS: From Microbes to Conservation Strategies
                        by SEQadmin2

                        Studying ecosystems means dealing with complex, multi-species communities that are hard to observe at scale. This complexity, however, hides many important questions to be answered, from how biogeochemical cycles work and how climate change can affect species distribution to how conservation strategies can work best.


                        Genomics, particularly since the expansion of NGS, has transformed ecosystem ecology. By sequencing environmental DNA, we can now assess biodiversity without direct...
                        05-06-2026, 09:04 AM

                      ad_right_rmr

                      Collapse

                      News

                      Collapse

                      Topics Statistics Last Post
                      Started by SEQadmin2, Yesterday, 12:03 PM
                      0 responses
                      19 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, Yesterday, 11:40 AM
                      0 responses
                      14 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 05-28-2026, 11:40 AM
                      0 responses
                      29 views
                      0 reactions
                      Last Post SEQadmin2  
                      Started by SEQadmin2, 05-26-2026, 10:12 AM
                      0 responses
                      31 views
                      0 reactions
                      Last Post SEQadmin2  
                      Working...