Skip to content

Commit

Permalink
Merge branch 'special-reverses' into biolink-4-update
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Mar 15, 2024
2 parents 50634e7 + 11b67c6 commit 8253c36
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions mychem.info/openapi_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,10 @@ components:
x-bte-response-mapping:
aeolusIndication-meddra:
MEDDRA: aeolus.indications.meddra_code
aeolus-unii:
"biolink:evidence_count": aeolus.indications.count
aeolusIndication-unii:
UNII: aeolus.unii
"biolink:evidence_count": aeolus.indications.count
chebiXrefs-reactome:
REACT: chebi.xrefs.reactome
chebi:
Expand Down Expand Up @@ -747,7 +749,7 @@ components:
- qInput: "UNII:90347YTW5F" ## alfuzosin aka PUBCHEM.COMPOUND:2092
oneOutput: "MEDDRA:10004446" ## Benign prostatic hyperplasia aka MONDO:0010811
aeolusTreats-rev:
- supportBatch: true
- supportBatch: false
useTemplating: true
inputs:
- id: MEDDRA
Expand All @@ -760,12 +762,14 @@ components:
- id: UNII
semantic: SmallMolecule
parameters:
fields: aeolus.unii ## no prefix
## need the whole thing for jmespath to work
fields: aeolus.unii,aeolus.indications ## no prefix
size: 1000 ## note size limit
jmespath: "aeolus.indications|[?(meddra_code=='{{ queryInputs }}')]"
predicate: treatment_applications_from
source: "infores:aeolus"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/aeolus-unii"
"$ref": "#/components/x-bte-response-mapping/aeolusIndication-unii"
testExamples:
- qInput: "MEDDRA:10012378" ## Depression aka MONDO:0002050
oneOutput: "UNII:OGG85SX4E4" ## Imipramine aka PUBCHEM.COMPOUND:3696
Expand Down

0 comments on commit 8253c36

Please sign in to comment.