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 a configurable service specific identifier converter #322

Closed deepakunni3 closed 5 years ago

deepakunni3 commented 5 years ago

This PR adds two identifier converter classes, one for SciGraph and another for MyGene. Both these classes have convert_gene_to_proteins and convert_protein_to_gene methods.

Which identifier converter to use is determined by conf/config.yaml.

The purpose of doing this is to allow flexibility in service that each implementation uses.

For Monarch, the conversion is done via SciGraph. For GO, the conversion is done via MyGene.

If there is a new implementation of the BioLink API that needs to use another service, then one can add a new class and refer to that in config.yaml.

@cmungall @kshefchek Would like your feedback on the approach used

cmungall commented 5 years ago

Have not looked yet, but the basic concept seems v sound and useful

On Tue, Sep 24, 2019 at 9:40 AM Deepak notifications@github.com wrote:

@deepakunni3 https://github.com/deepakunni3 requested your review on:

322 https://github.com/biolink/biolink-api/pull/322 Add a configurable

service specific identifier converter.

— You are receiving this because your review was requested. Reply to this email directly, view it on GitHub https://github.com/biolink/biolink-api/pull/322?email_source=notifications&email_token=AAAMMOLX5B46LZWRL7QET2TQLI6KLA5CNFSM4I2B7AHKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOTZ4UHGA#event-2658747288, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAMMOLV7XXTKSI6N6QQ4VDQLI6KLANCNFSM4I2B7AHA .

deepakunni3 commented 5 years ago

@kshefchek If this looks like the right approach and will not break anything in particular, please feel free to merge.

The behave tests are failing on Travis due to change in the data. I can tidy that as a separate PR