Synonym

class pyobo.Synonym(name, specificity='EXACT', type=None, provenance=<factory>)[source]

Bases: object

A synonym with optional specificity and references.

Attributes Summary

specificity

The specificity of the synonym

type

The type of synonym.

Methods Summary

to_obo()

Write this synonym as an OBO line to appear in a [Term] stanza.

Attributes Documentation

specificity: Literal['EXACT', 'NARROW', 'BROAD', 'RELATED'] = 'EXACT'

The specificity of the synonym

type: Optional[SynonymTypeDef] = None

The type of synonym. Must be defined in OBO document!

Methods Documentation

to_obo()[source]

Write this synonym as an OBO line to appear in a [Term] stanza.

Return type:

str