Synonym

class pronto.Synonym

A synonym in an ontology.

__eq__(other)

Return self==value.

__hash__()

Return hash(self).

__init__(desc, scope=None, syn_type=None, xref=None)

Create a new synonym.

Parameters:
  • desc (str) – a description of the synonym.
  • scope (str, optional) – the scope of the synonym (either EXACT, BROAD, NARROW or RELATED).
  • syn_type (SynonymType, optional) – the type of synonym if relying on a synonym type defined in the Typedef section of the ontology.
  • xref (list, optional) – a list of cross-references for the synonym.
__repr__()

Return repr(self).

__weakref__

list of weak references to the object (if defined)

obo

str – the synonym serialized in obo format.