Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • panagiotis
    Junior Member
    • Sep 2012
    • 7

    Possible tophat 2.0.6 bug?

    Hi all,

    I am trying to use tophat to map SOLiD colorspace pair-end (50x35) reads with tophat. However, when I tried with the standard procedure which looks something like:

    Code:
    tophat --color --quals --num-threads 8 --coverage-search --library-type fr-secondstrand --output-dir ./tophat_out --prefilter-multihits --keep-tmp --GTF /opt/iGenomes/Homo_sapiens/UCSC/hg19/Annotation/Genes/genes.gtf --bowtie1 /opt/NGSTools/Bowtie/indexes/hg19_c ./CON_BR1_F3.csfasta ./CON_BR1_F5.csfasta ./CON_BR1_F3_QV.qual ./CON_BR1_F5_QV.qual
    I got the following error:

    Code:
    [2012-12-20 16:07:24] Beginning TopHat run (v2.0.6)
    -----------------------------------------------
    [2012-12-20 16:07:24] Checking for Bowtie
    		  Bowtie version:	 0.12.8.0
    [2012-12-20 16:07:24] Checking for Samtools
    		Samtools version:	 0.1.18.0
    [2012-12-20 16:07:24] Checking for Bowtie index files
    [2012-12-20 16:07:24] Checking for reference FASTA file
    	Warning: Could not find FASTA file /opt/NGSTools/Bowtie/indexes/hg19_c.fa
    [2012-12-20 16:07:24] Reconstituting reference FASTA file from Bowtie index
      Executing: /opt/NGSTools/Bowtie/bowtie-inspect /opt/NGSTools/Bowtie/indexes/hg19_c > ./tophat_out/tmp/hg19_c.fa
    [2012-12-20 16:11:08] Generating SAM header for /opt/NGSTools/Bowtie/indexes/hg19_c
    	format:		 fasta
    [2012-12-20 16:11:30] Reading known junctions from GTF file
    [2012-12-20 16:11:36] Pre-filtering multi-mapped left reads
    [2012-12-20 16:11:36] Mapping CON_BR1_F3 to genome hg19_c with Bowtie 
    	[FAILED]
    Error running bowtie:
    Error: reads file does not look like a FASTA file
    terminate called after throwing an instance of 'int'
    I checked and re-checked many things regarding my file formats and checked the logs. Eventually, I found that the tophat wrapper is launching prep_reads which does not produce fasta output (rather fastq output), while the subsequent bowtie command assumes fasta format from stdin. So what I did was to edit tophat.py, and commented out the lines 2164-2165

    Code:
            #elif reads_format == "fasta":
            #    bowtie_cmd += ["-f"]
    and saved to my_tophat.py in order to use specifically with my data.

    This was not of course the right way to do, so my question is, am I doing something wrong, or somebody else here has encountered this before. Is it a tophat bug?

    Thanks!
  • panagiotis
    Junior Member
    • Sep 2012
    • 7

    #2
    My workaround fixes the problem but I also just noticed that the problem does not appear without the --prefilter-multihits option and the untouched tophat python script. So it is quite possible that it is a tophat 2.0.6 bug with csfasta input and the --prefilter-multihits option...

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Nine Things a Sample Prep Scientist Thinks About Before Sequencing
      by SEQadmin2


      I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

      Here are nine questions we think about, in roughly the order they matter, before...
      06-18-2026, 07:11 AM
    • SEQadmin2
      From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
      by SEQadmin2


      Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


      The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
      ...
      06-02-2026, 10:05 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 11:10 AM
    0 responses
    6 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    102 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-05-2026, 10:09 AM
    0 responses
    124 views
    0 reactions
    Last Post SEQadmin2  
    Working...