Skip to content

Commit

Permalink
fix: update scopes/fields/response-mapping, comments, source
Browse files Browse the repository at this point in the history
to maximize the number of records that can be retrieved
  • Loading branch information
colleenXu committed Aug 4, 2021
1 parent fc3c1fc commit 53147f0
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions mychem.info/openapi_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -716,18 +716,22 @@ components:
response_mapping:
"$ref": "#/components/x-bte-response-mapping/chembl"
causesAdverseEvent:
## example: https://mychem.info/v1/query?q=drugbank.name:nitisinone&fields=drugcentral.fda_adverse_event
## there are also counts for...having drug + adverse event (ae) (drug_ae), having drug but no adverse event (drug_no_ae)
## no drug but had adverse event (no_drug_ae), no drug and no adverse event (no_drug_no_ar)
## not sure what the llr, llr_threshold, level means
## - chose to map to Disease semantic type due to more support for ID mapping there, will support queries
## link: https://github.com/biothings/BioThings_Explorer_TRAPI/issues/217#issuecomment-880204237
## - example: https://mychem.info/v1/query?q=drugbank.name:nitisinone&fields=drugcentral.fda_adverse_event
## - there are also counts for...having drug + adverse event (ae) (drug_ae), having drug but no adverse event (drug_no_ae)
## no drug but had adverse event (no_drug_ae), no drug and no adverse event (no_drug_no_ar)
## not sure what the llr, llr_threshold, level means
- supportBatch: true
inputSeparator: ","
parameters:
fields: drugcentral.fda_adverse_event
requestBody:
body:
q: "{inputs[0]}"
scopes: "_id,chembl.molecule_chembl_id"
## there are 2016 records with drugcentral.fda_adverse_event fields
## most of them (1994) also have the drugcentral.xrefs.chembl_id field
scopes: drugcentral.xrefs.chembl_id
header: application/x-www-form-urlencoded
inputs:
- id: CHEMBL.COMPOUND
Expand All @@ -737,14 +741,16 @@ components:
semantic: Disease
predicate: causes_adverse_event ## current biolink predicate
## through drugcentral, FDA Adverse Event Reporting System (FAERS) information
source: drugcentral
source: "infores:drugcentral"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/adverseEvent"
adverseEventCausedBy:
- supportBatch: true
inputSeparator: ","
parameters:
fields: chembl.molecule_chembl_id
## there are 2016 records with drugcentral.fda_adverse_event fields
## most of them (1994) also have the drugcentral.xrefs.chembl_id field
fields: drugcentral.xrefs.chembl_id
size: '1000'
requestBody:
body:
Expand All @@ -758,6 +764,6 @@ components:
- id: MEDDRA
semantic: Disease
predicate: adverse_event_caused_by ## current biolink predicate
source: drugcentral
source: "infores:drugcentral"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/chembl"
"$ref": "#/components/x-bte-response-mapping/drugcentral-chembl"

0 comments on commit 53147f0

Please sign in to comment.