Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Clare S
    Junior Member
    • Jan 2010
    • 5

    #1

    How to add in the right read group information when running Tophat?

    Hi all,

    I'm wondering about the best way to align reads from multiple lanes/runs when using Tophat.

    As I understand it, if I have multiple fastq files for each sample, I should call tophat once per sample like

    tophat ref sampleA_run1_R1.fastq,sampleA_run2_R1.fastq sampleA_run1_R2.fastq,sampleA_run2_R2.fastq

    The problem is: I want each read in the resulting bam file to have read group information telling me which run/lane it came from, so that later differential expression analyses can correct for batch effects. But, if I run tophat using the above, the reads from run1 and run2 are merged together into one bam file with no distinguishing read group information.

    Another alternative is to use tophat on each experimental condition separately and then merge the resulting bam files, something roughly like

    tophat ref sampleA_run1_R1.fastq sampleA_run1_R2.fastq
    tophat ref sampleA_run2_R1.fastq,sampleA_run2_R1.fastq
    java -jar MergeSamFiles.jar INPUT=sampleA_run1.bam INPUT=sampleA_run2.bam OUTPUT=sampleA.bam

    If I do this I could insert the correct read group information into each bam file before merging, so that the reads in the merged bam are distinguishable. But, if I do this, tophat is mapping each run separately, and doesn't get to use all available evidence to come up with exon-exon junctions in its iterative remapping strategy, so the mapping might not be ideal.

    I have considered mapping everything once to get the exon-exon junction file, then feeding that back into tophat and mapping everything AGAIN in order to insert read group info - but this seems like it really shouldn't be necessary. Is there any way to get tophat to assign different read group information to different input fastq files? Or is there a better way?

    Thanks for any help!

Latest Articles

Collapse

  • SEQadmin2
    16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
    by SEQadmin2




    NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
    Yesterday, 06:46 AM
  • 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

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by SEQadmin2, 10-28-2026, 09:57 AM
0 responses
26 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-28-2026, 09:51 AM
0 responses
17 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 11:13 AM
0 responses
71 views
0 reactions
Last Post SEQadmin2  
Started by SEQadmin2, 10-22-2026, 10:48 AM
0 responses
48 views
0 reactions
Last Post SEQadmin2  
Working...