Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Is there a difference between a .sam produced by tophat2 and bowtie2?

    I hope this makes sense,

    So I have a perl script that is written to take the accepted_hits.bam file from tophat2, in sam format as an input. Unlike the original paper, I need the unmapped reads as a fastq file so I'm using bowtie2 to map, as it has this option also it outputs mapped results as a sam file so I don't need to convert it. My question is do these files have the same columns or not? It would seem fruitless to try this if tophat2 and bowtie2 output different columns etc.



    Thanks

    Edit. I don't know how I missed in the tophat manual that you can use the --no-convert-bam to output the result as sam, which means I don't need to use bowtie2 instead
    Last edited by meabh; 05-24-2016, 06:51 AM. Reason: I didn't realise you could output sam file from tophat2 which makes the question redundant

  • #2
    Hi meabh,

    First, the main difference is that TopHat2 is designed to detect and report spliced reads. Whenever there is s a read spanning two exons, you'll see that with TopHat2 alignment. The aligner flags that read in a certain way (e.g. adding the XS attribute). Also the NH attribute (number if hits per read) is set in TopHat2 but not in Bowtie2. Nevertheless, if a read origins from within an exon the two programs will align it to the same location.

    In order to convert a bam file into a sam file you can just use samtools view. And to convert a bam file into a fastq file, you can use the Tophat2 script bam2fastx.

    Cheers,

    Michael

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Recent Advances in Sequencing Analysis Tools
      by seqadmin


      The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
      Yesterday, 07:48 AM
    • 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...
      04-22-2024, 07:01 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 06:57 AM
    0 responses
    7 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, Yesterday, 07:17 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-02-2024, 08:06 AM
    0 responses
    19 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 04-30-2024, 12:17 PM
    0 responses
    22 views
    0 likes
    Last Post seqadmin  
    Working...
    X