-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanalysis-api.yaml
More file actions
224 lines (212 loc) · 5.95 KB
/
analysis-api.yaml
File metadata and controls
224 lines (212 loc) · 5.95 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
openapi: '3.0.0'
info:
title: iReceptorPlus Analysis API
version: 0.2.0
contact:
name: iReceptor Plus
url: 'https://www.ireceptor-plus.com'
email: info@ireceptor-plus.com
description: >
Analysis API for the iReceptor Plus platform.
servers:
- url: https://vdjserver.org/irplus/v1/analysis
description: Production server
variables:
basePath:
default: /irplus/v1/analysis
- url: https://vdj-staging.tacc.utexas.edu/irplus/v1/analysis
description: Staging server
variables:
basePath:
default: /irplus/v1/analysis
components:
schemas:
# Info object
info_object:
type: object
description: Provides information about the API response
properties:
title:
type: string
version:
type: string
description:
type: string
contact:
type: object
properties:
name:
type: string
url:
type: string
email:
type: string
license:
type: object
properties:
name:
type: string
url:
type: string
# Service info object. This is the object returned by the /info request,
# and provides information about the API service and its attributes and capabilities
service_info_object:
description: Provides information about the API service and its attributes and capabilities.
allOf:
- $ref: '#/components/schemas/info_object'
- type: object
properties:
api:
$ref: '#/components/schemas/info_object'
rearrangement_dataset_object:
description: Input rearrangement dataset for an analysis.
type: object
required:
- rearrangement_file
- metadata_file
properties:
rearrangement_file:
type: string
description: Input rearrangement AIRR TSV file
example: agave:///irplus/data/TCR/vdjserver1.airr.tsv.gz
nullable: false
metadata_file:
type: string
description: AIRR repertoire metadata file associated with the rearrangement AIRR TSV file
example: agave:///irplus/data/TCR/vdjserver1-metadata.airr.json
nullable: false
analysis_id_response:
type: object
properties:
analysis_id:
type: string
description: Unique identifier for the analysis job
message:
type: string
description: Detail about the error
# error response
error_response:
type: object
properties:
message:
type: string
description: Detail about the error
securitySchemes:
user_authorization:
type: http
scheme: bearer
paths:
/:
get:
description: Service heartbeat.
operationId: get_service_status
responses:
'200':
description: Service is up.
content:
application/json:
schema:
type: object
properties:
result:
type: string
/info:
get:
description: Service information.
operationId: get_service_info
responses:
'200':
description: Success.
content:
application/json:
schema:
$ref: '#/components/schemas/service_info_object'
'500':
description: Server error
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
/status/{analysis_id}:
get:
description: Return status of analysis for given identifier
operationId: get_analysis_status
security:
- user_authorization: []
parameters:
- name: analysis_id
in: path
description: analysis identifer
required: true
schema:
type: string
responses:
'200':
description: Analysis status
content:
application/json:
schema:
type: object
properties:
result:
type: string
/rearrangement/define_clones:
post:
description: Create a define clones analysis for a rearrangement query.
operationId: define_clones
security:
- user_authorization: []
tags:
- rearrangements
requestBody:
content:
application/json:
schema:
properties:
token:
type: string
password:
type: string
required:
- token
- password
responses:
'200':
description: A successful call returns an analysis id.
content:
application/json:
schema:
$ref: '#/components/schemas/analysis_id_response'
default:
description: Request error.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'
/rearrangement/gene_usage:
post:
description: >
Perform a gene usage analysis for a rearrangement data file.
operationId: rearrangement_gene_usage
security:
- user_authorization: []
tags:
- rearrangements
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/rearrangement_dataset_object'
responses:
'200':
description: A successful call returns an analysis id.
content:
application/json:
schema:
$ref: '#/components/schemas/analysis_id_response'
default:
description: Request error.
content:
application/json:
schema:
$ref: '#/components/schemas/error_response'