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

Improve /bioentityset/homologs/ #240

Closed deepakunni3 closed 3 years ago

deepakunni3 commented 5 years ago

Improved /bioentityset/homologs/ to support multiple IDs and get associations based on a given relation. (#232)

@putmantime Feel free to test this out.

The route now takes one (or more) Gene IDs as input as well as a relation. Right now the relation argument is limited one of the following 8 types:

    Ortholog = 'RO:HOM0000017'
    LeastDivergedOrtholog = 'RO:HOM0000020'
    Homolog = 'RO:HOM0000007'
    Paralog = 'RO:HOM0000011'
    InParalog = 'RO:HOM0000023'
    OutParalog = 'RO:HOM0000024'
    Ohnolog = 'RO:HOM0000022'
    Xenolog = 'RO:HOM0000018'

with the default relation being Homolog.

Let me know if this needs further refinement.

deepakunni3 commented 5 years ago

@putmantime Could you take a look at this PR when you have time? If this is the right approach then I can extend this to other API calls

kshefchek commented 4 years ago

@deepakunni3 what is the status of this?

kshefchek commented 3 years ago

assuming this work was implemented elsewhere? please reopen if still relevant