pypath.inputs.ontology.ontology§

pypath.inputs.ontology.ontology(ontology: str, fields: List | str | dict | None = None) List[tuple] | Dict[str, str][source]§

Downloads an ontology using the EBI Ontology Lookup Service.

Args
ontology: The ID of an ontology available in EBI OLS. For a

full list, call listof_ontologies.

fields: Additional fields to include, apart from the default

ones. Can be a dict of glom specs or simply keys in the terms section of the OLS Terms query response.