SuLab / scheduled-bots

GeneWiki Scheduled Bots
MIT License
9 stars 15 forks source link

[clingen bot]: refactor to use mygene.info instead of downloading flat file directly #68

Open andrewsu opened 4 years ago

andrewsu commented 4 years ago

From slack discussion with @sabahzero

"refactor to use mygene.info": the intent here was to change your bot to get data from mygene.info, rather than directly downloading the csv file. This call http://mygene.info/v3/query?q=_exists_:clingen will get you the list of gene IDs with clingen data, and calls like this http://mygene.info/v3/gene/144568?fields=clingen will get all the info your bot needs. This might be a bit cleaner because the mygene.info team will make sure the parsing stays up to date with any changes in the file format.

the potential disadvantage is that it introduces another dependency (on mygene.info), but obviously that's something we're committed to for the long term...

sabahzero commented 4 years ago

Note to test output for geneinfo vs original, that both are the same