get_depends_on

get_depends_on(prefix)[source]

Return a list of resources that this resources (has been annotated to) depends on.

This is complementary to get_appears_in().

Parameters

prefix (str) – The prefix to look up

Return type

Optional[List[str]]

Returns

The list of resources this prefix has been annotated to depend on. This list could be incomplete, since curation of these fields can easily get out of sync with curation of the resource itself. However, false positives should be pretty rare.

>>> import bioregistry
>>> assert "bfo" in bioregistry.get_depends_on("foodon")
>>> assert "fobi" not in bioregistry.get_depends_on("foodon")