I need to use CIVIC database through api.There seems no provision to retrieve gene information through gene name.We can access gene info. through your local id which we dont know beforehand.Is it expected to first use (https://civic.genome.wustl.edu/api/genes) which returns all gene ids and name and use it to find required gene id through gene name and use this gene id to query database or there is some alternate to it? Can i directly retrieve using name say FRS2 etc.
1 answer
This issue was resolved on the civic-client github issue tracker here: https://github.com/genome/civic-client/issues/367
the following queries will now work:
GET /api/genes/BRAF?identifier_type=entrez_symbol
GET /api/genes/238?identifier_type=entrez_id
For example:
- https://civic.genome.wustl.edu/api/genes/BRAF?identifier_type=entrez_symbol
- https://civic.genome.wustl.edu/api/genes/238?identifier_type=entrez_id
Improved documentation on these API methods and more is coming soon: https://civic.genome.wustl.edu/#/api-documentation
Log in to answer this question.