Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • seqadmin
    Essential Discoveries and Tools in Epitranscriptomics
    by seqadmin


    The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
    Yesterday, 07:01 AM
  • seqadmin
    Current Approaches to Protein Sequencing
    by seqadmin


    Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
    04-04-2024, 04:25 PM

ad_right_rmr

Collapse

News

Collapse

Topics Statistics Last Post
Started by seqadmin, 04-11-2024, 12:08 PM
0 responses
55 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 10:19 PM
0 responses
52 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-10-2024, 09:21 AM
0 responses
45 views
0 likes
Last Post seqadmin  
Started by seqadmin, 04-04-2024, 09:00 AM
0 responses
55 views
0 likes
Last Post seqadmin  
Working...
X