forked from ga4gh/ga4gh-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreferencemethods.avdl
229 lines (199 loc) · 6.66 KB
/
referencemethods.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
216
217
218
219
220
221
222
223
224
225
226
227
228
229
@namespace("org.ga4gh.methods")
protocol ReferenceMethods {
import idl "common.avdl";
import idl "methods.avdl";
import idl "references.avdl";
/**************** /referencesets/search *******************/
/**
This request maps to the body of `POST /referencesets/search`
as JSON.
*/
record SearchReferenceSetsRequest {
/**
If not null, return the reference sets for which the
`md5checksum` matches this string (case-sensitive, exact match).
See `ReferenceSet::md5checksum` for details.
*/
union { null, string } md5checksum = null;
/**
If not null, return the reference sets for which the `accession`
matches this string (case-sensitive, exact match).
*/
union { null, string } accession = null;
/**
If not null, return the reference sets for which the `assemblyId`
matches this string (case-sensitive, exact match).
*/
union { null, string } assemblyId = null;
/**
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 /referencesets/search`
expressed as JSON.
*/
record SearchReferenceSetsResponse {
/** The list of matching reference sets. */
array<org.ga4gh.models.ReferenceSet> referenceSets = [];
/**
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 `ReferenceSet` matching the search criteria.
`POST /referencesets/search` must accept a JSON version of
`SearchReferenceSetsRequest` as the post body and will return a JSON
version of `SearchReferenceSetsResponse`.
*/
SearchReferenceSetsResponse searchReferenceSets(
/**
This request maps to the body of `POST /referencesets/search`
as JSON.
*/
SearchReferenceSetsRequest request) throws GAException;
/**************** /referencesets/{id} *******************/
/**
Gets a `ReferenceSet` by ID.
`GET /referencesets/{id}` will return a JSON version of `ReferenceSet`.
*/
org.ga4gh.models.ReferenceSet getReferenceSet(
/**
The ID of the `ReferenceSet`.
*/
string id) throws GAException;
/**************** /references/search *******************/
/**
This request maps to the body of `POST /references/search`
as JSON.
*/
record SearchReferencesRequest {
/**
The `ReferenceSet` to search.
*/
string referenceSetId;
/**
If not null, return the references for which the
`md5checksum` matches this string (case-sensitive, exact match).
See `ReferenceSet::md5checksum` for details.
*/
union { null, string } md5checksum = null;
/**
If not null, return the references for which the `accession`
matches this string (case-sensitive, exact match).
*/
union { null, string } accession = null;
/**
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 /references/search` expressed as JSON.
*/
record SearchReferencesResponse {
/** The list of matching references. */
array<org.ga4gh.models.Reference> references = [];
/**
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 `Reference` matching the search criteria.
`POST /references/search` must accept a JSON version of
`SearchReferencesRequest` as the post body and will return a JSON
version of `SearchReferencesResponse`.
*/
SearchReferencesResponse searchReferences(
/**
This request maps to the body of `POST /references/search`
as JSON.
*/
SearchReferencesRequest request) throws GAException;
/**************** /references/{id} *******************/
/**
Gets a `Reference` by ID.
`GET /references/{id}` will return a JSON version of `Reference`.
*/
org.ga4gh.models.Reference getReference(
/**
The ID of the `Reference`.
*/
string id) throws GAException;
/**************** /references/{id}/bases *******************/
/**
The query parameters for a request to `GET /references/{id}/bases`, for
example:
`GET /references/{id}/bases?start=100&end=200`
*/
record ListReferenceBasesRequest {
/**
The start position (0-based) of this query. Defaults to 0.
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 = 0;
/**
The end position (0-based, exclusive) of this query. Defaults
to the length of this `Reference`.
*/
union { null, long } end = 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;
}
/** The response from `GET /references/{id}/bases` expressed as JSON. */
record ListReferenceBasesResponse {
/**
The offset position (0-based) of the given sequence from the start of this
`Reference`. This value will differ for each page in a paginated request.
*/
long offset = 0;
/**
A substring of the bases that make up this reference. Bases are represented
as IUPAC-IUB codes; this string matches the regexp `[ACGTMRWSYKVHDBN]*`.
*/
string sequence;
/**
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;
}
/**
Lists `Reference` bases by ID and optional range.
`GET /references/{id}/bases` will return a JSON version of
`ListReferenceBasesResponse`.
*/
ListReferenceBasesResponse getReferenceBases(
/** The ID of the `Reference`. */
string id,
/** Additional request parameters to restrict the query. */
ListReferenceBasesRequest request) throws GAException;
}