find_circ - test data error
1
0
Entering edit mode
4.8 years ago
harry ▴ 30

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 • 1.6k views
ADD COMMENT
0
Entering edit mode

plz tell anyone about this as soon as possible. thanks

ADD REPLY
0
Entering edit mode
4.8 years ago
ATpoint 81k

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

ADD COMMENT
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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.

ADD REPLY
0
Entering edit mode

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

ADD REPLY
0
Entering edit mode

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

ADD REPLY

Login before adding your answer.

Traffic: 2643 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6