Hi All,
There's a bug in Tophat 2.0.11 bowtie header generation. Bowtie2 2.2.3 is more stringent in requiring the "-x" parameter when specifying the /path/to/ref/index and fails, causing an incomplete *.samheader.sam file to be created which breaks downstream steps. Attached is a patch that adds the "-x" option prior to listing the path to the reference index. It should fix the problem. I've confirmed that it works fine with Bowtie 2.2.2 as well.
--- tophat.orig 2014-06-13 16:37:07.987360700 -0500
+++ tophat 2014-06-13 16:55:55.543802747 -0500
@@ -1415,7 +1415,7 @@
if read_params.color:
bowtie_header_cmd.append('-C')
- bowtie_header_cmd.extend([idx_prefix, '/dev/null'])
+ bowtie_header_cmd.extend(['-x', idx_prefix, '/dev/null'])
if noSkip:
subprocess.call(bowtie_header_cmd,
stdout=temp_sam_header_file,
If there's a better place to submit the patch please let me know.
Matt