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

/sim/search - limit question #374

Closed dominickdm closed 3 years ago

dominickdm commented 3 years ago

Hi,

We have a question regarding the sim/search API.

Why is the first match not the same if we do exactly the same call, but with a different limit? We would expect that the first match is always the same and that the limit is just a way to limit the list..

One of our examples (we have the same with other metrics too..) Example:

Jaccard - Limit 1 https://api.monarchinitiative.org/api/sim/search?metric=jaccard&id=HP%3A0000954&id=HP%3A0000286&id=HP%3A0001388&id=HP%3A0002511&limit=1&taxon=9606

image

Jaccard - Limit 10 https://api.monarchinitiative.org/api/sim/search?metric=jaccard&id=HP%3A0000954&id=HP%3A0000286&id=HP%3A0001388&id=HP%3A0002511&limit=10&taxon=9606

image

kshefchek commented 3 years ago

this is fixed now @dominickdm, please let us know if you run into any more bugs