monarch-initiative / biolink-api

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

Fetch raw association counts instead of distinct #310

Closed deepakunni3 closed 4 years ago

deepakunni3 commented 4 years ago

This PR modifies the bioentity/<type>/<id> route to return raw association counts.

It also adds a new argument called distinct_counts which will trigger distinct association counts, when needed.

@kshefchek @cmungall

deepakunni3 commented 4 years ago

This should resolve the performance issue and the inconsistency in counts, as observed in https://github.com/biolink/biolink-api/issues/308

kshefchek commented 4 years ago

+1 It would be useful to disambiguate causal vs non-causal gene-disease counts, especially for auto generating figures such as https://github.com/monarch-initiative/monarch-ui/blob/master/src/assets/img/phenotype-cov-hum-6.png