get_canonical_for

get_canonical_for(prefix: str) List[str] | None[source]

Get the prefixes for which this is annotated as canonical.

Parameters:

prefix – The prefix to lookup.

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")
[]