Unconfigured Ad

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

    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
          Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
          by SEQadmin2


          Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

          The systematic characterization of the human proteome has
          ...
          07-20-2026, 11:48 AM
        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          07-09-2026, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, Yesterday, 11:41 AM
        0 responses
        9 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-20-2026, 11:10 AM
        0 responses
        23 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-13-2026, 10:26 AM
        0 responses
        36 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Working...