althonos / pronto

A Python frontend to (Open Biomedical) Ontologies.
https://pronto.readthedocs.io
MIT License
231 stars 48 forks source link

Obtain ontology subgraph #194

Open maarten-devries opened 2 years ago

maarten-devries commented 2 years ago

Thank you for the great package.

Perhaps a naive question: Is it possible to obtain a subgraph of an ontology using pronto?

I'd like to grab a term and all its children (and children's children, recursively) and save this sub-ontology to an .obo file.

Thanks!