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

I use this command -------

/home/aclab/find_circ/unmapped2anchors.py /home/aclab/CircRNA/find_circ/unmapped/unmapped.bam | gzip >/home/aclab/CircRNA/find_circ/unmapped/anchors_unmapped.fastq.gz
I got this error-------
 File "/home/aclab/find_circ/unmapped2anchors.py", line 173
    print "@%s_A__%s" % (read.qname,seq)
                    ^
SyntaxError: invalid syntax

help me how to solve this problem

rna-seq

plz tell anyone about this as soon as possible. thanks

1 answer

Do you have python2.7 running as default or python3? This tools need python2.7, see manual.

I convert it into 2.7 version but still same error occur. now i have 2.7.15+

I just checked on my machine. Using py3 it exactly produces that error while with py2 it doesn't. You have to remove the header line and put the your py2 executable like:

#!/path/to/your/py27/executable/python

I can convert default setting by alias python=python2.7 is it correct or not ,if not then you plz tell me how can i convert the python 3.7 to python2.7 version.

If you have find_circ/unmapped2anchors.py script then please send me, if u change anything in that script. thanks

Install python2. Please google for that. You can use anaconda to get an environment with python2.7

Log in to answer this question.