Skip to content

Commit

Permalink
Merge branch 'master' into biolink3-textMining
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenXu committed Mar 9, 2023
2 parents cf1e5cc + 0925483 commit cac099b
Show file tree
Hide file tree
Showing 23 changed files with 6,856 additions and 468 deletions.
535 changes: 500 additions & 35 deletions CTD/smartapi.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion DISEASES/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
Documentation of the BioThings API for [DISEASES](https://diseases.jensenlab.org/About)
data.
termsOfService: https://biothings.io/about
title: DISEASES API
title: BioThings DISEASES API
version: '1.0'
x-translator:
infores: "infores:biothings-diseases"
Expand Down
2 changes: 1 addition & 1 deletion EBIgene2phenotype/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
Documentation of the BioThings API for
[EBIgene2phenotype](https://www.ebi.ac.uk/gene2phenotype/) data.
termsOfService: https://biothings.io/about
title: EBIgene2phenotype API
title: BioThings EBIgene2phenotype API
version: '2020-02-19'
x-translator:
infores: "infores:biothings-ebi-gene2phenotype"
Expand Down
2 changes: 1 addition & 1 deletion MGIgene2phenotype/smartapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ info:
Documentation of the BioThings API for
[MGIgene2phenotype](http://www.informatics.jax.org/phenotypes.shtml) data.
termsOfService: https://biothings.io/about
title: MGIgene2phenotype API
title: BioThings MGIgene2phenotype API
version: '6.14'
x-translator:
infores: "infores:biothings-mgi-g2p"
Expand Down
177 changes: 170 additions & 7 deletions biolink/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,9 @@ paths:
## - there are more parameters in the endpoints below. Only included parameters we're using
## - potentially interesting operation to annotate:
## - disease -> treatment: doesn't have same output format as the other endpoints...
## - function <-> gene: looks like MolecularActivity GO <-> Gene
## - function <-> gene: looks like GO terms <-> Gene (tricky Gene -> GO because no separation between the sub-ontologies bp/cc/mf)
## - bioentity/gene/{id}/expression/anatomy: same as gene/anatomy endpoint (already annotated)?
## - bioentity/gene/{id}/homologs: same as gene/anatomy endpoint (already annotated)
## - /bioentity/gene/{id}/ortholog/diseases: for non-human genes to diseases?
## - /bioentity/gene/{id}/ortholog/phenotypes: for non-human genes to phenotypes?
## - bioentity/gene/{id}/homologs: gene -> gene homologs in other species (could annotate MyGene instead?)
## - gene <-> pathway
## - ontology/shared/{subject}/{object}:
## the shared ancestry operation looks kinda interesting...but it's only for GO terms?
Expand Down Expand Up @@ -349,6 +347,74 @@ paths:
- gene
x-bte-kgs-operations:
- "$ref": "#/components/x-bte-kgs-operations/gene-interaction"
"/bioentity/gene/{id}/ortholog/diseases":
get:
parameters:
- name: id
description: "CURIE identifier of gene, e.g. NCBIGene:4750"
in: path
required: true
example: "HGNC:8548"
schema:
type: string
- "$ref": "#/components/parameters/rows"
- "$ref": "#/components/parameters/start"
- "$ref": "#/components/parameters/facet"
- "$ref": "#/components/parameters/facet_fields"
- "$ref": "#/components/parameters/unselect_evidence"
- "$ref": "#/components/parameters/exclude_automatic_assertions"
- "$ref": "#/components/parameters/fetch_objects"
- "$ref": "#/components/parameters/use_compact_associations"
- "$ref": "#/components/parameters/slim"
- "$ref": "#/components/parameters/evidence"
- "$ref": "#/components/parameters/direct"
- "$ref": "#/components/parameters/taxon"
- "$ref": "#/components/parameters/direct_taxon"
- "$ref": "#/components/parameters/relation"
- "$ref": "#/components/parameters/sort"
- "$ref": "#/components/parameters/q"
responses:
'200':
description: Success
summary: Returns diseases associated with orthologs of a gene
tags:
- gene
x-bte-kgs-operations:
- "$ref": "#/components/x-bte-kgs-operations/geneOrtholog-disease"
"/bioentity/gene/{id}/ortholog/phenotypes":
get:
parameters:
- name: id
description: "CURIE identifier of gene, e.g. NCBIGene:4750"
in: path
required: true
example: "HGNC:8548"
schema:
type: string
- "$ref": "#/components/parameters/rows"
- "$ref": "#/components/parameters/start"
- "$ref": "#/components/parameters/facet"
- "$ref": "#/components/parameters/facet_fields"
- "$ref": "#/components/parameters/unselect_evidence"
- "$ref": "#/components/parameters/exclude_automatic_assertions"
- "$ref": "#/components/parameters/fetch_objects"
- "$ref": "#/components/parameters/use_compact_associations"
- "$ref": "#/components/parameters/slim"
- "$ref": "#/components/parameters/evidence"
- "$ref": "#/components/parameters/direct"
- "$ref": "#/components/parameters/taxon"
- "$ref": "#/components/parameters/direct_taxon"
- "$ref": "#/components/parameters/relation"
- "$ref": "#/components/parameters/sort"
- "$ref": "#/components/parameters/q"
responses:
'200':
description: Success
summary: Returns phenotypes associated with orthologs for a gene
tags:
- gene
x-bte-kgs-operations:
- "$ref": "#/components/x-bte-kgs-operations/geneOrtholog-phenotype"
"/bioentity/gene/{id}/phenotypes":
get:
parameters:
Expand Down Expand Up @@ -792,6 +858,14 @@ components:
## this often has "expressed in" with inverse: true. Meaning the actual relation should be "expresses"
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id
gene-hgnc-dbsnp-start:
HGNC: associations.object.HGNC
input_name: associations.subject.label ## for the dbsnp input
monarch_source_database: associations.provided_by
## there's also a relation.id and relation.inverse.
## this often has "expressed in" with inverse: true. Meaning the actual relation should be "expresses"
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id
pathway-react:
REACT: associations.object.REACT
monarch_source_database: associations.provided_by
Expand All @@ -802,8 +876,15 @@ components:
monarch_source_database: associations.provided_by
pubmed: associations.publications.id
"biolink:original_predicate": associations.relation.label
phenotype-hp-dbsnp-start:
HP: associations.object.HP
input_name: associations.subject.label ## for the dbsnp input
monarch_source_database: associations.provided_by
pubmed: associations.publications.id
"biolink:original_predicate": associations.relation.label
variant-dbsnp:
DBSNP: associations.object.dbSNP
output_name: associations.object.label
monarch_source_database: associations.provided_by
pubmed: associations.publications.id
"biolink:original_predicate": associations.relation.label
Expand All @@ -817,6 +898,26 @@ components:
monarch_source_database: associations.provided_by
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id
disease-mondo-dbsnp-start:
MONDO: associations.object.MONDO
input_name: associations.subject.label ## for the dbsnp input
monarch_source_database: associations.provided_by
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id
orthologGene2diseaseMondo:
MONDO: associations.object.MONDO
homologous_gene_model_id: associations.subject.id ## what is directly annotated to the disease
homologous_gene_model_name: associations.subject.label
monarch_source_database: associations.provided_by
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id ## not all of these are pubmed though...saw some WormBase:WBPaper ones
orthologGene2phenoHP:
HP: associations.object.HP
homologous_gene_model_id: associations.subject.id ## what is directly annotated to the disease
homologous_gene_model_name: associations.subject.label
monarch_source_database: associations.provided_by
"biolink:original_predicate": associations.relation.label
pubmed: associations.publications.id ## not all of these are pubmed though...saw some WormBase:WBPaper ones
x-bte-kgs-operations:
## other useful endpoints for x-bte annotation are...
## /relation/usage/between/{subject_category}/{object_category}
Expand Down Expand Up @@ -1104,6 +1205,68 @@ components:
# - qInput: "HGNC:2950" ## DNAH5
# oneOutput: "HGNC:9069" ## PLEC
## another possible input: HGNC:7551, MYBPC3
geneOrtholog-disease:
## - starting with HGNC = starting with human gene, getting non-human gene orthologs
## then finding directly-related diseases
## finds info that isn't found through gene-phenotype direct relationships
## - don't have a way to get information in reverse direction (Disease -> human gene through ortholog)
## can get from Disease -> gene-ortholog
## - noticed Wormbase-related data/homologs (C. elegans)
## - can find more examples from /relation/usage/between/model/disease
- supportBatch: false
useTemplating: true
inputs:
- id: HGNC
semantic: Gene ## aka start with human gene
parameters:
id: "{{ queryInputs | addPrefix('HGNC') }}"
## add prefix since Monarch expects this, while BTE automatically removes
rows: -1
direct: true
unselect_evidence: true
## don't need to set disease to human-only...
outputs:
- id: MONDO
semantic: Disease
## gene -> gene ortholog -(is model of)-> disease...not sure what predicate to use
predicate: related_to
source: "infores:monarchinitiative"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/orthologGene2diseaseMondo"
# testExamples:
# - qInput: "HGNC:9508" ## PSEN1
# oneOutput: "MONDO:0006559" ## hidradenitis suppurativa, not found through gene-disease endpoints
geneOrtholog-phenotype:
## - starting with HGNC = starting with human gene, getting non-human gene orthologs
## then finding directly-related phenotypes
## finds info that isn't found through gene-phenotype direct relationships
## - don't have a way to get information in reverse direction (Phenotype -> human gene through ortholog)
## can get from Phenotype -> gene-ortholog
## - noticed MGI-related data/homologs
- supportBatch: false
useTemplating: true
inputs:
- id: HGNC
semantic: Gene ## aka start with human gene
parameters:
id: "{{ queryInputs | addPrefix('HGNC') }}"
## add prefix since Monarch expects this, while BTE automatically removes
rows: -1
direct: true
unselect_evidence: true
## don't need to set phenotype to human-only...
outputs:
- id: HP
semantic: PhenotypicFeature
## gene -> gene ortholog -(has phenotype)-> phenotype...not sure what predicate to use
predicate: related_to
source: "infores:monarchinitiative"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/orthologGene2phenoHP"
# testExamples:
# - qInput: "HGNC:8548" ## P4HB
# oneOutput: "HP:0003540" ## Impaired platelet aggregation, not found from gene-phenotype operation
## another possible input: HGNC:9508, PSEN1 -> HP:0009121, Abnormal axial skeleton morphology
gene-phenotype:
## will include non-human phenotypes because Monarch doesn't include the taxon for phenotypes
## but prefixes show the species (MP = mouse)
Expand Down Expand Up @@ -1273,7 +1436,7 @@ components:
predicate: contributes_to
source: "infores:monarchinitiative"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/disease-mondo"
"$ref": "#/components/x-bte-response-mapping/disease-mondo-dbsnp-start"
# testExamples:
# - qInput: "DBSNP:rs227731"
# oneOutput: "MONDO:0004747" ## cleft lip (disease)
Expand All @@ -1299,7 +1462,7 @@ components:
predicate: is_sequence_variant_of
source: "infores:monarchinitiative"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/gene-hgnc"
"$ref": "#/components/x-bte-response-mapping/gene-hgnc-dbsnp-start"
# testExamples:
# - qInput: "DBSNP:rs11879191"
# oneOutput: "HGNC:1735" ## CDC37
Expand All @@ -1325,7 +1488,7 @@ components:
predicate: related_to
source: "infores:monarchinitiative"
response_mapping:
"$ref": "#/components/x-bte-response-mapping/phenotype-hp"
"$ref": "#/components/x-bte-response-mapping/phenotype-hp-dbsnp-start"
# testExamples:
# - qInput: "DBSNP:rs115165302"
# oneOutput: "HP:0002944" ## Thoracolumbar scoliosis
Expand Down
12 changes: 6 additions & 6 deletions bioplanet/bioplanet-pathway-disease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -638,16 +638,16 @@ components:
# oneOutput: "ncats.bioplanet:bioplanet_26" ## D4-GDI signaling pathway
x-bte-response-mapping:
disease:
OMIM: subject.PHENO_TYPE ## no prefix
pathway_name: object.PATHWAY_NAME
OMIM: subject.PHENO_TYPE ## no prefix
input_name: object.PATHWAY_NAME ## BTE will use this for node name (node normalizer doesn't provide)
pathway_categories: object.PATHWAY_CATEGORIES
disease_name: subject.DISEASE_NAME
output_name: subject.DISEASE_NAME ## BTE will use this for node name if node normalizer didn't provide
related_genes_symbol: relation.GENE_SYMBOL
related_genes_ncbigene: relation.GENE_ID
pathway:
"ncats.bioplanet": object.PATHWAY_ID ## no prefix
pathway_name: object.PATHWAY_NAME
"ncats.bioplanet": object.PATHWAY_ID ## no prefix
output_name: object.PATHWAY_NAME ## BTE will use this for node name (node normalizer doesn't provide)
pathway_categories: object.PATHWAY_CATEGORIES
disease_name: subject.DISEASE_NAME
input_name: subject.DISEASE_NAME ## BTE will use this for node name if node normalizer didn't provide
related_genes_symbol: relation.GENE_SYMBOL
related_genes_ncbigene: relation.GENE_ID
6 changes: 3 additions & 3 deletions bioplanet/bioplanet-pathway-gene.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -629,10 +629,10 @@ components:
# oneOutput: "ncats.bioplanet:bioplanet_789" ## Dermatan sulfate biosynthesis
x-bte-response-mapping:
gene:
NCBIGene: subject.GENE_ID ## no prefix
pathway_name: object.PATHWAY_NAME
NCBIGene: subject.GENE_ID ## no prefix
input_name: object.PATHWAY_NAME ## BTE will use this for node name (node normalizer doesn't provide)
pathway_categories: object.PATHWAY_CATEGORIES
pathway:
"ncats.bioplanet": object.PATHWAY_ID ## no prefix
pathway_name: object.PATHWAY_NAME
output_name: object.PATHWAY_NAME ## BTE will use this for node name (node normalizer doesn't provide)
pathway_categories: object.PATHWAY_CATEGORIES
Loading

0 comments on commit cac099b

Please sign in to comment.