locuszoom error
1
0
Entering edit mode
11 months ago
nanodano ▴ 30

Hi there, I downloaded locuszoom in it's entirty from their github page. I have everything in order but when I attempt to run the following I get an error:

locuszoom_test/bin/locuszoom --metal chr7.snx13.marker.locuszoom.metal --ld chr7.imputed.concat.sorted.nomono.80.recode.maf01.pheno.vcf.2.ld.locuszoom.input --refsnp rs1533245 --prefix chr7.snx13.rs1533245
/share/hennlab/progs/locuszoom_test/bin/../src/m2zfast.py:82: SyntaxWarning: invalid escape sequence '\d'
  RE_SNP_1000G = re.compile("chr(\d+|[a-zA-z]+):(\d+)$");
/share/hennlab/progs/locuszoom_test/bin/../src/m2zfast.py:83: SyntaxWarning: invalid escape sequence '\d'
  RE_SNP_RS = re.compile("rs(\d+)");
/share/hennlab/progs/locuszoom_test/bin/../src/m2zfast.py:82: SyntaxWarning: invalid escape sequence '\d'
  RE_SNP_1000G = re.compile("chr(\d+|[a-zA-z]+):(\d+)$");
/share/hennlab/progs/locuszoom_test/bin/../src/m2zfast.py:83: SyntaxWarning: invalid escape sequence '\d'
  RE_SNP_RS = re.compile("rs(\d+)");
Traceback (most recent call last):
  File "/share/hennlab/progs/locuszoom_test/bin/locuszoom", line 26, in <module>
    from m2zfast import main
  File "/share/hennlab/progs/locuszoom_test/bin/../src/m2zfast.py", line 109
    exec "self.%s = v" % str(k);
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'exec'. Did you mean exec(...)?

Has anyone gotten this before? Not sure how to fix it

locuszoom • 540 views
ADD COMMENT
1
Entering edit mode
11 months ago
GenoMax 147k

This error seems to be related to python version. As noted on the locuszoom page you need to use python v.2.7+ (v.3.x can't be used). Your default python is v.3.x. If you have python 2.7+. available on your machine then be sure to use that.

ADD COMMENT
0
Entering edit mode

You're 100% correct, I loaded 2.7 but the default was overriding it. Creating a conda env with only 2.7 worked. Thank you!

ADD REPLY

Login before adding your answer.

Traffic: 809 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