-
Notifications
You must be signed in to change notification settings - Fork 209
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
wr_hier.py fails with official gene2go and gaf files #142
Comments
I tried your two example commands using the current version, which is not in pip or conda. Both runs of the script worked successfully. Then I tried the pip version in both Python2 and Python3.6. It succeeds in Python 2, but fails in Python 3 with the errors that you show. GOATOOLS v0.6.10 was released on October 6, 2019, but the pip version was updated Sept 29, 2016. @tanghaibao , Can we create a new version for the current code? And then upload that to pip and conda? Thank you very much for bringing this to our attention and for taking the time to write us. |
To try a fix quickly, if you have permission to edit, you can modify this file on line 124:
Change 'wb' to 'w on line 124:
|
Or if you cannot edit the file try piping the output into a file:
|
Thanks @dvklopfenstein, I edited the file and now it's working for Thanks again for your help. |
Great. Thanks. I have not replicated the error you see with the GAF file with the latest files. I have not yet replicated the error:
Does your gaf file have a line that looks like this:
|
My mistake about the gaf file, I'd done a Thanks! |
Terrific. Thank you so much for your interest in GOATOOLS and for taking the time to open this issue. |
@matrs So now we don't need the version string in the gaf file. Setting the default version to 2.1 is a safe move because there is a low probability of users reading a gaf file that contains no version line that is the (old) version of 1.0. Also, GPAD is the new format of annotation file that is preferred over GAF. So the current gaf format will likely stay at 2.1 for a while. I am closing this. Please open a new issue if you need anything further. Thank you so much for your interest in GOATOOLS and for the feedback in this issue. |
Hello,
I'm trying to use the cli programs from
goatools
. I tried version0.9.7
fromconda
and0.9.9
from pip. Following the example from here:when i try the
gaf
file from http://geneontology.org/gene-associations/goa_human.gaf.gz , i get this error:Both association files are decompressed and I tried the commands with less arguments, but I'm always getting the same errors.
Any hint?
Regards
The text was updated successfully, but these errors were encountered: