class pronto.Synonym

A synonym in an ontology.


Return self==value.


Return hash(self).

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

Create a new synonym.

  • 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.

Return repr(self).


list of weak references to the object (if defined)


str – the synonym serialized in obo format.