Question: error in prepare annotation script DEXseq
0
gravatar for Lila M
3 months ago by
Lila M 470
UK
Lila M 470 wrote:

Hi everybody, I've tried to do some DEXseq analysis in R, but first I know that I have to run some python scripts, is here when I get stuck. I'm working with mouse, and I downloaded gtf files from here and also from here, but when I run:

python R/x86_64-pc-linux-gnu-library/3.3/DEXSeq/python_scripts/dexseq_prepare_annotation.py gencode.mouse.annotation.gtf annot.mouse.DEXSeq.gff

I get this error message: F

File "/R/x86_64-pc-linux-gnu-library/3.3/DEXSeq/python_scripts/dexseq_prepare_annotation.py", line 129
    raise ValueError, "Same name found on two chromosomes: %s, %s" % ( str(l[i]), str(l[i+1]) )
                    ^
SyntaxError: invalid syntax

I know that people have the same problems sometimes, but I couldn't find a way to fix it, some suggestions? Thanks!

deu gencode ensamble rnaseq dexseq • 150 views
ADD COMMENTlink modified 23 days ago by vida.t0 • written 3 months ago by Lila M 470
0
gravatar for vida.t
23 days ago by
vida.t0
vida.t0 wrote:

Hi Lila, You may change that line to this,

raise ValueError sys.stderr.write( "Same name found on two chromosomes: %s, %s" % ( str(l[i]), str(l[i+1]) ) )

I think the reason is that this script was written in python2, you should make changes to make it compatible with python3 or run it using 2. There are also two uses of xrange that you can change them to range.

Hope this is still useful for you after 10 weeks!

ADD COMMENTlink modified 23 days ago by ATpoint15k • written 23 days ago by vida.t0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 918 users visited in the last hour