I'm new to ubuntu and i am trying to install tophat-2.1.1.Linux_x86_64 in an ubuntu 16.04 LTS system.
I unpacked the binary version to the home directory, and because ~/bin
is in my $PATH
I did:
cd
tar xvfz tophat-2.1.1.Linux_x86_64.tar.gz
cd ~/bin
ln -s ~/tophat-2.1.1.Linux_x86_64/tophat2
And I got the following error when type tophat2
:
File "/home/tania/tophat-2.1.1.Linux_x86_64/tophat", line 1003
except getopt.error, msg:
^
SyntaxError: invalid syntax
What am I doing wrong?
Try
tophat2 -h
. (or-help
) It is expecting you to provide some input.it gives the same error
The investigate @Wouter's suggestion below.
Looks like a wrong python version issue
to use tophat Python version 2.6 or higher is required, and mine is Python 3.5.2, so it isn't cause of that
See http://seqanswers.com/forums/showthread.php?t=17514
Oh and stop using tophat for new projects, it's deprecated