INNER CODE UNIT · Python
_init_obo_translator
pymzml/pymzML · pymzml/run.py:345
def _init_obo_translator(self):
"""
Initialize the obo translator with the minimum requirement
and extra Accessions.
Returns:
obo_translator (OboTranslator): translator class to translate
accessions to names
"""
# parse obo, check MS tags and if they are ok in minimum.py (minimum
# required) ...
if self.info.get("obo_version", None) is None:
self.info["obo_version"] = "4.1.79"
obo_translator = obo.OboTranslator.from_cache(version=self.info["obo_version"])
return obo_translator
def _init_iter(self):