biopragmatics / bioontologies

🏷️ Unified access to biomedical ontologies
https://bioontologies.readthedocs.io
MIT License
8 stars 1 forks source link

Feature request: Dump JSON #9

Open joeflack4 opened 1 year ago

joeflack4 commented 1 year ago

I was surprised that this doesn't appear to be a feature yet. If you want, I can make a PR. For my Python scripting, I would rather use stick with bioontologies and save JSON to a file rather than use robot to do that.

joeflack4 commented 1 year ago

I believe before I was using parse_results = bioontologies.convert_to_obograph(inpath).

I think that I was looking for a way to get a simple JSON string back, or have it save a JSON file to some path, to save myself a couple extra lines of code.

I'm currently being blocked by something more imporant:

cthoyt commented 1 year ago

Sorry I never got to this - I would consider a PR for this if you have something in mind