TheJacksonLaboratory / hpo-web

a web application to search and navigate the Human Phenotype Ontology (HPO)
https://hpo.jax.org
Other
13 stars 12 forks source link

resolve list of HPO terms via API #198

Open bheavner opened 2 years ago

bheavner commented 2 years ago

It appears that the /api/hpo/term/{ontologyId} endpoint only accepts a single ontologyId at a time.

As a feature request, it would be nice to be able to submit a list of HPO terms via a GET call to an API to get details for more than one HPO term at a time.

iimpulse commented 2 years ago

Would be great to know your use case. You could leverage phenol to load up the ontology and annotations to do what you please.

bheavner commented 2 years ago

My use case is that I may have a list of HPO term IDs, and want to look up the text string associated with them in a single API call - for a completely made-up and nonsense example, subject X is annotated with HP:0003577|HP:4000040|HP:0030674. I'd like to be able to resolve that and learn the annotation is:

HP:0003577 | Congenital onset
HP:4000040 | Puerpural onset
HP:0030674 | Antenatal onset