is_deprecated

is_deprecated(prefix: str) bool[source]

Return if the given prefix corresponds to a deprecated resource.

Parameters:

prefix – The prefix to lookup

Returns:

If the prefix has been explicitly marked as deprecated either by the Bioregistry, OBO Foundry, OLS, or MIRIAM. If no marks are present, assumed not to be deprecated.

>>> import bioregistry
>>> assert bioregistry.is_deprecated('imr')  # marked by OBO
>>> assert bioregistry.is_deprecated('idomal')  # marked by OBO as inactive
>>> assert bioregistry.is_deprecated('iro') # marked by Bioregistry
>>> assert bioregistry.is_deprecated('miriam.collection') # marked by MIRIAM