OboNormalizer

class pyobo.OboNormalizer(prefix)[source]

Bases: Normalizer

A utility for normalizing by names.

Initialize the normalizer.

Parameters:
  • id_to_name – An identifier to name dictionary.

  • id_to_synonyms – An identifier to list of synonyms dictionary.

  • remove_prefix – A prefix to be removed from the identifiers. Useful for nomenclatures like ChEBI.

Methods Summary

normalize(query)

Try and normalize a name to a identifier and canonical name.

Methods Documentation

normalize(query)[source]

Try and normalize a name to a identifier and canonical name.

Return type:

Union[Tuple[str, str, str], Tuple[None, None, str]]