-
Notifications
You must be signed in to change notification settings - Fork 31
/
openapi_full_temp.yml
150 lines (150 loc) · 6.9 KB
/
openapi_full_temp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
openapi: '3.0.0'
info:
version: '1.0'
title: MyVariant.info API
description: >-
Documentation of the MyVariant.info Variant Query web services. Learn more about
[MyVariant.info](http://myvariant.info/)
termsOfService: http://myvariant.info/terms/
contact:
name: Chunlei Wu
x-role: responsible developer
email: [email protected]
x-id: 'https://github.com/newgene'
x-translator:
component: KP
team:
- Service Provider
servers:
- url: 'http://myvariant.info/v1'
description: 'Production server'
tags:
- name: variant
- name: annotation
- name: query
- name: translator
paths:
/query:
get:
summary: 'Make variant query and return matching variant hits'
parameters:
- name: q
in: query
description: >-
Query string. Examples "rs752396467", "possibly_damaging", "CDK7".
required: true
x-valueType:
- 'http://identifiers.org/hgnc.symbol/'
- 'http://identifiers.org/dbsnp/'
- 'http://identifiers.org/ensembl.gene/'
- 'http://identifiers.org/ensembl.transcript/'
- 'http://identifiers.org/ensembl.protein/'
- 'http://identifiers.org/ccds/'
- 'http://identifiers.org/uniprot/'
- 'http://identifiers.org/clinvar/'
- 'http://identifiers.org/omim/'
- 'http://identifiers.org/efo/'
- 'http://identifiers.org/orphanet/'
- 'http://identifiers.org/hgnc/'
- 'http://identifiers.org/pubmed/'
- 'http://identifiers.org/refseq/'
- 'http://identifiers.org/clinicalsignificance/'
- 'http://biothings.io/terms/drugname/'
x-requestTemplate:
- valueType: 'http://identifiers.org/hgnc.symbol/'
template: cadd.gene.genename:{{input}} OR cgi.gene:{{input}} OR clinvar.gene.symbol:{{input}} OR dbnsfp.genename:{{input}} OR dbsnp.gene.symbol:{{input}} OR docm.genename:{{input}} OR emv.gene:{{input}} OR evs.gene.symbol:{{input}} OR snpeff.ann.genename:{{input}}
- valueType: 'http://identifiers.org/dbsnp/'
template: clinvar.rsid:{{input}} OR dbnsfp.rsid:{{input}} OR dbsnp.rsid:{{input}} OR evs.rsid:{{input}}
- valueType: 'http://identifiers.org/ensembl.gene/'
template: dbnsfp.ensembl.geneid:{{input}} OR cadd.gene.gene_id:{{input}}
- valueType: 'http://identifiers.org/ensembl.transcript'
template: dbnsfp.ensembl.transcriptid:{{input}} OR cadd.gene.feature_id:{{input}}
- valueType: 'http://identifiers.org/ensembl.protein/'
template: dbnsfp.ensembl.proteinid:{{input}}
- valueType: 'http://identifiers.org/ccds/'
template: cadd.gene.ccds_id:{{input}}
- valueType: 'http://identifiers.org/uniprot/'
template: dbnsfp.uniprot.acc:{{input}}
- valueType: 'http://identifiers.org/omim/'
template: clinvar.omim:{{input}}
- valueType: 'http://identifiers.org/efo/'
template: clinvar.rcv.conditions.identifiers.efo:{{input}}
- valueType: 'http://identifiers.org/orphanet/'
template: clinvar.rcv.conditions.identifiers.orphanet:{{input}}
- valueType: 'http://identifiers.org/hgnc/'
template: clinvar.gene.id:{{input}} OR dbsnp.gene.geneid:{{input}}
- valueType: 'http://identifiers.org/pubmed/'
template: civic.evidence_items.source.pubmed_id:{{input}} OR docm.pubmed_id:{{input}} OR gwassnps.pubmed:{{input}}
- valueType: 'http://identifiers.org/clinicalsignificance/'
template: clinvar.rcv.clinical_significance:{{input}}
- valueType: 'http://biothings.io/terms/drugname/'
template: civic.evidence_items.drugs.name:{{input}}
schema:
type: string
responses:
'200':
description: 'A query response object with "hits" property'
x-responseValueType:
- path: _id
valueType: 'http://identifiers.org/hgvs/'
x-JSONLDContext:
'https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/master/myvariant.info/jsonld_context/myvariant_query_1.1.json'
'/variant/{variantid}':
get:
summary: 'For a given variant id, return the matching variant object'
parameters:
- name: variantid
in: path
description: >-
Variant HGVS ID, dbSNP ID
required: true
x-valueType:
- 'http://identifiers.org/hgvs/'
- 'http://identifiers.org/dbsnp/'
x-requestTemplate:
- valueType: 'http://identifiers.org/hgvs/'
template: /variant/{{input}}
- valueType: 'http://identifiers.org/dbsnp/'
template: /variant/{{input}}
schema:
type: string
responses:
'200':
description: 'A variant object'
x-responseValueType:
- path: cadd.gene.genename
valueType: 'http://identifiers.org/hgnc.symbol/'
- path: clinvar.rsid
valueType: 'http://identifiers.org/dbsnp/'
- path: cadd.gene.gene_id
valueType: 'http://identifiers.org/ensembl.gene/'
- path: cadd.gene.feature_id
valueType: 'http://identifiers.org/ensembl.transcript/'
- path: cadd.gene.ccds_id
valueType: 'http://identifiers.org/ccds/'
- path: clinvar.uniprot
valueType: 'http://identifiers.org/uniprot/'
- path: clinvar.rcv.accession
valueType: 'http://identifiers.org/clinvar/'
- path: clinvar.rcv.conditions.identifiers.omim
valueType: 'http://identifiers.org/omim/'
- path: clinvar.rcv.conditions.identifiers.efo
valueType: 'http://identifiers.org/efo/'
- path: clinvar.rcv.conditions.identifiers.orphanet
valueType: 'http://identifiers.org/orphanet/'
- path: clinvar.gene.id
valueType: 'http://identifiers.org/hgnc/'
- path: dbnsfp.ensembl.proteinid
valueType: 'http://identifiers.org/ensembl.protein/'
- path: docm.pubmed_id
valueType: 'http://identifiers.org/pubmed/'
- path: evs.gene.accession
valueType: 'http://identifiers.org/refseq/'
- path: clinvar.rcv.clinical_significance
valueType: 'http://identifiers.org/clinicalsignificance/'
- path: civic.evidence_items
valueType: 'http://biothings.io/concepts/clinical_evidence/'
- path: civic.evidence_items.drugs.name
valueType: 'http://biothings.io/terms/drugname/'
x-JSONLDContext:
'https://raw.githubusercontent.com/NCATS-Tangerine/translator-api-registry/master/myvariant.info/jsonld_context/myvariant_variant_1.1.json'