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
      Best Practices for Single-Cell Sequencing Analysis
      by seqadmin



      While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
      Today, 07:15 AM
    • seqadmin
      Latest Developments in Precision Medicine
      by seqadmin



      Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

      Somatic Genomics
      “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
      05-24-2024, 01:16 PM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 08:18 AM
    0 responses
    7 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, Today, 08:04 AM
    0 responses
    6 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 06-03-2024, 06:55 AM
    0 responses
    13 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 05-30-2024, 03:16 PM
    0 responses
    27 views
    0 likes
    Last Post seqadmin  
    Working...
    X