Entering edit mode
4.9 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'