Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ben.weisburd
    Junior Member
    • Oct 2010
    • 9

    #1

    TopHat v1.1.4 - Error: could not convert to BAM with samtools

    I'm running TopHat with the following options:
    tophat --keep-tmp --solexa1.3-quals --butterfly-search --min-intron-length 10 --max-intron-length 20000
    and getting an error at the very end. This only happens on 1 out 4 of my data files.

    [Fri Nov 26 02:19:27 2010] Beginning TopHat run (v1.1.4)
    -----------------------------------------------
    [Fri Nov 26 02:19:27 2010] Preparing output location ./tophat_out/
    [Fri Nov 26 02:19:27 2010] Checking for Bowtie index files
    [Fri Nov 26 02:19:27 2010] Checking for reference FASTA file
    [Fri Nov 26 02:19:27 2010] Checking for Bowtie
    Bowtie version: 0.12.7.0
    [Fri Nov 26 02:19:27 2010] Checking for Samtools
    Samtools version: 0.1.8.0
    [Fri Nov 26 02:19:27 2010] Checking reads
    min read length: 20bp, max read length: 80bp
    format: fastq
    quality scale: phred64 (reads generated with GA pipeline version >= 1.3)

    [Fri Nov 26 02:24:48 2010] Mapping reads against merlin with Bowtie
    [Fri Nov 26 02:35:18 2010] Joining segment hits
    [Fri Nov 26 02:40:36 2010] Mapping reads against merlin with Bowtie(1/3)
    [Fri Nov 26 02:46:23 2010] Mapping reads against merlin with Bowtie(2/3)
    [Fri Nov 26 02:53:25 2010] Mapping reads against merlin with Bowtie(3/3)
    [Fri Nov 26 02:53:29 2010] Searching for junctions via segment mapping
    [Fri Nov 26 03:01:00 2010] Retrieving sequences for splices
    [Fri Nov 26 03:01:01 2010] Indexing splices
    [Fri Nov 26 03:01:06 2010] Mapping reads against segment_juncs with Bowtie
    [Fri Nov 26 03:10:01 2010] Mapping reads against segment_juncs with Bowtie
    [Fri Nov 26 03:20:37 2010] Mapping reads against segment_juncs with Bowtie
    [Fri Nov 26 03:20:47 2010] Joining segment hits
    [Fri Nov 26 03:22:15 2010] Reporting output tracks
    Error: could not convert to BAM with samtools

    I can work around it by doing the steps below, so just posting in case others run into this.

    # Fix the SO:sorted header
    sed s/sorted/unsorted/ tophat_out/tmp/accepted_hits.sam > fixed.sam

    # Use picard to fix clipping
    java -jar picard-tools-1.35/CleanSam.jar INPUT=fixed.sam OUTPUT=fixed2.sam

    # Convert to bam
    java -jar picard-tools-1.35/SortSam.jar INPUT=fixed2.sam OUTPUT=accepted_hits.bam SORT_ORDER=coordinate
    Last edited by ben.weisburd; 11-26-2010, 07:13 PM.
  • Daehwan
    Member
    • Oct 2010
    • 27

    #2
    This is a bug in TopHat, we fixed this and will post a new version soon.

    Thanks,
    Daehwan

    Comment

    • ali.stanford
      Junior Member
      • Mar 2011
      • 1

      #3
      I am getting a similar error, but I am running Tophat v1.2.0. The Tophat release note say a compatibility issue was fixed with samtools version 0.1.12a, which is what I am using. Any ideas?

      This is the error report:
      Error in tophat:

      [Tue Mar 8 14:09:27 2011] Beginning TopHat run (v1.2.0)
      -----------------------------------------------
      [Tue Mar 8 14:09:27 2011] Preparing output location /home/lib/galaxy/database/tmp/tmplfhKIQ/

      [Tue Mar 8 14:09:27 2011] Checking for Bowtie index files
      [Tue Mar 8 14:09:27 2011] Checking for reference FASTA file

      Warning: Could not find FASTA file /home/lib/galaxy/hg18/bowtie/base/hg18.fa
      [Tue Mar 8 14:09:27 2011] Reconstituting reference FASTA file from Bowtie index

      [Tue Mar 8 14:13:47 2011] Checking for Bowtie

      Bowtie version: 0.12.7.0
      [Tue Mar 8 14:13:47 2011] Checking for Samtools

      Samtools Version: 0.1.12a
      [Tue Mar 8 14:14:31 2011] Checking reads

      min read length: 75bp, max read length: 75bp
      format: fastq
      quality scale: phred33 (default)
      [Tue Mar 8 14:32:10 2011] Mapping reads against hg18 with Bowtie
      [Tue Mar 8 14:48:27 2011] Joining segment hits
      [Tue Mar 8 14:55:57 2011] Mapping reads against hg18 with Bowtie(1/3)

      [Tue Mar 8 15:09:23 2011] Mapping reads against hg18 with Bowtie(2/3)
      [Tue Mar 8 15:22:17 2011] Mapping reads against hg18 with Bowtie(3/3)
      [Tue Mar 8 15:34:25 2011] Mapping reads against hg18 with Bowtie
      [Tue Mar 8 15:50:05 2011] Joining segment hits

      [Tue Mar 8 15:57:38 2011] Mapping reads against hg18 with Bowtie(1/3)
      [Tue Mar 8 16:12:02 2011] Mapping reads against hg18 with Bowtie(2/3)
      [Tue Mar 8 16:25:40 2011] Mapping reads against hg18 with Bowtie(3/3)

      [Tue Mar 8 16:38:24 2011] Searching for junctions via segment mapping
      [Tue Mar 8 17:07:34 2011] Retrieving sequences for splices
      [Tue Mar 8 17:12:50 2011] Indexing splices
      [Tue Mar 8 17:25:47 2011] Mapping reads against segment_juncs with Bowtie

      [Tue Mar 8 17:36:01 2011] Mapping reads against segment_juncs with Bowtie
      [Tue Mar 8 17:46:22 2011] Mapping reads against segment_juncs with Bowtie
      [Tue Mar 8 17:56:13 2011] Joining segment hits
      [Tue Mar 8 18:14:16 2011] Mapping reads against segment_juncs with Bowtie

      [Tue Mar 8 18:25:12 2011] Mapping reads against segment_juncs with Bowtie
      [Tue Mar 8 18:35:59 2011] Mapping reads against segment_juncs with Bowtie
      [Tue Mar 8 18:46:09 2011] Joining segment hits
      [Tue Mar 8 19:02:35 2011] Reporting output tracks

      Error: could not convert to BAM with samtools

      Comment

      • jgoecks
        Member
        • Jan 2010
        • 28

        #4
        Yes, I am seeing this problem in Tophat v1.2.0 as well, using samtools 0.1.12a. I have not been able to fix it as of yet; any help would be greatly appreciated.

        Comment

        • waseem
          Member
          • May 2011
          • 11

          #5
          Originally posted by Daehwan View Post
          This is a bug in TopHat, we fixed this and will post a new version soon.

          Thanks,
          Daehwan
          Has it been done, I am getting the same error

          Comment

          Latest Articles

          Collapse

          • 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
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, Yesterday, 11:13 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, Yesterday, 10:48 AM
          0 responses
          18 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Working...