-
Notifications
You must be signed in to change notification settings - Fork 0
/
gene_transformer_api.yml
191 lines (181 loc) · 4.81 KB
/
gene_transformer_api.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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
swagger: '2.0'
info:
title: MSigDB gene-set producer
version: 1.2.0
description: Gene-list producer based on MSigDB gene sets.
host: sharpener.ncats.io
basePath: /msigdb_producer
schemes:
- "https"
paths:
/transformer_info:
get:
tags:
- transformer
summary: Retrieve transformer info
description: Provides information about the transformer.
responses:
200:
description: successful operation
schema:
$ref: '#/definitions/transformer_info'
/transform:
post:
tags:
- transformer
parameters:
- in: body
name: query
description: Performs transformer query.
required: true
schema:
$ref: '#/definitions/transformer_query'
responses:
200:
description: successful operation
schema:
type: array
items:
$ref: '#/definitions/gene_info'
definitions:
transformer_query:
type: object
properties:
genes:
type: array
items:
$ref: '#/definitions/gene_info'
description: >-
List of genes that will be transformed. Required for expanders and filters;
should be omitted for producers.
controls:
type: array
items:
$ref: '#/definitions/property'
description: >-
Values that control the behavior of the transformer. Names of the controls must match the names
specified in the transformer's definition and values must match types (and possibly
allowed_values) specified in the transformer's definition.
required:
- controls
gene_info:
type: object
properties:
gene_id:
type: string
description: Id of the gene.
identifiers:
type: object
properties:
entrez:
type: string
description: Entrez gene id (CURIE).
example: 'NCBIGene:100'
hgnc:
type: string
description: HGNC gene id (CURIE).
example: 'HGNC:186'
mim:
type: string
description: OMIM gene id (CURIE).
example: 'MIM:608958'
ensembl:
type: array
items:
type: string
example: 'ENSEMBL:ENSG00000196839'
description: ENSEMBL gene id (CURIE).
mygene_info:
type: string
description: myGene.info primary id.
example: '100'
attributes:
type: array
items:
$ref: '#/definitions/attribute'
description: >-
Additional information about the gene and provenance about gene-list membership. Sharpener
will use myGene.info to add 'gene_symbol', 'synonyms', and 'gene_name' to every gene.
Multiple synonyms are separated by semicolons.
required:
- gene_id
attribute:
type: object
properties:
name:
type: string
value:
type: string
source:
type: string
required:
- name
- value
property:
type: object
properties:
name:
type: string
value:
type: string
required:
- name
- value
transformer_info:
type: object
properties:
name:
type: string
description: Name of the transformer.
function:
type: string
description: Function of the transformer, one of 'producer', 'expander', 'filter'.
enum: [producer, expander, filter]
description:
type: string
description: Description of the transformer.
parameters:
type: array
items:
$ref: '#/definitions/parameter'
description: Parameters used to control the transformer.
required_attributes:
type: array
items:
type: string
description: Gene attributes required by the transformer
description: Definition of the transformer.
required:
- name
- function
- description
- parameters
- required_attributes
parameter:
type: object
properties:
name:
type: string
description: Name of the parameter.
type:
type: string
description: Type of the parameter, one of 'Boolean', 'int', 'double', 'string'.
enum: [Boolean, int, double, string]
default:
type: string
description: Default value of the parameter.
allowed_values:
type: array
items:
type: string
description: Allowed values for the parameter.
suggested_values:
type: string
description: Suggested value range for the parameter.
lookup_url:
type: string
description: URL to search for suitable parameter values.
required:
- name
- type
- default