Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • feralBiologist
    Member
    • Jun 2011
    • 61

    #1

    How to use AddOrReplaceReadGroups.jar with Tophat2 BAMs?

    My travails started when I tried to produce mapping stats (exons, introns, intergenic regions) for RNA-Seq samples aligned with Tophat2 and Ensembl GTF files. For a number of reasons RNA-SeQC seems to be the most appropriate tool but I am struggling to use it as I could not find a description of all the steps that I need to perform to prepare my data to be used with RNA-SeQC.

    The various internet sources seem to agree that the first thing I need to do is to use AddOrReplaceReadGroups.jar with the BAM file but I could not find documentation regarding the parameters. Google finds several command line examples and they all use different parameters. My samples are single-end and are produced on Illumina MiSeq using TruSeq. This is all I know right now. What parameters shall I use with AddOrReplaceReadGroups.jar?
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    It would help to know the exact problems you are having. You've found different examples and they have different parameters -- did you try any of them and found them lacking in some way? Anyway here is my example:
    Code:
    PicardCommandLine AddOrReplaceReadGroups INPUT=$out.sam OUTPUT=$out.bam RGID=$acc RGLB=$acc RGPU=$acc RGSM=$acc RGPL=illumina
    Where '$acc' is the read group. '$out' is my output prefix.

    Comment

    • feralBiologist
      Member
      • Jun 2011
      • 61

      #3
      Originally posted by westerman View Post
      Where '$acc' is the read group. '$out' is my output prefix.
      I don't have a clear idea about the read groups - my hunch is that I need to worry about them only if I have multiplexed samples in the same BAM. My BAMs contain single samples - what is the parameter that I need to use?

      My problems are that I am trying to use RNA-SeQC but I couldn't find a clear description of all the pre-processing steps - different sites mention different tools. My (rather crude at this moment) understanding is that since my BAMs have been produced by tophat2 than I need to do, roughly, the following pre-processing:
      1. AddOrReplaceReadGroups.jar
      2. samtools index
      3. samtools faidx
      4. CreateSequenceDictionary.jar
      5. ReorderSam.jar


      The problem is that the recipes differ not just in respect to the tools used but also regarding their parameters (I have no problem with samtools but the other tools are still new to me). I haven't used GATK before so I am still trying to find out what exactly do I need to do.
      Last edited by feralBiologist; 02-21-2015, 09:25 PM.

      Comment

      • westerman
        Rick Westerman
        • Jun 2008
        • 1104

        #4
        [quote]
        I don't have a clear idea about the read groups - my hunch is that I need to worry about them only if I have multiplexed samples in the same BAM. My BAMs contain single samples - what is the parameter that I need to use?
        [/paste]

        Not using RNA-SeQC [although I probably should start using it] I can only guess but it does not seem that there is a parameter in RNA-SeQC to tell it that you have a single sample per BAM file. So AddOrReplaceReadGroups is needed. My example above will replace all possible parameters with the same group '$acc'. This is probably overkill and may be improper but it does work to get single read group names into the BAM.

        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
        27 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
        38 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        44 views
        0 reactions
        Last Post SEQadmin2  
        Working...