Skip to content

Commit

Permalink
bioplanet apis: update ID prefix to ncats.bioplanet
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Jul 27, 2022
1 parent a397015 commit 0395669
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions bioplanet/bioplanet-pathway-disease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -438,17 +438,15 @@ components:
# - type: string
x-bte-kgs-operations:
## 3 potential types: Disease, Gene, Pathway (BioPlanet IDs)
## - BioPlanet IDs currently don't have a format in biolink model...
## current format we're using is BIOPLANET:bioplanet_90
## and API doesn't have the BIOPLANET prefix
## - API pathway IDs don't have a bioplanet prefix on them (but they are in the format bioplanet_276)
## - Gene is an "intermediate" / explanation for Disease <-> Pathway associations
## so I'm currently only doing Disease <-> Pathway
pathway-disease:
## 44,084 documents in the API
- supportBatch: true
useTemplating: true ## flag to say templating is being used below
inputs:
- id: BIOPLANET
- id: "ncats.bioplanet"
semantic: Pathway
requestBody:
body:
Expand All @@ -472,8 +470,8 @@ components:
response_mapping:
"$ref": "#/components/x-bte-response-mapping/disease"
# testExamples:
# - qInput: "BIOPLANET:bioplanet_276" ## Alpha-hemoglobin stabilizing enzyme (AHSP) pathway
# oneOutput: "OMIM:300751" ## Anemia, sideroblastic, X-linked, 300751 (3)
# - qInput: "ncats.bioplanet:bioplanet_276" ## Alpha-hemoglobin stabilizing enzyme (AHSP) pathway
# oneOutput: "OMIM:300751" ## Anemia, sideroblastic, X-linked, 300751 (3)
disease-pathway:
- supportBatch: true
useTemplating: true ## flag to say templating is being used below
Expand All @@ -487,7 +485,7 @@ components:
q: "{{ queryInputs }}"
scopes: subject.PHENO_TYPE
outputs:
- id: BIOPLANET
- id: "ncats.bioplanet"
semantic: Pathway
parameters:
fields: >-
Expand All @@ -502,8 +500,8 @@ components:
response_mapping:
"$ref": "#/components/x-bte-response-mapping/pathway"
# testExamples:
# - qInput: "OMIM:603909" ## Autoimmune lymphoproliferative syndrome, type II, 603909 (3)
# oneOutput: "BIOPLANET:bioplanet_26" ## D4-GDI signaling pathway
# - qInput: "OMIM:603909" ## Autoimmune lymphoproliferative syndrome, type II, 603909 (3)
# oneOutput: "ncats.bioplanet:bioplanet_26" ## D4-GDI signaling pathway
x-bte-response-mapping:
disease:
OMIM: subject.PHENO_TYPE ## no prefix
Expand All @@ -513,7 +511,7 @@ components:
related_genes_symbol: relation.GENE_SYMBOL
related_genes_ncbigene: relation.GENE_ID
pathway:
BIOPLANET: object.PATHWAY_ID
"ncats.bioplanet": object.PATHWAY_ID ## no prefix
pathway_name: object.PATHWAY_NAME
pathway_categories: object.PATHWAY_CATEGORIES
disease_name: subject.DISEASE_NAME
Expand Down
18 changes: 8 additions & 10 deletions bioplanet/bioplanet-pathway-gene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -437,14 +437,12 @@ components:
# type: array
# - type: string
x-bte-kgs-operations:
## - BioPlanet IDs currently don't have a format in biolink model...
## current format we're using is BIOPLANET:bioplanet_90
## and API doesn't have the BIOPLANET prefix
## API pathway IDs don't have a bioplanet prefix on them (but they are in the format bioplanet_276)
pathway-gene:
- supportBatch: true
useTemplating: true ## flag to say templating is being used below
inputs:
- id: BIOPLANET
- id: "ncats.bioplanet"
semantic: Pathway
requestBody:
body:
Expand All @@ -466,8 +464,8 @@ components:
response_mapping:
"$ref": "#/components/x-bte-response-mapping/gene"
# testExamples:
# - qInput: "BIOPLANET:bioplanet_869" ## Chondroitin sulfate/dermatan sulfate metabolism
# oneOutput: "NCBIGene:9672" ## SDC3
# - qInput: "ncats.bioplanet:bioplanet_869" ## Chondroitin sulfate/dermatan sulfate metabolism
# oneOutput: "NCBIGene:9672" ## SDC3
gene-pathway:
- supportBatch: true
useTemplating: true ## flag to say templating is being used below
Expand All @@ -481,7 +479,7 @@ components:
q: "{{ queryInputs }}"
scopes: subject.GENE_ID
outputs:
- id: BIOPLANET
- id: "ncats.bioplanet"
semantic: Pathway
parameters:
fields: >-
Expand All @@ -493,14 +491,14 @@ components:
response_mapping:
"$ref": "#/components/x-bte-response-mapping/pathway"
# testExamples:
# - qInput: "NCBIGene:1463" ## NCAN
# oneOutput: "BIOPLANET:bioplanet_789" ## Dermatan sulfate biosynthesis
# - qInput: "NCBIGene:1463" ## NCAN
# oneOutput: "ncats.bioplanet:bioplanet_789" ## Dermatan sulfate biosynthesis
x-bte-response-mapping:
gene:
NCBIGene: subject.GENE_ID ## no prefix
pathway_name: object.PATHWAY_NAME
pathway_categories: object.PATHWAY_CATEGORIES
pathway:
BIOPLANET: object.PATHWAY_ID
"ncats.bioplanet": object.PATHWAY_ID ## no prefix
pathway_name: object.PATHWAY_NAME
pathway_categories: object.PATHWAY_CATEGORIES

0 comments on commit 0395669

Please sign in to comment.