forked from ohsu-comp-bio/schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariantmethods.avdl
215 lines (183 loc) · 6.59 KB
/
variantmethods.avdl
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
@namespace("org.ga4gh.methods")
protocol VariantMethods {
import idl "methods.avdl";
import idl "variants.avdl";
/****************** /variantsets/search *********************/
/** This request maps to the body of `POST /variantsets/search` as JSON. */
record SearchVariantSetsRequest {
/**
The `Dataset` to search.
*/
string datasetId;
/**
Specifies the maximum number of results to return in a single page.
If unspecified, a system default will be used.
*/
union { null, int } pageSize = null;
/**
The continuation token, which is used to page through large result sets.
To get the next page of results, set this parameter to the value of
`nextPageToken` from the previous response.
*/
union { null, string } pageToken = null;
}
/** This is the response from `POST /variantsets/search` expressed as JSON. */
record SearchVariantSetsResponse {
/** The list of matching variant sets. */
array<org.ga4gh.models.VariantSet> variantSets = [];
/**
The continuation token, which is used to page through large result sets.
Provide this value in a subsequent request to return the next page of
results. This field will be empty if there aren't any additional results.
*/
union { null, string } nextPageToken = null;
}
/**
Gets a list of `VariantSet` matching the search criteria.
`POST /variantsets/search` must accept a JSON version of
`SearchVariantSetsRequest` as the post body and will return a JSON version
of `SearchVariantSetsResponse`.
*/
SearchVariantSetsResponse searchVariantSets(
/** This request maps to the body of `POST /variantsets/search` as JSON. */
SearchVariantSetsRequest request) throws GAException;
/**************** /variantsets/{id} *******************/
/**
Gets a `VariantSet` by ID.
`GET /variantsets/{id}` will return a JSON version of `VariantSet`.
*/
org.ga4gh.models.VariantSet getVariantSet(
/**
The ID of the `VariantSet`.
*/
string id) throws GAException;
/****************** /variants/search *********************/
/** This request maps to the body of `POST /variants/search` as JSON. */
record SearchVariantsRequest {
/**
The `VariantSet` to search.
*/
string variantSetId;
/**
Only return variant calls which belong to call sets with these IDs.
If an empty array, returns variants without any call objects.
If null, returns all variant calls.
*/
union { null, array<string> } callSetIds = null;
/** Required. Only return variants on this reference. */
string referenceName;
/**
Required. The beginning of the window (0-based, inclusive) for
which overlapping variants should be returned.
Genomic positions are non-negative integers less than reference length.
Requests spanning the join of circular genomes are represented as
two requests one on each side of the join (position 0).
*/
long start;
/**
Required. The end of the window (0-based, exclusive) for which overlapping
variants should be returned.
*/
long end;
/**
Specifies the maximum number of results to return in a single page.
If unspecified, a system default will be used.
*/
union { null, int } pageSize = null;
/**
The continuation token, which is used to page through large result sets.
To get the next page of results, set this parameter to the value of
`nextPageToken` from the previous response.
*/
union { null, string } pageToken = null;
}
/** This is the response from `POST /variants/search` expressed as JSON. */
record SearchVariantsResponse {
/**
The list of matching variants.
If the `callSetId` field on the returned calls is not present,
the ordering of the call sets from a `SearchCallSetsRequest`
over the parent `VariantSet` is guaranteed to match the ordering
of the calls on each `Variant`. The number of results will also be
the same.
*/
array<org.ga4gh.models.Variant> variants = [];
/**
The continuation token, which is used to page through large result sets.
Provide this value in a subsequent request to return the next page of
results. This field will be empty if there aren't any additional results.
*/
union { null, string } nextPageToken = null;
}
/**
Gets a list of `Variant` matching the search criteria.
`POST /variants/search` must accept a JSON version of `SearchVariantsRequest`
as the post body and will return a JSON version of `SearchVariantsResponse`.
*/
SearchVariantsResponse searchVariants(
/** This request maps to the body of `POST /variants/search` as JSON. */
SearchVariantsRequest request) throws GAException;
/**************** /variants/{id} *******************/
/**
Gets a `Variant` by ID.
`GET /variants/{id}` will return a JSON version of `Variant`.
*/
org.ga4gh.models.Variant getVariant(
/**
The ID of the `Variant`.
*/
string id) throws GAException;
/****************** /callsets/search *********************/
/** This request maps to the body of `POST /callsets/search` as JSON. */
record SearchCallSetsRequest {
/**
The VariantSet to search.
*/
string variantSetId;
/**
Only return call sets with this name (case-sensitive, exact match).
*/
union { null, string } name = null;
// TODO: Add more ways to search by other metadata
/**
Specifies the maximum number of results to return in a single page.
If unspecified, a system default will be used.
*/
union { null, int } pageSize = null;
/**
The continuation token, which is used to page through large result sets.
To get the next page of results, set this parameter to the value of
`nextPageToken` from the previous response.
*/
union { null, string } pageToken = null;
}
/** This is the response from `POST /callsets/search` expressed as JSON. */
record SearchCallSetsResponse {
/** The list of matching call sets. */
array<org.ga4gh.models.CallSet> callSets = [];
/**
The continuation token, which is used to page through large result sets.
Provide this value in a subsequent request to return the next page of
results. This field will be empty if there aren't any additional results.
*/
union { null, string } nextPageToken = null;
}
/**
Gets a list of `CallSet` matching the search criteria.
`POST /callsets/search` must accept a JSON version of `SearchCallSetsRequest`
as the post body and will return a JSON version of `SearchCallSetsResponse`.
*/
SearchCallSetsResponse searchCallSets(
/** This request maps to the body of `POST /callsets/search` as JSON. */
SearchCallSetsRequest request) throws GAException;
/**************** /callsets/{id} *******************/
/**
Gets a `CallSet` by ID.
`GET /callsets/{id}` will return a JSON version of `CallSet`.
*/
org.ga4gh.models.CallSet getCallSet(
/**
The ID of the `CallSet`.
*/
string id) throws GAException;
}