-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python error with --coverage #40
Comments
Hi Mike, There's is an oddball bug in Python in early version of Python 2.7 (2.7.x < 2.7.5 if memory serves). What version of Python 2.7 are you running ( |
Thanks. I get this error with Python 2.7.6; and a similar error with Python 3.4.3. |
I'll take a look this week |
I haven't forgotten about this issue Mike, just haven't had the time to look at it yet. I'm sorry for the wait! 😞 |
Hello, I am encountering the same issue with python 2.7.12 and 3.5.2, working in a docker container based on ubuntu:xenial. I get the same error with the Neisseria test dataset and a Salmonella enterica dataset. I am using the suggested samtools/bedtools/bwa versions. For Neisseria I tried:
and my error looks like:
Let me know if there is anything you want me to try. Thanks! |
Alright...I'll carve out some time during the begining of January to finally squash this bug. It's been around long enough and I should really fix it. |
Alrighty, this bug should be fixed now. I missed escaping the "*" in the re.sub statement on line 790 while refactoring code .
And this also has made me realize why #36 is happening... So hopefully I'll get that fixed today as well |
@mikeyweigand @garfinjm Does the update from last week (you can update via pip if you want) solve this for you? |
Works perfect for me with the Neisseria test dataset. Thanks for the fix! |
Great! 😄 |
Sorry to reopen this one, could you do 0.5.2 release on github? For validation purposes, I would like to have a static release to put in my dockerfile, but I am getting an error with pip3:
Thanks again for all your help with this, let me know if you want any more debugging info from my attempts with pip. |
Done! https://github.com/jordanlab/stringMLST/releases/tag/0.5.2 I'll track down that pip error and put out a new pip bundle |
Working perfect now. Thanks for your help! |
In attempting to use '--coverage' I encounter the following python error, which I have been unable to correct. Admittedly, I am not a skilled python user.
Traceback (most recent call last):
File "/home/yrh8/Tools/stringMLST/stringMLST.py", line 1613, in
getCoverage(results)
File "/home/yrh8/Tools/stringMLST/stringMLST.py", line 790, in getCoverage
allele = gene+'_'+re.sub("*", "", str(results[sample][gene]))
File "/usr/lib/python2.7/re.py", line 151, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib/python2.7/re.py", line 244, in _compile
raise error, v # invalid expression
sre_constants.error: nothing to repeat
The text was updated successfully, but these errors were encountered: