This is a test version of Biostars. For the public version, visit https://www.biostars.org.
cuffmerge script error

hello,

I am trying to use cuffmerge tool of cufflinks suite for differential analysis but it is showing error reports in python script. However, I am not good at python script. can you please suggest me what to do with that.

molbiolab@molbiolab:~/Documents/Juli/Practice/cufflinks-2.2.1.Linux_x86_64$ ./cuffmerge
  File "./cuffmerge", line 95
    except getopt.error, msg:
                       ^
SyntaxError: invalid syntax
rna-seq

Please avoid the term "dear" - it means different things in different cultures and can be perceived as inappropriate in certain cultures. Also, please use the formatting bar (especially the code option) to present your post better. I've done it for you this time.
code_formatting

thank you for your suggestions. can you please help me regarding the question I have asked??

You need to provide files as input for cuffmerge. If you want to look at the help then generally ./cuffmerge -h (or --help)` is the normal convention for that.

couple of things to check make sure you are using python 2.7

python --version
alias python=python2.7

Also, make sure you are not running out of some virtual env with different python version than the system

deactivate

I was able to get rid of the error with the above Hope this helps

1 answer

cuffmerge is written in python. if you run it with ./cuffmerge system will treat cuffmerge as a shell script.

You can run it by python /path/to/cufflink/src/folder/cuffmerge or you can add it in $PATH variable and call it directly like cuffmerge

Log in to answer this question.