Skip to content
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

pickle.load() AttributeError: 'module' object has no attribute 'Gene' #2

Open
ghost opened this issue Jun 23, 2017 · 5 comments
Open

Comments

@ghost
Copy link

ghost commented Jun 23, 2017

Hi,

I ran your tool following the guidelines but when I try to run the Ribocode.py bit, I am getting this error:
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'module' object has no attribute 'Gene'

It seems to stem from pickle.load()

Let me know if you have any suggestions.

Best

@zhengtaoxiao
Copy link
Member

zhengtaoxiao commented Jun 28, 2017

Hi,
Currently, the RiboCode only support the ensemble gtf file, for example,
ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_19/gencode.v19.annotation.gtf.gz

It looks like the line of "gene" feature is missing in your gtf file.

@ghost
Copy link
Author

ghost commented Jun 28, 2017

Hi,

The GTF file was the one you recommend in your tutorial, the Ensemble one.

@zhengtaoxiao
Copy link
Member

Hi,
Can you post the complete error message here ?

@ghost
Copy link
Author

ghost commented Jun 29, 2017

Hi,

I just removed the package and reinstalled with pip this time and it then worked flawlessly, not sure why though, exactly the same files were used.

Thanks!

@zhengtaoxiao
Copy link
Member

RiboCode use pickle to store and load data. The version of variables and classes are pickled. If you update the RiboCode package, the pickle file should be regenerated.

@zhengtaoxiao zhengtaoxiao reopened this Jul 4, 2017
zhengtaoxiao added a commit that referenced this issue Mar 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant