Clinical-Genomics / genmod

Annotate models of genetic inheritance patterns in variant files (vcf files)
http://moonso.github.io/genmod/
MIT License
74 stars 17 forks source link

KeyError: u'genmod/configs/rank_model_test_v1.4.ini' #35

Closed wclee47 closed 9 years ago

wclee47 commented 9 years ago

Hello,

I've installed your genmod on Python 2.7.9, but encountered the error like below.


Traceback (most recent call last): File "./genmod", line 4, in import('pkg_resources').run_script('genmod==2.0.7', 'genmod') File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 729, in run_script File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1649, in run_script File "/usr/local/lib/python2.7/site-packages/genmod-2.0.7-py2.7.egg/EGG-INFO/scripts/genmod", line 26, in

File "build/bdist.linux-x86_64/egg/genmod/commands/score_variants.py", line 136, in File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1155, in resource_filename File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1852, in get_resource_filename File "build/bdist.linux-x86_64/egg/pkg_resources/init.py", line 1873, in _extract_resource

KeyError: u'genmod/configs/rank_model_test_v1.4.ini'

Any workaround? Please let me know.

moonso commented 9 years ago

Hello,

thank you, this should be fixed in version 2.0.8. Just for curiosity, did you install via pip or git?

Måns

wclee47 commented 9 years ago

Thanks for the information.

I used git. Should I download the source code to use the other version like 2.0.8?

Won-Chul

moonso commented 9 years ago

Ok, great. Yes you can remove the old directory and do git clone again. Please confirm if the problem is solved.

wclee47 commented 9 years ago

The problem has been solved.

Many thanks for your quick response.

Won-Chul

moonso commented 9 years ago

Perfect! Thank you for spotting the bug.