GO term using GOAtools
0
0
Entering edit mode
4.3 years ago
rthapa ▴ 90

Hi,

I am getting a key error while reading the .obo file. The same script and obo file were working before. Does anyone have any suggestions? Thanks

obofile = obo_par.GODag('go-basic.obo')
Traceback (most recent call last):
File "", line 1, in 
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/goatools/obo_parser.py", line 285, in init
self.version, self.data_version = self.load_obo_file(obo_file, optional_attrs, load_obsolete, prt)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/goatools/obo_parser.py", line 306, in load_obo_file
self._populate_terms(reader.optobj)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/goatools/obo_parser.py", line 336, in _populate_terms
rec.parents = set([self[goid] for goid in rec._parents])
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/goatools/obo_parser.py", line 336, in 
rec.parents = set([self[goid] for goid in rec._parents])
KeyError: 'GO:1902494'
GOAtools • 1.2k views
ADD COMMENT

Login before adding your answer.

Traffic: 3832 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6