Skip to content

Commit

Permalink
mychem drugcentral bioactivity: switch to new rev operations
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Dec 19, 2024
1 parent aa8b771 commit 495ae9b
Showing 1 changed file with 12 additions and 41 deletions.
53 changes: 12 additions & 41 deletions mychem.info/openapi_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -334,30 +334,29 @@ paths:
- "$ref": "#/components/x-bte-kgs-operations/treatsChembl"
- "$ref": "#/components/x-bte-kgs-operations/treatsChembl-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-activator"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-activator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-activator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-agonist"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-agonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-agonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antagonist"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antagonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antagonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antibody"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antibody-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antibody-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antisense-inhibitor"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antisense-inhibitor-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-antisense-inhibitor-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-binding-agent"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-binding-agent-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-binding-agent-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inhibitor"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inhibitor-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inhibitor-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inverse-agonist"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inverse-agonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-inverse-agonist-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-modulator"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-negative-modulator"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-negative-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-negative-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-opener"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-opener-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-opener-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-positive-modulator"
# - "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-positive-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-bioactivity-positive-modulator-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-contraindication"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-contraindication-rev"
- "$ref": "#/components/x-bte-kgs-operations/drugcentral-indication"
Expand Down Expand Up @@ -2050,34 +2049,6 @@ components:
## for POSITIVE MODULATOR
- qInput: "UniProtKB:P23415" ## GLRA1 aka NCBIGene:2741
oneOutput: "UMLS:C0014277" ## enflurane aka CHEBI:4792
drugcentral-bioactivity-rev:
- supportBatch: true
useTemplating: true
inputs:
- id: UniProtKB
semantic: Gene
requestBody:
body:
q: "{{ queryInputs }}" ## no prefix
scopes: drugcentral.bioactivity.uniprot.uniprot_id
outputs:
- id: UMLS
semantic: SmallMolecule
parameters:
fields: drugcentral.xrefs.umlscui
size: 1000 ## note size limit
## using the same predicate as dgidb's no-relationship-specified.
## not using physically_interacts_with because it's not clear that all relationships involve a physical interaction between the chem and gene product
## not using affected_by because that's trickier to use with the new qualifier-modeling (can't ask for Edges without any qualifiers)
predicate: interacts_with
source: "infores:drugcentral"
knowledge_level: knowledge_assertion
agent_type: not_provided
response_mapping:
"$ref": "#/components/x-bte-response-mapping/drugcentral-umls"
testExamples:
- qInput: "UniProtKB:Q07912" ## TNK2 aka NCBIGene:10188
oneOutput: "UMLS:C4086264" ## entrectinib aka PUBCHEM.COMPOUND:25141092
drugcentral-contraindication:
- supportBatch: true
useTemplating: true
Expand Down

0 comments on commit 495ae9b

Please sign in to comment.