get_canonical_for

get_canonical_for(prefix)[source]

Get the prefixes for which this is annotated as canonical.

Parameters

prefix (str) – The prefix to lookup.

Return type

Optional[List[str]]

Returns

The prefixes for which this is annotated as canonical. This is the inverse of get_has_canonical().

>>> "refseq" in get_canonical_for("ncbiprotein")
True
>>> get_canonical_for("chebi")
[]