RiboCode icon indicating copy to clipboard operation
RiboCode copied to clipboard

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

Open ghost opened this issue 8 years ago • 5 comments

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

ghost avatar Jun 23 '17 12:06 ghost

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.

zhengtaoxiao avatar Jun 28 '17 01:06 zhengtaoxiao

Hi,

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

ghost avatar Jun 28 '17 13:06 ghost

Hi, Can you post the complete error message here ?

zhengtaoxiao avatar Jun 28 '17 16:06 zhengtaoxiao

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!

ghost avatar Jun 29 '17 10:06 ghost

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 avatar Jul 04 '17 02:07 zhengtaoxiao