monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
64 stars 25 forks source link

Add ability to filter on leaf nodes in autocomplete #347

Closed kshefchek closed 4 years ago

kshefchek commented 4 years ago

For applications such as the phenotype profile search it is useful to limit terms on "leaf" nodes, or terms that do not contain any subclasses. This is useful for diseases, but not for phenotypes, so this will require some special filter logic (category:disease AND leaf:true) OR ...

kshefchek commented 4 years ago

this is doable now given https://github.com/SciGraph/golr-loader/commit/4a1c91526a95cbb956013a5bdad4a83de6192967

kshefchek commented 4 years ago

instead we added a boolean for nodes with a phenotype since many non leaf diseases contain direct phenotype annotations, closed with https://github.com/biolink/biolink-api/pull/351