OLD | NEW |
1 library googleapis_beta.genomics.v1beta; | 1 library googleapis_beta.genomics.v1beta2; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
(...skipping 11 matching lines...) Expand all Loading... |
23 | 23 |
24 /** View and manage Genomics data */ | 24 /** View and manage Genomics data */ |
25 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; | 25 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; |
26 | 26 |
27 /** View Genomics data */ | 27 /** View Genomics data */ |
28 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; | 28 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; |
29 | 29 |
30 | 30 |
31 final common_internal.ApiRequester _requester; | 31 final common_internal.ApiRequester _requester; |
32 | 32 |
33 BeaconsResourceApi get beacons => new BeaconsResourceApi(_requester); | |
34 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); | 33 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); |
35 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); | 34 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); |
36 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); | 35 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); |
37 JobsResourceApi get jobs => new JobsResourceApi(_requester); | 36 JobsResourceApi get jobs => new JobsResourceApi(_requester); |
| 37 ReadgroupsetsResourceApi get readgroupsets => new ReadgroupsetsResourceApi(_re
quester); |
38 ReadsResourceApi get reads => new ReadsResourceApi(_requester); | 38 ReadsResourceApi get reads => new ReadsResourceApi(_requester); |
39 ReadsetsResourceApi get readsets => new ReadsetsResourceApi(_requester); | 39 ReferencesResourceApi get references => new ReferencesResourceApi(_requester); |
| 40 ReferencesetsResourceApi get referencesets => new ReferencesetsResourceApi(_re
quester); |
40 VariantsResourceApi get variants => new VariantsResourceApi(_requester); | 41 VariantsResourceApi get variants => new VariantsResourceApi(_requester); |
41 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); | 42 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); |
42 | 43 |
43 GenomicsApi(http.Client client) : | 44 GenomicsApi(http.Client client) : |
44 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "genomics/v1beta/"); | 45 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "genomics/v1beta2/"); |
45 } | 46 } |
46 | 47 |
47 | 48 |
48 /** Not documented yet. */ | |
49 class BeaconsResourceApi { | |
50 final common_internal.ApiRequester _requester; | |
51 | |
52 BeaconsResourceApi(common_internal.ApiRequester client) : | |
53 _requester = client; | |
54 | |
55 /** | |
56 * This is an experimental API that provides a Global Alliance for Genomics | |
57 * and Health Beacon. It may change at any time. | |
58 * | |
59 * Request parameters: | |
60 * | |
61 * [variantSetId] - The ID of the variant set to query over. It must be | |
62 * public. Private variant sets will return an unauthorized exception. | |
63 * | |
64 * [allele] - Required. The allele to look for ('A', 'C', 'G' or 'T'). | |
65 * | |
66 * [position] - Required. The 0-based position to query. | |
67 * | |
68 * [referenceName] - Required. The reference to query over. | |
69 * | |
70 * Completes with a [Beacon]. | |
71 * | |
72 * Completes with a [common.ApiRequestError] if the API endpoint returned an | |
73 * error. | |
74 * | |
75 * If the used [http.Client] completes with an error when making a REST call, | |
76 * this method will complete with the same error. | |
77 */ | |
78 async.Future<Beacon> get(core.String variantSetId, {core.String allele, core.S
tring position, core.String referenceName}) { | |
79 var _url = null; | |
80 var _queryParams = new core.Map(); | |
81 var _uploadMedia = null; | |
82 var _uploadOptions = null; | |
83 var _downloadOptions = common.DownloadOptions.Metadata; | |
84 var _body = null; | |
85 | |
86 if (variantSetId == null) { | |
87 throw new core.ArgumentError("Parameter variantSetId is required."); | |
88 } | |
89 if (allele != null) { | |
90 _queryParams["allele"] = [allele]; | |
91 } | |
92 if (position != null) { | |
93 _queryParams["position"] = [position]; | |
94 } | |
95 if (referenceName != null) { | |
96 _queryParams["referenceName"] = [referenceName]; | |
97 } | |
98 | |
99 | |
100 _url = 'beacons/' + common_internal.Escaper.ecapeVariable('$variantSetId'); | |
101 | |
102 var _response = _requester.request(_url, | |
103 "GET", | |
104 body: _body, | |
105 queryParams: _queryParams, | |
106 uploadOptions: _uploadOptions, | |
107 uploadMedia: _uploadMedia, | |
108 downloadOptions: _downloadOptions); | |
109 return _response.then((data) => new Beacon.fromJson(data)); | |
110 } | |
111 | |
112 } | |
113 | |
114 | |
115 /** Not documented yet. */ | 49 /** Not documented yet. */ |
116 class CallsetsResourceApi { | 50 class CallsetsResourceApi { |
117 final common_internal.ApiRequester _requester; | 51 final common_internal.ApiRequester _requester; |
118 | 52 |
119 CallsetsResourceApi(common_internal.ApiRequester client) : | 53 CallsetsResourceApi(common_internal.ApiRequester client) : |
120 _requester = client; | 54 _requester = client; |
121 | 55 |
122 /** | 56 /** |
123 * Creates a new call set. | 57 * Creates a new call set. |
124 * | 58 * |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 uploadMedia: _uploadMedia, | 91 uploadMedia: _uploadMedia, |
158 downloadOptions: _downloadOptions); | 92 downloadOptions: _downloadOptions); |
159 return _response.then((data) => new CallSet.fromJson(data)); | 93 return _response.then((data) => new CallSet.fromJson(data)); |
160 } | 94 } |
161 | 95 |
162 /** | 96 /** |
163 * Deletes a call set. | 97 * Deletes a call set. |
164 * | 98 * |
165 * Request parameters: | 99 * Request parameters: |
166 * | 100 * |
167 * [callSetId] - The ID of the callset to be deleted. | 101 * [callSetId] - The ID of the call set to be deleted. |
168 * | 102 * |
169 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 103 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
170 * error. | 104 * error. |
171 * | 105 * |
172 * If the used [http.Client] completes with an error when making a REST call, | 106 * If the used [http.Client] completes with an error when making a REST call, |
173 * this method will complete with the same error. | 107 * this method will complete with the same error. |
174 */ | 108 */ |
175 async.Future delete(core.String callSetId) { | 109 async.Future delete(core.String callSetId) { |
176 var _url = null; | 110 var _url = null; |
177 var _queryParams = new core.Map(); | 111 var _queryParams = new core.Map(); |
(...skipping 18 matching lines...) Expand all Loading... |
196 uploadMedia: _uploadMedia, | 130 uploadMedia: _uploadMedia, |
197 downloadOptions: _downloadOptions); | 131 downloadOptions: _downloadOptions); |
198 return _response.then((data) => null); | 132 return _response.then((data) => null); |
199 } | 133 } |
200 | 134 |
201 /** | 135 /** |
202 * Gets a call set by ID. | 136 * Gets a call set by ID. |
203 * | 137 * |
204 * Request parameters: | 138 * Request parameters: |
205 * | 139 * |
206 * [callSetId] - The ID of the callset. | 140 * [callSetId] - The ID of the call set. |
207 * | 141 * |
208 * Completes with a [CallSet]. | 142 * Completes with a [CallSet]. |
209 * | 143 * |
210 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 144 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
211 * error. | 145 * error. |
212 * | 146 * |
213 * If the used [http.Client] completes with an error when making a REST call, | 147 * If the used [http.Client] completes with an error when making a REST call, |
214 * this method will complete with the same error. | 148 * this method will complete with the same error. |
215 */ | 149 */ |
216 async.Future<CallSet> get(core.String callSetId) { | 150 async.Future<CallSet> get(core.String callSetId) { |
(...skipping 21 matching lines...) Expand all Loading... |
238 return _response.then((data) => new CallSet.fromJson(data)); | 172 return _response.then((data) => new CallSet.fromJson(data)); |
239 } | 173 } |
240 | 174 |
241 /** | 175 /** |
242 * Updates a call set. This method supports patch semantics. | 176 * Updates a call set. This method supports patch semantics. |
243 * | 177 * |
244 * [request] - The metadata request object. | 178 * [request] - The metadata request object. |
245 * | 179 * |
246 * Request parameters: | 180 * Request parameters: |
247 * | 181 * |
248 * [callSetId] - The ID of the callset to be updated. | 182 * [callSetId] - The ID of the call set to be updated. |
249 * | 183 * |
250 * Completes with a [CallSet]. | 184 * Completes with a [CallSet]. |
251 * | 185 * |
252 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 186 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
253 * error. | 187 * error. |
254 * | 188 * |
255 * If the used [http.Client] completes with an error when making a REST call, | 189 * If the used [http.Client] completes with an error when making a REST call, |
256 * this method will complete with the same error. | 190 * this method will complete with the same error. |
257 */ | 191 */ |
258 async.Future<CallSet> patch(CallSet request, core.String callSetId) { | 192 async.Future<CallSet> patch(CallSet request, core.String callSetId) { |
(...skipping 20 matching lines...) Expand all Loading... |
279 queryParams: _queryParams, | 213 queryParams: _queryParams, |
280 uploadOptions: _uploadOptions, | 214 uploadOptions: _uploadOptions, |
281 uploadMedia: _uploadMedia, | 215 uploadMedia: _uploadMedia, |
282 downloadOptions: _downloadOptions); | 216 downloadOptions: _downloadOptions); |
283 return _response.then((data) => new CallSet.fromJson(data)); | 217 return _response.then((data) => new CallSet.fromJson(data)); |
284 } | 218 } |
285 | 219 |
286 /** | 220 /** |
287 * Gets a list of call sets matching the criteria. | 221 * Gets a list of call sets matching the criteria. |
288 * | 222 * |
| 223 * Implements GlobalAllianceApi.searchCallSets. |
| 224 * |
289 * [request] - The metadata request object. | 225 * [request] - The metadata request object. |
290 * | 226 * |
291 * Request parameters: | 227 * Request parameters: |
292 * | 228 * |
293 * Completes with a [SearchCallSetsResponse]. | 229 * Completes with a [SearchCallSetsResponse]. |
294 * | 230 * |
295 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 231 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
296 * error. | 232 * error. |
297 * | 233 * |
298 * If the used [http.Client] completes with an error when making a REST call, | 234 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 24 matching lines...) Expand all Loading... |
323 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); | 259 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); |
324 } | 260 } |
325 | 261 |
326 /** | 262 /** |
327 * Updates a call set. | 263 * Updates a call set. |
328 * | 264 * |
329 * [request] - The metadata request object. | 265 * [request] - The metadata request object. |
330 * | 266 * |
331 * Request parameters: | 267 * Request parameters: |
332 * | 268 * |
333 * [callSetId] - The ID of the callset to be updated. | 269 * [callSetId] - The ID of the call set to be updated. |
334 * | 270 * |
335 * Completes with a [CallSet]. | 271 * Completes with a [CallSet]. |
336 * | 272 * |
337 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 273 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
338 * error. | 274 * error. |
339 * | 275 * |
340 * If the used [http.Client] completes with an error when making a REST call, | 276 * If the used [http.Client] completes with an error when making a REST call, |
341 * this method will complete with the same error. | 277 * this method will complete with the same error. |
342 */ | 278 */ |
343 async.Future<CallSet> update(CallSet request, core.String callSetId) { | 279 async.Future<CallSet> update(CallSet request, core.String callSetId) { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 uploadMedia: _uploadMedia, | 431 uploadMedia: _uploadMedia, |
496 downloadOptions: _downloadOptions); | 432 downloadOptions: _downloadOptions); |
497 return _response.then((data) => new Dataset.fromJson(data)); | 433 return _response.then((data) => new Dataset.fromJson(data)); |
498 } | 434 } |
499 | 435 |
500 /** | 436 /** |
501 * Lists all datasets. | 437 * Lists all datasets. |
502 * | 438 * |
503 * Request parameters: | 439 * Request parameters: |
504 * | 440 * |
505 * [maxResults] - The maximum number of results returned by this request. | 441 * [pageSize] - The maximum number of results returned by this request. |
506 * | 442 * |
507 * [pageToken] - The continuation token, which is used to page through large | 443 * [pageToken] - The continuation token, which is used to page through large |
508 * result sets. To get the next page of results, set this parameter to the | 444 * result sets. To get the next page of results, set this parameter to the |
509 * value of nextPageToken from the previous response. | 445 * value of nextPageToken from the previous response. |
510 * | 446 * |
511 * [projectId] - Only return datasets which belong to this Google Developers | 447 * [projectNumber] - Only return datasets which belong to this Google |
512 * Console project. Only accepts project numbers. Returns all public projects | 448 * Developers Console project. Only accepts project numbers. Returns all |
513 * if no project number is specified. | 449 * public projects if no project number is specified. |
514 * | 450 * |
515 * Completes with a [ListDatasetsResponse]. | 451 * Completes with a [ListDatasetsResponse]. |
516 * | 452 * |
517 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 453 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
518 * error. | 454 * error. |
519 * | 455 * |
520 * If the used [http.Client] completes with an error when making a REST call, | 456 * If the used [http.Client] completes with an error when making a REST call, |
521 * this method will complete with the same error. | 457 * this method will complete with the same error. |
522 */ | 458 */ |
523 async.Future<ListDatasetsResponse> list({core.String maxResults, core.String p
ageToken, core.String projectId}) { | 459 async.Future<ListDatasetsResponse> list({core.int pageSize, core.String pageTo
ken, core.String projectNumber}) { |
524 var _url = null; | 460 var _url = null; |
525 var _queryParams = new core.Map(); | 461 var _queryParams = new core.Map(); |
526 var _uploadMedia = null; | 462 var _uploadMedia = null; |
527 var _uploadOptions = null; | 463 var _uploadOptions = null; |
528 var _downloadOptions = common.DownloadOptions.Metadata; | 464 var _downloadOptions = common.DownloadOptions.Metadata; |
529 var _body = null; | 465 var _body = null; |
530 | 466 |
531 if (maxResults != null) { | 467 if (pageSize != null) { |
532 _queryParams["maxResults"] = [maxResults]; | 468 _queryParams["pageSize"] = ["${pageSize}"]; |
533 } | 469 } |
534 if (pageToken != null) { | 470 if (pageToken != null) { |
535 _queryParams["pageToken"] = [pageToken]; | 471 _queryParams["pageToken"] = [pageToken]; |
536 } | 472 } |
537 if (projectId != null) { | 473 if (projectNumber != null) { |
538 _queryParams["projectId"] = [projectId]; | 474 _queryParams["projectNumber"] = [projectNumber]; |
539 } | 475 } |
540 | 476 |
541 | 477 |
542 _url = 'datasets'; | 478 _url = 'datasets'; |
543 | 479 |
544 var _response = _requester.request(_url, | 480 var _response = _requester.request(_url, |
545 "GET", | 481 "GET", |
546 body: _body, | 482 body: _body, |
547 queryParams: _queryParams, | 483 queryParams: _queryParams, |
548 uploadOptions: _uploadOptions, | 484 uploadOptions: _uploadOptions, |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
871 uploadOptions: _uploadOptions, | 807 uploadOptions: _uploadOptions, |
872 uploadMedia: _uploadMedia, | 808 uploadMedia: _uploadMedia, |
873 downloadOptions: _downloadOptions); | 809 downloadOptions: _downloadOptions); |
874 return _response.then((data) => new SearchJobsResponse.fromJson(data)); | 810 return _response.then((data) => new SearchJobsResponse.fromJson(data)); |
875 } | 811 } |
876 | 812 |
877 } | 813 } |
878 | 814 |
879 | 815 |
880 /** Not documented yet. */ | 816 /** Not documented yet. */ |
881 class ReadsResourceApi { | 817 class ReadgroupsetsResourceApi { |
882 final common_internal.ApiRequester _requester; | 818 final common_internal.ApiRequester _requester; |
883 | 819 |
884 ReadsResourceApi(common_internal.ApiRequester client) : | 820 ReadgroupsetsCoveragebucketsResourceApi get coveragebuckets => new Readgroupse
tsCoveragebucketsResourceApi(_requester); |
| 821 |
| 822 ReadgroupsetsResourceApi(common_internal.ApiRequester client) : |
885 _requester = client; | 823 _requester = client; |
886 | 824 |
887 /** | 825 /** |
888 * Gets a list of reads for one or more readsets. Reads search operates over a | 826 * Aligns read data from existing read group sets or files from Google Cloud |
889 * genomic coordinate space of reference sequence & position defined over the | 827 * Storage. See the alignment and variant calling documentation for more |
890 * reference sequences to which the requested readsets are aligned. If a | 828 * details. |
891 * target positional range is specified, search returns all reads whose | |
892 * alignment to the reference genome overlap the range. A query which | |
893 * specifies only readset IDs yields all reads in those readsets, including | |
894 * unmapped reads. All reads returned (including reads on subsequent pages) | |
895 * are ordered by genomic coordinate (reference sequence & position). Reads | |
896 * with equivalent genomic coordinates are returned in a deterministic order. | |
897 * | 829 * |
898 * [request] - The metadata request object. | 830 * [request] - The metadata request object. |
899 * | 831 * |
900 * Request parameters: | 832 * Request parameters: |
901 * | 833 * |
902 * Completes with a [SearchReadsResponse]. | 834 * Completes with a [AlignReadGroupSetsResponse]. |
903 * | 835 * |
904 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 836 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
905 * error. | 837 * error. |
906 * | 838 * |
907 * If the used [http.Client] completes with an error when making a REST call, | 839 * If the used [http.Client] completes with an error when making a REST call, |
908 * this method will complete with the same error. | 840 * this method will complete with the same error. |
909 */ | 841 */ |
910 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { | 842 async.Future<AlignReadGroupSetsResponse> align(AlignReadGroupSetsRequest reque
st) { |
911 var _url = null; | 843 var _url = null; |
912 var _queryParams = new core.Map(); | 844 var _queryParams = new core.Map(); |
913 var _uploadMedia = null; | 845 var _uploadMedia = null; |
914 var _uploadOptions = null; | 846 var _uploadOptions = null; |
915 var _downloadOptions = common.DownloadOptions.Metadata; | 847 var _downloadOptions = common.DownloadOptions.Metadata; |
916 var _body = null; | 848 var _body = null; |
917 | 849 |
918 if (request != null) { | 850 if (request != null) { |
919 _body = convert.JSON.encode((request).toJson()); | 851 _body = convert.JSON.encode((request).toJson()); |
920 } | 852 } |
921 | 853 |
922 | 854 |
923 _url = 'reads/search'; | 855 _url = 'readgroupsets/align'; |
924 | 856 |
925 var _response = _requester.request(_url, | 857 var _response = _requester.request(_url, |
926 "POST", | 858 "POST", |
927 body: _body, | 859 body: _body, |
928 queryParams: _queryParams, | 860 queryParams: _queryParams, |
929 uploadOptions: _uploadOptions, | 861 uploadOptions: _uploadOptions, |
930 uploadMedia: _uploadMedia, | 862 uploadMedia: _uploadMedia, |
931 downloadOptions: _downloadOptions); | 863 downloadOptions: _downloadOptions); |
932 return _response.then((data) => new SearchReadsResponse.fromJson(data)); | 864 return _response.then((data) => new AlignReadGroupSetsResponse.fromJson(data
)); |
933 } | 865 } |
934 | 866 |
935 } | |
936 | |
937 | |
938 /** Not documented yet. */ | |
939 class ReadsetsResourceApi { | |
940 final common_internal.ApiRequester _requester; | |
941 | |
942 ReadsetsCoveragebucketsResourceApi get coveragebuckets => new ReadsetsCoverage
bucketsResourceApi(_requester); | |
943 | |
944 ReadsetsResourceApi(common_internal.ApiRequester client) : | |
945 _requester = client; | |
946 | |
947 /** | 867 /** |
948 * Deletes a readset. | 868 * Calls variants on read data from existing read group sets or files from |
| 869 * Google Cloud Storage. See the alignment and variant calling documentation |
| 870 * for more details. |
| 871 * |
| 872 * [request] - The metadata request object. |
949 * | 873 * |
950 * Request parameters: | 874 * Request parameters: |
951 * | 875 * |
952 * [readsetId] - The ID of the readset to be deleted. The caller must have | 876 * Completes with a [CallReadGroupSetsResponse]. |
953 * WRITE permissions to the dataset associated with this readset. | |
954 * | 877 * |
955 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 878 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
956 * error. | 879 * error. |
| 880 * |
| 881 * If the used [http.Client] completes with an error when making a REST call, |
| 882 * this method will complete with the same error. |
| 883 */ |
| 884 async.Future<CallReadGroupSetsResponse> call(CallReadGroupSetsRequest request)
{ |
| 885 var _url = null; |
| 886 var _queryParams = new core.Map(); |
| 887 var _uploadMedia = null; |
| 888 var _uploadOptions = null; |
| 889 var _downloadOptions = common.DownloadOptions.Metadata; |
| 890 var _body = null; |
| 891 |
| 892 if (request != null) { |
| 893 _body = convert.JSON.encode((request).toJson()); |
| 894 } |
| 895 |
| 896 |
| 897 _url = 'readgroupsets/call'; |
| 898 |
| 899 var _response = _requester.request(_url, |
| 900 "POST", |
| 901 body: _body, |
| 902 queryParams: _queryParams, |
| 903 uploadOptions: _uploadOptions, |
| 904 uploadMedia: _uploadMedia, |
| 905 downloadOptions: _downloadOptions); |
| 906 return _response.then((data) => new CallReadGroupSetsResponse.fromJson(data)
); |
| 907 } |
| 908 |
| 909 /** |
| 910 * Deletes a read group set. |
| 911 * |
| 912 * Request parameters: |
| 913 * |
| 914 * [readGroupSetId] - The ID of the read group set to be deleted. The caller |
| 915 * must have WRITE permissions to the dataset associated with this read group |
| 916 * set. |
| 917 * |
| 918 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 919 * error. |
957 * | 920 * |
958 * If the used [http.Client] completes with an error when making a REST call, | 921 * If the used [http.Client] completes with an error when making a REST call, |
959 * this method will complete with the same error. | 922 * this method will complete with the same error. |
960 */ | 923 */ |
961 async.Future delete(core.String readsetId) { | 924 async.Future delete(core.String readGroupSetId) { |
962 var _url = null; | 925 var _url = null; |
963 var _queryParams = new core.Map(); | 926 var _queryParams = new core.Map(); |
964 var _uploadMedia = null; | 927 var _uploadMedia = null; |
965 var _uploadOptions = null; | 928 var _uploadOptions = null; |
966 var _downloadOptions = common.DownloadOptions.Metadata; | 929 var _downloadOptions = common.DownloadOptions.Metadata; |
967 var _body = null; | 930 var _body = null; |
968 | 931 |
969 if (readsetId == null) { | 932 if (readGroupSetId == null) { |
970 throw new core.ArgumentError("Parameter readsetId is required."); | 933 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
971 } | 934 } |
972 | 935 |
973 _downloadOptions = null; | 936 _downloadOptions = null; |
974 | 937 |
975 _url = 'readsets/' + common_internal.Escaper.ecapeVariable('$readsetId'); | 938 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); |
976 | 939 |
977 var _response = _requester.request(_url, | 940 var _response = _requester.request(_url, |
978 "DELETE", | 941 "DELETE", |
979 body: _body, | 942 body: _body, |
980 queryParams: _queryParams, | 943 queryParams: _queryParams, |
981 uploadOptions: _uploadOptions, | 944 uploadOptions: _uploadOptions, |
982 uploadMedia: _uploadMedia, | 945 uploadMedia: _uploadMedia, |
983 downloadOptions: _downloadOptions); | 946 downloadOptions: _downloadOptions); |
984 return _response.then((data) => null); | 947 return _response.then((data) => null); |
985 } | 948 } |
986 | 949 |
987 /** | 950 /** |
988 * Exports readsets to a BAM file in Google Cloud Storage. Note that currently | 951 * Exports read group sets to a BAM file in Google Cloud Storage. |
989 * there may be some differences between exported BAM files and the original | 952 * |
990 * BAM file at the time of import. In particular, comments in the input file | 953 * Note that currently there may be some differences between exported BAM |
991 * header will not be preserved, and some custom tags will be converted to | 954 * files and the original BAM file at the time of import. In particular, |
992 * strings. | 955 * comments in the input file header will not be preserved, and some custom |
| 956 * tags will be converted to strings. |
993 * | 957 * |
994 * [request] - The metadata request object. | 958 * [request] - The metadata request object. |
995 * | 959 * |
996 * Request parameters: | 960 * Request parameters: |
997 * | 961 * |
998 * Completes with a [ExportReadsetsResponse]. | 962 * Completes with a [ExportReadGroupSetsResponse]. |
999 * | 963 * |
1000 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 964 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1001 * error. | 965 * error. |
1002 * | 966 * |
1003 * If the used [http.Client] completes with an error when making a REST call, | 967 * If the used [http.Client] completes with an error when making a REST call, |
1004 * this method will complete with the same error. | 968 * this method will complete with the same error. |
1005 */ | 969 */ |
1006 async.Future<ExportReadsetsResponse> export(ExportReadsetsRequest request) { | 970 async.Future<ExportReadGroupSetsResponse> export(ExportReadGroupSetsRequest re
quest) { |
1007 var _url = null; | 971 var _url = null; |
1008 var _queryParams = new core.Map(); | 972 var _queryParams = new core.Map(); |
1009 var _uploadMedia = null; | 973 var _uploadMedia = null; |
1010 var _uploadOptions = null; | 974 var _uploadOptions = null; |
1011 var _downloadOptions = common.DownloadOptions.Metadata; | 975 var _downloadOptions = common.DownloadOptions.Metadata; |
1012 var _body = null; | 976 var _body = null; |
1013 | 977 |
1014 if (request != null) { | 978 if (request != null) { |
1015 _body = convert.JSON.encode((request).toJson()); | 979 _body = convert.JSON.encode((request).toJson()); |
1016 } | 980 } |
1017 | 981 |
1018 | 982 |
1019 _url = 'readsets/export'; | 983 _url = 'readgroupsets/export'; |
1020 | 984 |
1021 var _response = _requester.request(_url, | 985 var _response = _requester.request(_url, |
1022 "POST", | 986 "POST", |
1023 body: _body, | 987 body: _body, |
1024 queryParams: _queryParams, | 988 queryParams: _queryParams, |
1025 uploadOptions: _uploadOptions, | 989 uploadOptions: _uploadOptions, |
1026 uploadMedia: _uploadMedia, | 990 uploadMedia: _uploadMedia, |
1027 downloadOptions: _downloadOptions); | 991 downloadOptions: _downloadOptions); |
1028 return _response.then((data) => new ExportReadsetsResponse.fromJson(data)); | 992 return _response.then((data) => new ExportReadGroupSetsResponse.fromJson(dat
a)); |
1029 } | 993 } |
1030 | 994 |
1031 /** | 995 /** |
1032 * Gets a readset by ID. | 996 * Gets a read group set by ID. |
1033 * | 997 * |
1034 * Request parameters: | 998 * Request parameters: |
1035 * | 999 * |
1036 * [readsetId] - The ID of the readset. | 1000 * [readGroupSetId] - The ID of the read group set. |
1037 * | 1001 * |
1038 * Completes with a [Readset]. | 1002 * Completes with a [ReadGroupSet]. |
1039 * | 1003 * |
1040 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1004 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1041 * error. | 1005 * error. |
1042 * | 1006 * |
1043 * If the used [http.Client] completes with an error when making a REST call, | 1007 * If the used [http.Client] completes with an error when making a REST call, |
1044 * this method will complete with the same error. | 1008 * this method will complete with the same error. |
1045 */ | 1009 */ |
1046 async.Future<Readset> get(core.String readsetId) { | 1010 async.Future<ReadGroupSet> get(core.String readGroupSetId) { |
1047 var _url = null; | 1011 var _url = null; |
1048 var _queryParams = new core.Map(); | 1012 var _queryParams = new core.Map(); |
1049 var _uploadMedia = null; | 1013 var _uploadMedia = null; |
1050 var _uploadOptions = null; | 1014 var _uploadOptions = null; |
1051 var _downloadOptions = common.DownloadOptions.Metadata; | 1015 var _downloadOptions = common.DownloadOptions.Metadata; |
1052 var _body = null; | 1016 var _body = null; |
1053 | 1017 |
1054 if (readsetId == null) { | 1018 if (readGroupSetId == null) { |
1055 throw new core.ArgumentError("Parameter readsetId is required."); | 1019 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
1056 } | 1020 } |
1057 | 1021 |
1058 | 1022 |
1059 _url = 'readsets/' + common_internal.Escaper.ecapeVariable('$readsetId'); | 1023 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); |
1060 | 1024 |
1061 var _response = _requester.request(_url, | 1025 var _response = _requester.request(_url, |
1062 "GET", | 1026 "GET", |
1063 body: _body, | 1027 body: _body, |
1064 queryParams: _queryParams, | 1028 queryParams: _queryParams, |
1065 uploadOptions: _uploadOptions, | 1029 uploadOptions: _uploadOptions, |
1066 uploadMedia: _uploadMedia, | 1030 uploadMedia: _uploadMedia, |
1067 downloadOptions: _downloadOptions); | 1031 downloadOptions: _downloadOptions); |
1068 return _response.then((data) => new Readset.fromJson(data)); | 1032 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
1069 } | 1033 } |
1070 | 1034 |
1071 /** | 1035 /** |
1072 * Creates readsets by asynchronously importing the provided information. Note | 1036 * Creates read group sets by asynchronously importing the provided |
1073 * that currently comments in the input file header are not imported and some | 1037 * information. |
1074 * custom tags will be converted to strings, rather than preserving tag types. | 1038 * |
1075 * The caller must have WRITE permissions to the dataset. | 1039 * Note that currently comments in the input file header are not imported and |
| 1040 * some custom tags will be converted to strings, rather than preserving tag |
| 1041 * types. The caller must have WRITE permissions to the dataset. |
1076 * | 1042 * |
1077 * [request] - The metadata request object. | 1043 * [request] - The metadata request object. |
1078 * | 1044 * |
1079 * Request parameters: | 1045 * Request parameters: |
1080 * | 1046 * |
1081 * Completes with a [ImportReadsetsResponse]. | 1047 * Completes with a [ImportReadGroupSetsResponse]. |
1082 * | 1048 * |
1083 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1049 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1084 * error. | 1050 * error. |
1085 * | 1051 * |
1086 * If the used [http.Client] completes with an error when making a REST call, | 1052 * If the used [http.Client] completes with an error when making a REST call, |
1087 * this method will complete with the same error. | 1053 * this method will complete with the same error. |
1088 */ | 1054 */ |
1089 async.Future<ImportReadsetsResponse> import(ImportReadsetsRequest request) { | 1055 async.Future<ImportReadGroupSetsResponse> import(ImportReadGroupSetsRequest re
quest) { |
1090 var _url = null; | 1056 var _url = null; |
1091 var _queryParams = new core.Map(); | 1057 var _queryParams = new core.Map(); |
1092 var _uploadMedia = null; | 1058 var _uploadMedia = null; |
1093 var _uploadOptions = null; | 1059 var _uploadOptions = null; |
1094 var _downloadOptions = common.DownloadOptions.Metadata; | 1060 var _downloadOptions = common.DownloadOptions.Metadata; |
1095 var _body = null; | 1061 var _body = null; |
1096 | 1062 |
1097 if (request != null) { | 1063 if (request != null) { |
1098 _body = convert.JSON.encode((request).toJson()); | 1064 _body = convert.JSON.encode((request).toJson()); |
1099 } | 1065 } |
1100 | 1066 |
1101 | 1067 |
1102 _url = 'readsets/import'; | 1068 _url = 'readgroupsets/import'; |
1103 | 1069 |
1104 var _response = _requester.request(_url, | 1070 var _response = _requester.request(_url, |
1105 "POST", | 1071 "POST", |
1106 body: _body, | 1072 body: _body, |
1107 queryParams: _queryParams, | 1073 queryParams: _queryParams, |
1108 uploadOptions: _uploadOptions, | 1074 uploadOptions: _uploadOptions, |
1109 uploadMedia: _uploadMedia, | 1075 uploadMedia: _uploadMedia, |
1110 downloadOptions: _downloadOptions); | 1076 downloadOptions: _downloadOptions); |
1111 return _response.then((data) => new ImportReadsetsResponse.fromJson(data)); | 1077 return _response.then((data) => new ImportReadGroupSetsResponse.fromJson(dat
a)); |
1112 } | 1078 } |
1113 | 1079 |
1114 /** | 1080 /** |
1115 * Updates a readset. This method supports patch semantics. | 1081 * Updates a read group set. This method supports patch semantics. |
1116 * | 1082 * |
1117 * [request] - The metadata request object. | 1083 * [request] - The metadata request object. |
1118 * | 1084 * |
1119 * Request parameters: | 1085 * Request parameters: |
1120 * | 1086 * |
1121 * [readsetId] - The ID of the readset to be updated. The caller must have | 1087 * [readGroupSetId] - The ID of the read group set to be updated. The caller |
1122 * WRITE permissions to the dataset associated with this readset. | 1088 * must have WRITE permissions to the dataset associated with this read group |
| 1089 * set. |
1123 * | 1090 * |
1124 * Completes with a [Readset]. | 1091 * Completes with a [ReadGroupSet]. |
1125 * | 1092 * |
1126 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1093 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1127 * error. | 1094 * error. |
1128 * | 1095 * |
1129 * If the used [http.Client] completes with an error when making a REST call, | 1096 * If the used [http.Client] completes with an error when making a REST call, |
1130 * this method will complete with the same error. | 1097 * this method will complete with the same error. |
1131 */ | 1098 */ |
1132 async.Future<Readset> patch(Readset request, core.String readsetId) { | 1099 async.Future<ReadGroupSet> patch(ReadGroupSet request, core.String readGroupSe
tId) { |
1133 var _url = null; | 1100 var _url = null; |
1134 var _queryParams = new core.Map(); | 1101 var _queryParams = new core.Map(); |
1135 var _uploadMedia = null; | 1102 var _uploadMedia = null; |
1136 var _uploadOptions = null; | 1103 var _uploadOptions = null; |
1137 var _downloadOptions = common.DownloadOptions.Metadata; | 1104 var _downloadOptions = common.DownloadOptions.Metadata; |
1138 var _body = null; | 1105 var _body = null; |
1139 | 1106 |
1140 if (request != null) { | 1107 if (request != null) { |
1141 _body = convert.JSON.encode((request).toJson()); | 1108 _body = convert.JSON.encode((request).toJson()); |
1142 } | 1109 } |
1143 if (readsetId == null) { | 1110 if (readGroupSetId == null) { |
1144 throw new core.ArgumentError("Parameter readsetId is required."); | 1111 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
1145 } | 1112 } |
1146 | 1113 |
1147 | 1114 |
1148 _url = 'readsets/' + common_internal.Escaper.ecapeVariable('$readsetId'); | 1115 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); |
1149 | 1116 |
1150 var _response = _requester.request(_url, | 1117 var _response = _requester.request(_url, |
1151 "PATCH", | 1118 "PATCH", |
1152 body: _body, | 1119 body: _body, |
1153 queryParams: _queryParams, | 1120 queryParams: _queryParams, |
1154 uploadOptions: _uploadOptions, | 1121 uploadOptions: _uploadOptions, |
1155 uploadMedia: _uploadMedia, | 1122 uploadMedia: _uploadMedia, |
1156 downloadOptions: _downloadOptions); | 1123 downloadOptions: _downloadOptions); |
1157 return _response.then((data) => new Readset.fromJson(data)); | 1124 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
1158 } | 1125 } |
1159 | 1126 |
1160 /** | 1127 /** |
1161 * Gets a list of readsets matching the criteria. | 1128 * Searches for read group sets matching the criteria. |
| 1129 * |
| 1130 * Implements GlobalAllianceApi.searchReadGroupSets. |
1162 * | 1131 * |
1163 * [request] - The metadata request object. | 1132 * [request] - The metadata request object. |
1164 * | 1133 * |
1165 * Request parameters: | 1134 * Request parameters: |
1166 * | 1135 * |
1167 * Completes with a [SearchReadsetsResponse]. | 1136 * Completes with a [SearchReadGroupSetsResponse]. |
1168 * | 1137 * |
1169 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1138 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1170 * error. | 1139 * error. |
1171 * | 1140 * |
1172 * If the used [http.Client] completes with an error when making a REST call, | 1141 * If the used [http.Client] completes with an error when making a REST call, |
1173 * this method will complete with the same error. | 1142 * this method will complete with the same error. |
1174 */ | 1143 */ |
1175 async.Future<SearchReadsetsResponse> search(SearchReadsetsRequest request) { | 1144 async.Future<SearchReadGroupSetsResponse> search(SearchReadGroupSetsRequest re
quest) { |
1176 var _url = null; | 1145 var _url = null; |
1177 var _queryParams = new core.Map(); | 1146 var _queryParams = new core.Map(); |
1178 var _uploadMedia = null; | 1147 var _uploadMedia = null; |
1179 var _uploadOptions = null; | 1148 var _uploadOptions = null; |
1180 var _downloadOptions = common.DownloadOptions.Metadata; | 1149 var _downloadOptions = common.DownloadOptions.Metadata; |
1181 var _body = null; | 1150 var _body = null; |
1182 | 1151 |
1183 if (request != null) { | 1152 if (request != null) { |
1184 _body = convert.JSON.encode((request).toJson()); | 1153 _body = convert.JSON.encode((request).toJson()); |
1185 } | 1154 } |
1186 | 1155 |
1187 | 1156 |
1188 _url = 'readsets/search'; | 1157 _url = 'readgroupsets/search'; |
1189 | 1158 |
1190 var _response = _requester.request(_url, | 1159 var _response = _requester.request(_url, |
1191 "POST", | 1160 "POST", |
1192 body: _body, | 1161 body: _body, |
1193 queryParams: _queryParams, | 1162 queryParams: _queryParams, |
1194 uploadOptions: _uploadOptions, | 1163 uploadOptions: _uploadOptions, |
1195 uploadMedia: _uploadMedia, | 1164 uploadMedia: _uploadMedia, |
1196 downloadOptions: _downloadOptions); | 1165 downloadOptions: _downloadOptions); |
1197 return _response.then((data) => new SearchReadsetsResponse.fromJson(data)); | 1166 return _response.then((data) => new SearchReadGroupSetsResponse.fromJson(dat
a)); |
1198 } | 1167 } |
1199 | 1168 |
1200 /** | 1169 /** |
1201 * Updates a readset. | 1170 * Updates a read group set. |
1202 * | 1171 * |
1203 * [request] - The metadata request object. | 1172 * [request] - The metadata request object. |
1204 * | 1173 * |
1205 * Request parameters: | 1174 * Request parameters: |
1206 * | 1175 * |
1207 * [readsetId] - The ID of the readset to be updated. The caller must have | 1176 * [readGroupSetId] - The ID of the read group set to be updated. The caller |
1208 * WRITE permissions to the dataset associated with this readset. | 1177 * must have WRITE permissions to the dataset associated with this read group |
| 1178 * set. |
1209 * | 1179 * |
1210 * Completes with a [Readset]. | 1180 * Completes with a [ReadGroupSet]. |
1211 * | 1181 * |
1212 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1182 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1213 * error. | 1183 * error. |
1214 * | 1184 * |
1215 * If the used [http.Client] completes with an error when making a REST call, | 1185 * If the used [http.Client] completes with an error when making a REST call, |
1216 * this method will complete with the same error. | 1186 * this method will complete with the same error. |
1217 */ | 1187 */ |
1218 async.Future<Readset> update(Readset request, core.String readsetId) { | 1188 async.Future<ReadGroupSet> update(ReadGroupSet request, core.String readGroupS
etId) { |
1219 var _url = null; | 1189 var _url = null; |
1220 var _queryParams = new core.Map(); | 1190 var _queryParams = new core.Map(); |
1221 var _uploadMedia = null; | 1191 var _uploadMedia = null; |
1222 var _uploadOptions = null; | 1192 var _uploadOptions = null; |
1223 var _downloadOptions = common.DownloadOptions.Metadata; | 1193 var _downloadOptions = common.DownloadOptions.Metadata; |
1224 var _body = null; | 1194 var _body = null; |
1225 | 1195 |
1226 if (request != null) { | 1196 if (request != null) { |
1227 _body = convert.JSON.encode((request).toJson()); | 1197 _body = convert.JSON.encode((request).toJson()); |
1228 } | 1198 } |
1229 if (readsetId == null) { | 1199 if (readGroupSetId == null) { |
1230 throw new core.ArgumentError("Parameter readsetId is required."); | 1200 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
1231 } | 1201 } |
1232 | 1202 |
1233 | 1203 |
1234 _url = 'readsets/' + common_internal.Escaper.ecapeVariable('$readsetId'); | 1204 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); |
1235 | 1205 |
1236 var _response = _requester.request(_url, | 1206 var _response = _requester.request(_url, |
1237 "PUT", | 1207 "PUT", |
1238 body: _body, | 1208 body: _body, |
1239 queryParams: _queryParams, | 1209 queryParams: _queryParams, |
1240 uploadOptions: _uploadOptions, | 1210 uploadOptions: _uploadOptions, |
1241 uploadMedia: _uploadMedia, | 1211 uploadMedia: _uploadMedia, |
1242 downloadOptions: _downloadOptions); | 1212 downloadOptions: _downloadOptions); |
1243 return _response.then((data) => new Readset.fromJson(data)); | 1213 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
1244 } | 1214 } |
1245 | 1215 |
1246 } | 1216 } |
1247 | 1217 |
1248 | 1218 |
1249 /** Not documented yet. */ | 1219 /** Not documented yet. */ |
1250 class ReadsetsCoveragebucketsResourceApi { | 1220 class ReadgroupsetsCoveragebucketsResourceApi { |
1251 final common_internal.ApiRequester _requester; | 1221 final common_internal.ApiRequester _requester; |
1252 | 1222 |
1253 ReadsetsCoveragebucketsResourceApi(common_internal.ApiRequester client) : | 1223 ReadgroupsetsCoveragebucketsResourceApi(common_internal.ApiRequester client) :
|
1254 _requester = client; | 1224 _requester = client; |
1255 | 1225 |
1256 /** | 1226 /** |
1257 * Lists fixed width coverage buckets for a readset, each of which correspond | 1227 * Lists fixed width coverage buckets for a read group set, each of which |
1258 * to a range of a reference sequence. Each bucket summarizes coverage | 1228 * correspond to a range of a reference sequence. Each bucket summarizes |
1259 * information across its corresponding genomic range. Coverage is defined as | 1229 * coverage information across its corresponding genomic range. |
1260 * the number of reads which are aligned to a given base in the reference | 1230 * |
1261 * sequence. Coverage buckets are available at various bucket widths, enabling | 1231 * Coverage is defined as the number of reads which are aligned to a given |
1262 * various coverage "zoom levels". The caller must have READ permissions for | 1232 * base in the reference sequence. Coverage buckets are available at several |
1263 * the target readset. | 1233 * precomputed bucket widths, enabling retrieval of various coverage 'zoom |
| 1234 * levels'. The caller must have READ permissions for the target read group |
| 1235 * set. |
1264 * | 1236 * |
1265 * Request parameters: | 1237 * Request parameters: |
1266 * | 1238 * |
1267 * [readsetId] - Required. The ID of the readset over which coverage is | 1239 * [readGroupSetId] - Required. The ID of the read group set over which |
1268 * requested. | 1240 * coverage is requested. |
1269 * | 1241 * |
1270 * [maxResults] - The maximum number of results to return in a single page. If | 1242 * [pageSize] - The maximum number of results to return in a single page. If |
1271 * unspecified, defaults to 1024. The maximum value is 2048. | 1243 * unspecified, defaults to 1024. The maximum value is 2048. |
1272 * | 1244 * |
1273 * [pageToken] - The continuation token, which is used to page through large | 1245 * [pageToken] - The continuation token, which is used to page through large |
1274 * result sets. To get the next page of results, set this parameter to the | 1246 * result sets. To get the next page of results, set this parameter to the |
1275 * value of nextPageToken from the previous response. | 1247 * value of nextPageToken from the previous response. |
1276 * | 1248 * |
1277 * [range_sequenceEnd] - The end position of the range on the reference, | 1249 * [range_end] - The end position of the range on the reference, 0-based |
1278 * 1-based exclusive. If specified, sequenceName must also be specified. | 1250 * exclusive. If specified, referenceName must also be specified. |
1279 * | 1251 * |
1280 * [range_sequenceName] - The reference sequence name, for example chr1, 1, or | 1252 * [range_referenceName] - The reference sequence name, for example chr1, 1, |
1281 * chrX. | 1253 * or chrX. |
1282 * | 1254 * |
1283 * [range_sequenceStart] - The start position of the range on the reference, | 1255 * [range_start] - The start position of the range on the reference, 0-based |
1284 * 1-based inclusive. If specified, sequenceName must also be specified. | 1256 * inclusive. If specified, referenceName must also be specified. |
1285 * | 1257 * |
1286 * [targetBucketWidth] - The desired width of each reported coverage bucket in | 1258 * [targetBucketWidth] - The desired width of each reported coverage bucket in |
1287 * base pairs. This will be rounded down to the nearest precomputed bucket | 1259 * base pairs. This will be rounded down to the nearest precomputed bucket |
1288 * width; the value of which is returned as bucketWidth in the response. | 1260 * width; the value of which is returned as bucketWidth in the response. |
1289 * Defaults to infinity (each bucket spans an entire reference sequence) or | 1261 * Defaults to infinity (each bucket spans an entire reference sequence) or |
1290 * the length of the target range, if specified. The smallest precomputed | 1262 * the length of the target range, if specified. The smallest precomputed |
1291 * bucketWidth is currently 2048 base pairs; this is subject to change. | 1263 * bucketWidth is currently 2048 base pairs; this is subject to change. |
1292 * | 1264 * |
1293 * Completes with a [ListCoverageBucketsResponse]. | 1265 * Completes with a [ListCoverageBucketsResponse]. |
1294 * | 1266 * |
1295 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1267 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1296 * error. | 1268 * error. |
1297 * | 1269 * |
1298 * If the used [http.Client] completes with an error when making a REST call, | 1270 * If the used [http.Client] completes with an error when making a REST call, |
1299 * this method will complete with the same error. | 1271 * this method will complete with the same error. |
1300 */ | 1272 */ |
1301 async.Future<ListCoverageBucketsResponse> list(core.String readsetId, {core.St
ring maxResults, core.String pageToken, core.String range_sequenceEnd, core.Stri
ng range_sequenceName, core.String range_sequenceStart, core.String targetBucket
Width}) { | 1273 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.int pageSize, core.String pageToken, core.String range_end, core.String range
_referenceName, core.String range_start, core.String targetBucketWidth}) { |
1302 var _url = null; | 1274 var _url = null; |
1303 var _queryParams = new core.Map(); | 1275 var _queryParams = new core.Map(); |
1304 var _uploadMedia = null; | 1276 var _uploadMedia = null; |
1305 var _uploadOptions = null; | 1277 var _uploadOptions = null; |
1306 var _downloadOptions = common.DownloadOptions.Metadata; | 1278 var _downloadOptions = common.DownloadOptions.Metadata; |
1307 var _body = null; | 1279 var _body = null; |
1308 | 1280 |
1309 if (readsetId == null) { | 1281 if (readGroupSetId == null) { |
1310 throw new core.ArgumentError("Parameter readsetId is required."); | 1282 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
1311 } | 1283 } |
1312 if (maxResults != null) { | 1284 if (pageSize != null) { |
1313 _queryParams["maxResults"] = [maxResults]; | 1285 _queryParams["pageSize"] = ["${pageSize}"]; |
1314 } | 1286 } |
1315 if (pageToken != null) { | 1287 if (pageToken != null) { |
1316 _queryParams["pageToken"] = [pageToken]; | 1288 _queryParams["pageToken"] = [pageToken]; |
1317 } | 1289 } |
1318 if (range_sequenceEnd != null) { | 1290 if (range_end != null) { |
1319 _queryParams["range.sequenceEnd"] = [range_sequenceEnd]; | 1291 _queryParams["range.end"] = [range_end]; |
1320 } | 1292 } |
1321 if (range_sequenceName != null) { | 1293 if (range_referenceName != null) { |
1322 _queryParams["range.sequenceName"] = [range_sequenceName]; | 1294 _queryParams["range.referenceName"] = [range_referenceName]; |
1323 } | 1295 } |
1324 if (range_sequenceStart != null) { | 1296 if (range_start != null) { |
1325 _queryParams["range.sequenceStart"] = [range_sequenceStart]; | 1297 _queryParams["range.start"] = [range_start]; |
1326 } | 1298 } |
1327 if (targetBucketWidth != null) { | 1299 if (targetBucketWidth != null) { |
1328 _queryParams["targetBucketWidth"] = [targetBucketWidth]; | 1300 _queryParams["targetBucketWidth"] = [targetBucketWidth]; |
1329 } | 1301 } |
1330 | 1302 |
1331 | 1303 |
1332 _url = 'readsets/' + common_internal.Escaper.ecapeVariable('$readsetId') + '
/coveragebuckets'; | 1304 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId') + '/coveragebuckets'; |
1333 | 1305 |
1334 var _response = _requester.request(_url, | 1306 var _response = _requester.request(_url, |
1335 "GET", | 1307 "GET", |
1336 body: _body, | 1308 body: _body, |
1337 queryParams: _queryParams, | 1309 queryParams: _queryParams, |
1338 uploadOptions: _uploadOptions, | 1310 uploadOptions: _uploadOptions, |
1339 uploadMedia: _uploadMedia, | 1311 uploadMedia: _uploadMedia, |
1340 downloadOptions: _downloadOptions); | 1312 downloadOptions: _downloadOptions); |
1341 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); | 1313 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); |
1342 } | 1314 } |
1343 | 1315 |
1344 } | 1316 } |
1345 | 1317 |
1346 | 1318 |
1347 /** Not documented yet. */ | 1319 /** Not documented yet. */ |
1348 class VariantsResourceApi { | 1320 class ReadsResourceApi { |
1349 final common_internal.ApiRequester _requester; | 1321 final common_internal.ApiRequester _requester; |
1350 | 1322 |
1351 VariantsResourceApi(common_internal.ApiRequester client) : | 1323 ReadsResourceApi(common_internal.ApiRequester client) : |
1352 _requester = client; | 1324 _requester = client; |
1353 | 1325 |
1354 /** | 1326 /** |
1355 * Creates a new variant. | 1327 * Gets a list of reads for one or more read group sets. Reads search operates |
| 1328 * over a genomic coordinate space of reference sequence & position defined |
| 1329 * over the reference sequences to which the requested read group sets are |
| 1330 * aligned. |
| 1331 * |
| 1332 * If a target positional range is specified, search returns all reads whose |
| 1333 * alignment to the reference genome overlap the range. A query which |
| 1334 * specifies only read group set IDs yields all reads in those read group |
| 1335 * sets, including unmapped reads. |
| 1336 * |
| 1337 * All reads returned (including reads on subsequent pages) are ordered by |
| 1338 * genomic coordinate (reference sequence & position). Reads with equivalent |
| 1339 * genomic coordinates are returned in a deterministic order. |
| 1340 * |
| 1341 * Implements GlobalAllianceApi.searchReads. |
1356 * | 1342 * |
1357 * [request] - The metadata request object. | 1343 * [request] - The metadata request object. |
1358 * | 1344 * |
1359 * Request parameters: | 1345 * Request parameters: |
1360 * | 1346 * |
1361 * Completes with a [Variant]. | 1347 * Completes with a [SearchReadsResponse]. |
1362 * | 1348 * |
1363 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1349 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1364 * error. | 1350 * error. |
1365 * | 1351 * |
1366 * If the used [http.Client] completes with an error when making a REST call, | 1352 * If the used [http.Client] completes with an error when making a REST call, |
1367 * this method will complete with the same error. | 1353 * this method will complete with the same error. |
1368 */ | 1354 */ |
1369 async.Future<Variant> create(Variant request) { | 1355 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { |
1370 var _url = null; | 1356 var _url = null; |
1371 var _queryParams = new core.Map(); | 1357 var _queryParams = new core.Map(); |
1372 var _uploadMedia = null; | 1358 var _uploadMedia = null; |
1373 var _uploadOptions = null; | 1359 var _uploadOptions = null; |
1374 var _downloadOptions = common.DownloadOptions.Metadata; | 1360 var _downloadOptions = common.DownloadOptions.Metadata; |
1375 var _body = null; | 1361 var _body = null; |
1376 | 1362 |
1377 if (request != null) { | 1363 if (request != null) { |
1378 _body = convert.JSON.encode((request).toJson()); | 1364 _body = convert.JSON.encode((request).toJson()); |
1379 } | 1365 } |
1380 | 1366 |
1381 | 1367 |
1382 _url = 'variants'; | 1368 _url = 'reads/search'; |
1383 | 1369 |
1384 var _response = _requester.request(_url, | 1370 var _response = _requester.request(_url, |
1385 "POST", | 1371 "POST", |
1386 body: _body, | 1372 body: _body, |
1387 queryParams: _queryParams, | 1373 queryParams: _queryParams, |
1388 uploadOptions: _uploadOptions, | 1374 uploadOptions: _uploadOptions, |
1389 uploadMedia: _uploadMedia, | 1375 uploadMedia: _uploadMedia, |
1390 downloadOptions: _downloadOptions); | 1376 downloadOptions: _downloadOptions); |
1391 return _response.then((data) => new Variant.fromJson(data)); | 1377 return _response.then((data) => new SearchReadsResponse.fromJson(data)); |
1392 } | 1378 } |
1393 | 1379 |
| 1380 } |
| 1381 |
| 1382 |
| 1383 /** Not documented yet. */ |
| 1384 class ReferencesResourceApi { |
| 1385 final common_internal.ApiRequester _requester; |
| 1386 |
| 1387 ReferencesBasesResourceApi get bases => new ReferencesBasesResourceApi(_reques
ter); |
| 1388 |
| 1389 ReferencesResourceApi(common_internal.ApiRequester client) : |
| 1390 _requester = client; |
| 1391 |
1394 /** | 1392 /** |
1395 * Deletes a variant. | 1393 * Gets a reference. |
| 1394 * |
| 1395 * Implements GlobalAllianceApi.getReference. |
1396 * | 1396 * |
1397 * Request parameters: | 1397 * Request parameters: |
1398 * | 1398 * |
1399 * [variantId] - The ID of the variant to be deleted. | 1399 * [referenceId] - The ID of the reference. |
| 1400 * |
| 1401 * Completes with a [Reference]. |
1400 * | 1402 * |
1401 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1403 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1402 * error. | 1404 * error. |
1403 * | 1405 * |
1404 * If the used [http.Client] completes with an error when making a REST call, | 1406 * If the used [http.Client] completes with an error when making a REST call, |
1405 * this method will complete with the same error. | 1407 * this method will complete with the same error. |
1406 */ | 1408 */ |
1407 async.Future delete(core.String variantId) { | 1409 async.Future<Reference> get(core.String referenceId) { |
1408 var _url = null; | 1410 var _url = null; |
1409 var _queryParams = new core.Map(); | 1411 var _queryParams = new core.Map(); |
1410 var _uploadMedia = null; | 1412 var _uploadMedia = null; |
1411 var _uploadOptions = null; | 1413 var _uploadOptions = null; |
1412 var _downloadOptions = common.DownloadOptions.Metadata; | 1414 var _downloadOptions = common.DownloadOptions.Metadata; |
1413 var _body = null; | 1415 var _body = null; |
1414 | 1416 |
1415 if (variantId == null) { | 1417 if (referenceId == null) { |
1416 throw new core.ArgumentError("Parameter variantId is required."); | 1418 throw new core.ArgumentError("Parameter referenceId is required."); |
1417 } | 1419 } |
1418 | 1420 |
1419 _downloadOptions = null; | |
1420 | 1421 |
1421 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 1422 _url = 'references/' + common_internal.Escaper.ecapeVariable('$referenceId')
; |
1422 | 1423 |
1423 var _response = _requester.request(_url, | 1424 var _response = _requester.request(_url, |
1424 "DELETE", | 1425 "GET", |
1425 body: _body, | 1426 body: _body, |
1426 queryParams: _queryParams, | 1427 queryParams: _queryParams, |
1427 uploadOptions: _uploadOptions, | 1428 uploadOptions: _uploadOptions, |
1428 uploadMedia: _uploadMedia, | 1429 uploadMedia: _uploadMedia, |
1429 downloadOptions: _downloadOptions); | 1430 downloadOptions: _downloadOptions); |
1430 return _response.then((data) => null); | 1431 return _response.then((data) => new Reference.fromJson(data)); |
1431 } | 1432 } |
1432 | 1433 |
1433 /** | 1434 /** |
1434 * Exports variant data to an external destination. | 1435 * Searches for references which match the given criteria. |
| 1436 * |
| 1437 * Implements GlobalAllianceApi.searchReferences. |
1435 * | 1438 * |
1436 * [request] - The metadata request object. | 1439 * [request] - The metadata request object. |
1437 * | 1440 * |
1438 * Request parameters: | 1441 * Request parameters: |
1439 * | 1442 * |
1440 * Completes with a [ExportVariantsResponse]. | 1443 * Completes with a [SearchReferencesResponse]. |
1441 * | 1444 * |
1442 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1445 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1443 * error. | 1446 * error. |
1444 * | 1447 * |
1445 * If the used [http.Client] completes with an error when making a REST call, | 1448 * If the used [http.Client] completes with an error when making a REST call, |
1446 * this method will complete with the same error. | 1449 * this method will complete with the same error. |
1447 */ | 1450 */ |
1448 async.Future<ExportVariantsResponse> export(ExportVariantsRequest request) { | 1451 async.Future<SearchReferencesResponse> search(SearchReferencesRequest request)
{ |
1449 var _url = null; | 1452 var _url = null; |
1450 var _queryParams = new core.Map(); | 1453 var _queryParams = new core.Map(); |
1451 var _uploadMedia = null; | 1454 var _uploadMedia = null; |
1452 var _uploadOptions = null; | 1455 var _uploadOptions = null; |
1453 var _downloadOptions = common.DownloadOptions.Metadata; | 1456 var _downloadOptions = common.DownloadOptions.Metadata; |
1454 var _body = null; | 1457 var _body = null; |
1455 | 1458 |
1456 if (request != null) { | 1459 if (request != null) { |
1457 _body = convert.JSON.encode((request).toJson()); | 1460 _body = convert.JSON.encode((request).toJson()); |
1458 } | 1461 } |
1459 | 1462 |
1460 | 1463 |
1461 _url = 'variants/export'; | 1464 _url = 'references/search'; |
1462 | 1465 |
1463 var _response = _requester.request(_url, | 1466 var _response = _requester.request(_url, |
1464 "POST", | 1467 "POST", |
1465 body: _body, | 1468 body: _body, |
1466 queryParams: _queryParams, | 1469 queryParams: _queryParams, |
1467 uploadOptions: _uploadOptions, | 1470 uploadOptions: _uploadOptions, |
1468 uploadMedia: _uploadMedia, | 1471 uploadMedia: _uploadMedia, |
1469 downloadOptions: _downloadOptions); | 1472 downloadOptions: _downloadOptions); |
1470 return _response.then((data) => new ExportVariantsResponse.fromJson(data)); | 1473 return _response.then((data) => new SearchReferencesResponse.fromJson(data))
; |
1471 } | 1474 } |
1472 | 1475 |
| 1476 } |
| 1477 |
| 1478 |
| 1479 /** Not documented yet. */ |
| 1480 class ReferencesBasesResourceApi { |
| 1481 final common_internal.ApiRequester _requester; |
| 1482 |
| 1483 ReferencesBasesResourceApi(common_internal.ApiRequester client) : |
| 1484 _requester = client; |
| 1485 |
1473 /** | 1486 /** |
1474 * Gets a variant by ID. | 1487 * Lists the bases in a reference, optionally restricted to a range. |
| 1488 * |
| 1489 * Implements GlobalAllianceApi.getReferenceBases. |
1475 * | 1490 * |
1476 * Request parameters: | 1491 * Request parameters: |
1477 * | 1492 * |
1478 * [variantId] - The ID of the variant. | 1493 * [referenceId] - The ID of the reference. |
1479 * | 1494 * |
1480 * Completes with a [Variant]. | 1495 * [end] - The end position (0-based, exclusive) of this query. Defaults to |
| 1496 * the length of this reference. |
| 1497 * |
| 1498 * [pageSize] - Specifies the maximum number of bases to return in a single |
| 1499 * page. |
| 1500 * |
| 1501 * [pageToken] - The continuation token, which is used to page through large |
| 1502 * result sets. To get the next page of results, set this parameter to the |
| 1503 * value of nextPageToken from the previous response. |
| 1504 * |
| 1505 * [start] - The start position (0-based) of this query. Defaults to 0. |
| 1506 * |
| 1507 * Completes with a [ListBasesResponse]. |
1481 * | 1508 * |
1482 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1509 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1483 * error. | 1510 * error. |
1484 * | 1511 * |
1485 * If the used [http.Client] completes with an error when making a REST call, | 1512 * If the used [http.Client] completes with an error when making a REST call, |
1486 * this method will complete with the same error. | 1513 * this method will complete with the same error. |
1487 */ | 1514 */ |
1488 async.Future<Variant> get(core.String variantId) { | 1515 async.Future<ListBasesResponse> list(core.String referenceId, {core.String end
, core.int pageSize, core.String pageToken, core.String start}) { |
1489 var _url = null; | 1516 var _url = null; |
1490 var _queryParams = new core.Map(); | 1517 var _queryParams = new core.Map(); |
1491 var _uploadMedia = null; | 1518 var _uploadMedia = null; |
1492 var _uploadOptions = null; | 1519 var _uploadOptions = null; |
1493 var _downloadOptions = common.DownloadOptions.Metadata; | 1520 var _downloadOptions = common.DownloadOptions.Metadata; |
1494 var _body = null; | 1521 var _body = null; |
1495 | 1522 |
1496 if (variantId == null) { | 1523 if (referenceId == null) { |
1497 throw new core.ArgumentError("Parameter variantId is required."); | 1524 throw new core.ArgumentError("Parameter referenceId is required."); |
| 1525 } |
| 1526 if (end != null) { |
| 1527 _queryParams["end"] = [end]; |
| 1528 } |
| 1529 if (pageSize != null) { |
| 1530 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1531 } |
| 1532 if (pageToken != null) { |
| 1533 _queryParams["pageToken"] = [pageToken]; |
| 1534 } |
| 1535 if (start != null) { |
| 1536 _queryParams["start"] = [start]; |
1498 } | 1537 } |
1499 | 1538 |
1500 | 1539 |
1501 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 1540 _url = 'references/' + common_internal.Escaper.ecapeVariable('$referenceId')
+ '/bases'; |
1502 | 1541 |
1503 var _response = _requester.request(_url, | 1542 var _response = _requester.request(_url, |
1504 "GET", | 1543 "GET", |
1505 body: _body, | 1544 body: _body, |
1506 queryParams: _queryParams, | 1545 queryParams: _queryParams, |
1507 uploadOptions: _uploadOptions, | 1546 uploadOptions: _uploadOptions, |
1508 uploadMedia: _uploadMedia, | 1547 uploadMedia: _uploadMedia, |
1509 downloadOptions: _downloadOptions); | 1548 downloadOptions: _downloadOptions); |
1510 return _response.then((data) => new Variant.fromJson(data)); | 1549 return _response.then((data) => new ListBasesResponse.fromJson(data)); |
1511 } | 1550 } |
1512 | 1551 |
| 1552 } |
| 1553 |
| 1554 |
| 1555 /** Not documented yet. */ |
| 1556 class ReferencesetsResourceApi { |
| 1557 final common_internal.ApiRequester _requester; |
| 1558 |
| 1559 ReferencesetsResourceApi(common_internal.ApiRequester client) : |
| 1560 _requester = client; |
| 1561 |
1513 /** | 1562 /** |
1514 * Creates variant data by asynchronously importing the provided information. | 1563 * Gets a reference set. |
1515 * The variants for import will be merged with any existing data and each | |
1516 * other according to the behavior of mergeVariants. In particular, this means | |
1517 * for merged VCF variants that have conflicting INFO fields, some data will | |
1518 * be arbitrarily discarded. As a special case, for single-sample VCF files, | |
1519 * QUAL and FILTER fields will be moved to the call level; these are sometimes | |
1520 * interpreted in a call-specific context. Imported VCF headers are appended | |
1521 * to the metadata already in a VariantSet. | |
1522 * | 1564 * |
1523 * [request] - The metadata request object. | 1565 * Implements GlobalAllianceApi.getReferenceSet. |
1524 * | 1566 * |
1525 * Request parameters: | 1567 * Request parameters: |
1526 * | 1568 * |
1527 * Completes with a [ImportVariantsResponse]. | 1569 * [referenceSetId] - The ID of the reference set. |
| 1570 * |
| 1571 * Completes with a [ReferenceSet]. |
1528 * | 1572 * |
1529 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1573 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1530 * error. | 1574 * error. |
1531 * | 1575 * |
1532 * If the used [http.Client] completes with an error when making a REST call, | 1576 * If the used [http.Client] completes with an error when making a REST call, |
1533 * this method will complete with the same error. | 1577 * this method will complete with the same error. |
1534 */ | 1578 */ |
1535 async.Future<ImportVariantsResponse> import(ImportVariantsRequest request) { | 1579 async.Future<ReferenceSet> get(core.String referenceSetId) { |
1536 var _url = null; | 1580 var _url = null; |
1537 var _queryParams = new core.Map(); | 1581 var _queryParams = new core.Map(); |
1538 var _uploadMedia = null; | 1582 var _uploadMedia = null; |
1539 var _uploadOptions = null; | 1583 var _uploadOptions = null; |
1540 var _downloadOptions = common.DownloadOptions.Metadata; | 1584 var _downloadOptions = common.DownloadOptions.Metadata; |
1541 var _body = null; | 1585 var _body = null; |
1542 | 1586 |
1543 if (request != null) { | 1587 if (referenceSetId == null) { |
1544 _body = convert.JSON.encode((request).toJson()); | 1588 throw new core.ArgumentError("Parameter referenceSetId is required."); |
1545 } | 1589 } |
1546 | 1590 |
1547 | 1591 |
1548 _url = 'variants/import'; | 1592 _url = 'referencesets/' + common_internal.Escaper.ecapeVariable('$referenceS
etId'); |
1549 | 1593 |
1550 var _response = _requester.request(_url, | 1594 var _response = _requester.request(_url, |
1551 "POST", | 1595 "GET", |
1552 body: _body, | 1596 body: _body, |
1553 queryParams: _queryParams, | 1597 queryParams: _queryParams, |
1554 uploadOptions: _uploadOptions, | 1598 uploadOptions: _uploadOptions, |
1555 uploadMedia: _uploadMedia, | 1599 uploadMedia: _uploadMedia, |
1556 downloadOptions: _downloadOptions); | 1600 downloadOptions: _downloadOptions); |
1557 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); | 1601 return _response.then((data) => new ReferenceSet.fromJson(data)); |
1558 } | 1602 } |
1559 | 1603 |
1560 /** | 1604 /** |
1561 * Gets a list of variants matching the criteria. | 1605 * Searches for reference sets which match the given criteria. |
| 1606 * |
| 1607 * Implements GlobalAllianceApi.searchReferenceSets. |
1562 * | 1608 * |
1563 * [request] - The metadata request object. | 1609 * [request] - The metadata request object. |
1564 * | 1610 * |
1565 * Request parameters: | 1611 * Request parameters: |
1566 * | 1612 * |
1567 * Completes with a [SearchVariantsResponse]. | 1613 * Completes with a [SearchReferenceSetsResponse]. |
1568 * | 1614 * |
1569 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1615 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1570 * error. | 1616 * error. |
1571 * | 1617 * |
1572 * If the used [http.Client] completes with an error when making a REST call, | 1618 * If the used [http.Client] completes with an error when making a REST call, |
1573 * this method will complete with the same error. | 1619 * this method will complete with the same error. |
1574 */ | 1620 */ |
1575 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { | 1621 async.Future<SearchReferenceSetsResponse> search(SearchReferenceSetsRequest re
quest) { |
1576 var _url = null; | 1622 var _url = null; |
1577 var _queryParams = new core.Map(); | 1623 var _queryParams = new core.Map(); |
1578 var _uploadMedia = null; | 1624 var _uploadMedia = null; |
1579 var _uploadOptions = null; | 1625 var _uploadOptions = null; |
1580 var _downloadOptions = common.DownloadOptions.Metadata; | 1626 var _downloadOptions = common.DownloadOptions.Metadata; |
1581 var _body = null; | 1627 var _body = null; |
1582 | 1628 |
1583 if (request != null) { | 1629 if (request != null) { |
1584 _body = convert.JSON.encode((request).toJson()); | 1630 _body = convert.JSON.encode((request).toJson()); |
1585 } | 1631 } |
1586 | 1632 |
1587 | 1633 |
1588 _url = 'variants/search'; | 1634 _url = 'referencesets/search'; |
1589 | 1635 |
1590 var _response = _requester.request(_url, | 1636 var _response = _requester.request(_url, |
1591 "POST", | 1637 "POST", |
1592 body: _body, | 1638 body: _body, |
1593 queryParams: _queryParams, | 1639 queryParams: _queryParams, |
1594 uploadOptions: _uploadOptions, | 1640 uploadOptions: _uploadOptions, |
1595 uploadMedia: _uploadMedia, | 1641 uploadMedia: _uploadMedia, |
1596 downloadOptions: _downloadOptions); | 1642 downloadOptions: _downloadOptions); |
1597 return _response.then((data) => new SearchVariantsResponse.fromJson(data)); | 1643 return _response.then((data) => new SearchReferenceSetsResponse.fromJson(dat
a)); |
1598 } | 1644 } |
1599 | 1645 |
| 1646 } |
| 1647 |
| 1648 |
| 1649 /** Not documented yet. */ |
| 1650 class VariantsResourceApi { |
| 1651 final common_internal.ApiRequester _requester; |
| 1652 |
| 1653 VariantsResourceApi(common_internal.ApiRequester client) : |
| 1654 _requester = client; |
| 1655 |
1600 /** | 1656 /** |
1601 * Updates a variant's names and info fields. All other modifications are | 1657 * Creates a new variant. |
1602 * silently ignored. Returns the modified variant without its calls. | |
1603 * | 1658 * |
1604 * [request] - The metadata request object. | 1659 * [request] - The metadata request object. |
1605 * | 1660 * |
1606 * Request parameters: | 1661 * Request parameters: |
1607 * | 1662 * |
1608 * [variantId] - The ID of the variant to be updated. | |
1609 * | |
1610 * Completes with a [Variant]. | 1663 * Completes with a [Variant]. |
1611 * | 1664 * |
1612 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1665 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1613 * error. | 1666 * error. |
1614 * | 1667 * |
1615 * If the used [http.Client] completes with an error when making a REST call, | 1668 * If the used [http.Client] completes with an error when making a REST call, |
1616 * this method will complete with the same error. | 1669 * this method will complete with the same error. |
1617 */ | 1670 */ |
1618 async.Future<Variant> update(Variant request, core.String variantId) { | 1671 async.Future<Variant> create(Variant request) { |
1619 var _url = null; | 1672 var _url = null; |
1620 var _queryParams = new core.Map(); | 1673 var _queryParams = new core.Map(); |
1621 var _uploadMedia = null; | 1674 var _uploadMedia = null; |
1622 var _uploadOptions = null; | 1675 var _uploadOptions = null; |
1623 var _downloadOptions = common.DownloadOptions.Metadata; | 1676 var _downloadOptions = common.DownloadOptions.Metadata; |
1624 var _body = null; | 1677 var _body = null; |
1625 | 1678 |
1626 if (request != null) { | 1679 if (request != null) { |
1627 _body = convert.JSON.encode((request).toJson()); | 1680 _body = convert.JSON.encode((request).toJson()); |
1628 } | 1681 } |
1629 if (variantId == null) { | |
1630 throw new core.ArgumentError("Parameter variantId is required."); | |
1631 } | |
1632 | 1682 |
1633 | 1683 |
1634 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 1684 _url = 'variants'; |
1635 | 1685 |
1636 var _response = _requester.request(_url, | 1686 var _response = _requester.request(_url, |
1637 "PUT", | 1687 "POST", |
1638 body: _body, | 1688 body: _body, |
1639 queryParams: _queryParams, | 1689 queryParams: _queryParams, |
1640 uploadOptions: _uploadOptions, | 1690 uploadOptions: _uploadOptions, |
1641 uploadMedia: _uploadMedia, | 1691 uploadMedia: _uploadMedia, |
1642 downloadOptions: _downloadOptions); | 1692 downloadOptions: _downloadOptions); |
1643 return _response.then((data) => new Variant.fromJson(data)); | 1693 return _response.then((data) => new Variant.fromJson(data)); |
1644 } | 1694 } |
1645 | 1695 |
1646 } | |
1647 | |
1648 | |
1649 /** Not documented yet. */ | |
1650 class VariantsetsResourceApi { | |
1651 final common_internal.ApiRequester _requester; | |
1652 | |
1653 VariantsetsResourceApi(common_internal.ApiRequester client) : | |
1654 _requester = client; | |
1655 | |
1656 /** | 1696 /** |
1657 * Deletes the contents of a variant set. The variant set object is not | 1697 * Deletes a variant. |
1658 * deleted. | |
1659 * | 1698 * |
1660 * Request parameters: | 1699 * Request parameters: |
1661 * | 1700 * |
1662 * [variantSetId] - The ID of the variant set to be deleted. | 1701 * [variantId] - The ID of the variant to be deleted. |
1663 * | 1702 * |
1664 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1703 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1665 * error. | 1704 * error. |
1666 * | 1705 * |
1667 * If the used [http.Client] completes with an error when making a REST call, | 1706 * If the used [http.Client] completes with an error when making a REST call, |
1668 * this method will complete with the same error. | 1707 * this method will complete with the same error. |
1669 */ | 1708 */ |
1670 async.Future delete(core.String variantSetId) { | 1709 async.Future delete(core.String variantId) { |
1671 var _url = null; | 1710 var _url = null; |
1672 var _queryParams = new core.Map(); | 1711 var _queryParams = new core.Map(); |
1673 var _uploadMedia = null; | 1712 var _uploadMedia = null; |
1674 var _uploadOptions = null; | 1713 var _uploadOptions = null; |
1675 var _downloadOptions = common.DownloadOptions.Metadata; | 1714 var _downloadOptions = common.DownloadOptions.Metadata; |
1676 var _body = null; | 1715 var _body = null; |
1677 | 1716 |
1678 if (variantSetId == null) { | 1717 if (variantId == null) { |
1679 throw new core.ArgumentError("Parameter variantSetId is required."); | 1718 throw new core.ArgumentError("Parameter variantId is required."); |
1680 } | 1719 } |
1681 | 1720 |
1682 _downloadOptions = null; | 1721 _downloadOptions = null; |
1683 | 1722 |
1684 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 1723 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); |
1685 | 1724 |
1686 var _response = _requester.request(_url, | 1725 var _response = _requester.request(_url, |
1687 "DELETE", | 1726 "DELETE", |
1688 body: _body, | 1727 body: _body, |
1689 queryParams: _queryParams, | 1728 queryParams: _queryParams, |
1690 uploadOptions: _uploadOptions, | 1729 uploadOptions: _uploadOptions, |
1691 uploadMedia: _uploadMedia, | 1730 uploadMedia: _uploadMedia, |
1692 downloadOptions: _downloadOptions); | 1731 downloadOptions: _downloadOptions); |
1693 return _response.then((data) => null); | 1732 return _response.then((data) => null); |
1694 } | 1733 } |
1695 | 1734 |
1696 /** | 1735 /** |
1697 * Gets a variant set by ID. | 1736 * Gets a variant by ID. |
1698 * | 1737 * |
1699 * Request parameters: | 1738 * Request parameters: |
1700 * | 1739 * |
1701 * [variantSetId] - Required. The ID of the variant set. | 1740 * [variantId] - The ID of the variant. |
1702 * | 1741 * |
1703 * Completes with a [VariantSet]. | 1742 * Completes with a [Variant]. |
1704 * | 1743 * |
1705 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1744 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1706 * error. | 1745 * error. |
1707 * | 1746 * |
1708 * If the used [http.Client] completes with an error when making a REST call, | 1747 * If the used [http.Client] completes with an error when making a REST call, |
1709 * this method will complete with the same error. | 1748 * this method will complete with the same error. |
1710 */ | 1749 */ |
1711 async.Future<VariantSet> get(core.String variantSetId) { | 1750 async.Future<Variant> get(core.String variantId) { |
1712 var _url = null; | 1751 var _url = null; |
1713 var _queryParams = new core.Map(); | 1752 var _queryParams = new core.Map(); |
1714 var _uploadMedia = null; | 1753 var _uploadMedia = null; |
1715 var _uploadOptions = null; | 1754 var _uploadOptions = null; |
1716 var _downloadOptions = common.DownloadOptions.Metadata; | 1755 var _downloadOptions = common.DownloadOptions.Metadata; |
1717 var _body = null; | 1756 var _body = null; |
1718 | 1757 |
| 1758 if (variantId == null) { |
| 1759 throw new core.ArgumentError("Parameter variantId is required."); |
| 1760 } |
| 1761 |
| 1762 |
| 1763 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); |
| 1764 |
| 1765 var _response = _requester.request(_url, |
| 1766 "GET", |
| 1767 body: _body, |
| 1768 queryParams: _queryParams, |
| 1769 uploadOptions: _uploadOptions, |
| 1770 uploadMedia: _uploadMedia, |
| 1771 downloadOptions: _downloadOptions); |
| 1772 return _response.then((data) => new Variant.fromJson(data)); |
| 1773 } |
| 1774 |
| 1775 /** |
| 1776 * Gets a list of variants matching the criteria. |
| 1777 * |
| 1778 * Implements GlobalAllianceApi.searchVariants. |
| 1779 * |
| 1780 * [request] - The metadata request object. |
| 1781 * |
| 1782 * Request parameters: |
| 1783 * |
| 1784 * Completes with a [SearchVariantsResponse]. |
| 1785 * |
| 1786 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1787 * error. |
| 1788 * |
| 1789 * If the used [http.Client] completes with an error when making a REST call, |
| 1790 * this method will complete with the same error. |
| 1791 */ |
| 1792 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { |
| 1793 var _url = null; |
| 1794 var _queryParams = new core.Map(); |
| 1795 var _uploadMedia = null; |
| 1796 var _uploadOptions = null; |
| 1797 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1798 var _body = null; |
| 1799 |
| 1800 if (request != null) { |
| 1801 _body = convert.JSON.encode((request).toJson()); |
| 1802 } |
| 1803 |
| 1804 |
| 1805 _url = 'variants/search'; |
| 1806 |
| 1807 var _response = _requester.request(_url, |
| 1808 "POST", |
| 1809 body: _body, |
| 1810 queryParams: _queryParams, |
| 1811 uploadOptions: _uploadOptions, |
| 1812 uploadMedia: _uploadMedia, |
| 1813 downloadOptions: _downloadOptions); |
| 1814 return _response.then((data) => new SearchVariantsResponse.fromJson(data)); |
| 1815 } |
| 1816 |
| 1817 /** |
| 1818 * Updates a variant's names and info fields. All other modifications are |
| 1819 * silently ignored. Returns the modified variant without its calls. |
| 1820 * |
| 1821 * [request] - The metadata request object. |
| 1822 * |
| 1823 * Request parameters: |
| 1824 * |
| 1825 * [variantId] - The ID of the variant to be updated. |
| 1826 * |
| 1827 * Completes with a [Variant]. |
| 1828 * |
| 1829 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1830 * error. |
| 1831 * |
| 1832 * If the used [http.Client] completes with an error when making a REST call, |
| 1833 * this method will complete with the same error. |
| 1834 */ |
| 1835 async.Future<Variant> update(Variant request, core.String variantId) { |
| 1836 var _url = null; |
| 1837 var _queryParams = new core.Map(); |
| 1838 var _uploadMedia = null; |
| 1839 var _uploadOptions = null; |
| 1840 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1841 var _body = null; |
| 1842 |
| 1843 if (request != null) { |
| 1844 _body = convert.JSON.encode((request).toJson()); |
| 1845 } |
| 1846 if (variantId == null) { |
| 1847 throw new core.ArgumentError("Parameter variantId is required."); |
| 1848 } |
| 1849 |
| 1850 |
| 1851 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); |
| 1852 |
| 1853 var _response = _requester.request(_url, |
| 1854 "PUT", |
| 1855 body: _body, |
| 1856 queryParams: _queryParams, |
| 1857 uploadOptions: _uploadOptions, |
| 1858 uploadMedia: _uploadMedia, |
| 1859 downloadOptions: _downloadOptions); |
| 1860 return _response.then((data) => new Variant.fromJson(data)); |
| 1861 } |
| 1862 |
| 1863 } |
| 1864 |
| 1865 |
| 1866 /** Not documented yet. */ |
| 1867 class VariantsetsResourceApi { |
| 1868 final common_internal.ApiRequester _requester; |
| 1869 |
| 1870 VariantsetsResourceApi(common_internal.ApiRequester client) : |
| 1871 _requester = client; |
| 1872 |
| 1873 /** |
| 1874 * Deletes the contents of a variant set. The variant set object is not |
| 1875 * deleted. |
| 1876 * |
| 1877 * Request parameters: |
| 1878 * |
| 1879 * [variantSetId] - The ID of the variant set to be deleted. |
| 1880 * |
| 1881 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1882 * error. |
| 1883 * |
| 1884 * If the used [http.Client] completes with an error when making a REST call, |
| 1885 * this method will complete with the same error. |
| 1886 */ |
| 1887 async.Future delete(core.String variantSetId) { |
| 1888 var _url = null; |
| 1889 var _queryParams = new core.Map(); |
| 1890 var _uploadMedia = null; |
| 1891 var _uploadOptions = null; |
| 1892 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1893 var _body = null; |
| 1894 |
1719 if (variantSetId == null) { | 1895 if (variantSetId == null) { |
1720 throw new core.ArgumentError("Parameter variantSetId is required."); | 1896 throw new core.ArgumentError("Parameter variantSetId is required."); |
1721 } | 1897 } |
1722 | 1898 |
| 1899 _downloadOptions = null; |
| 1900 |
| 1901 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); |
| 1902 |
| 1903 var _response = _requester.request(_url, |
| 1904 "DELETE", |
| 1905 body: _body, |
| 1906 queryParams: _queryParams, |
| 1907 uploadOptions: _uploadOptions, |
| 1908 uploadMedia: _uploadMedia, |
| 1909 downloadOptions: _downloadOptions); |
| 1910 return _response.then((data) => null); |
| 1911 } |
| 1912 |
| 1913 /** |
| 1914 * Exports variant set data to an external destination. |
| 1915 * |
| 1916 * [request] - The metadata request object. |
| 1917 * |
| 1918 * Request parameters: |
| 1919 * |
| 1920 * [variantSetId] - Required. The ID of the variant set that contains variant |
| 1921 * data which should be exported. The caller must have READ access to this |
| 1922 * variant set. |
| 1923 * |
| 1924 * Completes with a [ExportVariantSetResponse]. |
| 1925 * |
| 1926 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1927 * error. |
| 1928 * |
| 1929 * If the used [http.Client] completes with an error when making a REST call, |
| 1930 * this method will complete with the same error. |
| 1931 */ |
| 1932 async.Future<ExportVariantSetResponse> export(ExportVariantSetRequest request,
core.String variantSetId) { |
| 1933 var _url = null; |
| 1934 var _queryParams = new core.Map(); |
| 1935 var _uploadMedia = null; |
| 1936 var _uploadOptions = null; |
| 1937 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1938 var _body = null; |
| 1939 |
| 1940 if (request != null) { |
| 1941 _body = convert.JSON.encode((request).toJson()); |
| 1942 } |
| 1943 if (variantSetId == null) { |
| 1944 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1945 } |
| 1946 |
| 1947 |
| 1948 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
') + '/export'; |
| 1949 |
| 1950 var _response = _requester.request(_url, |
| 1951 "POST", |
| 1952 body: _body, |
| 1953 queryParams: _queryParams, |
| 1954 uploadOptions: _uploadOptions, |
| 1955 uploadMedia: _uploadMedia, |
| 1956 downloadOptions: _downloadOptions); |
| 1957 return _response.then((data) => new ExportVariantSetResponse.fromJson(data))
; |
| 1958 } |
| 1959 |
| 1960 /** |
| 1961 * Gets a variant set by ID. |
| 1962 * |
| 1963 * Request parameters: |
| 1964 * |
| 1965 * [variantSetId] - Required. The ID of the variant set. |
| 1966 * |
| 1967 * Completes with a [VariantSet]. |
| 1968 * |
| 1969 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1970 * error. |
| 1971 * |
| 1972 * If the used [http.Client] completes with an error when making a REST call, |
| 1973 * this method will complete with the same error. |
| 1974 */ |
| 1975 async.Future<VariantSet> get(core.String variantSetId) { |
| 1976 var _url = null; |
| 1977 var _queryParams = new core.Map(); |
| 1978 var _uploadMedia = null; |
| 1979 var _uploadOptions = null; |
| 1980 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1981 var _body = null; |
| 1982 |
| 1983 if (variantSetId == null) { |
| 1984 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1985 } |
| 1986 |
1723 | 1987 |
1724 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 1988 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); |
1725 | 1989 |
1726 var _response = _requester.request(_url, | 1990 var _response = _requester.request(_url, |
1727 "GET", | 1991 "GET", |
1728 body: _body, | 1992 body: _body, |
1729 queryParams: _queryParams, | 1993 queryParams: _queryParams, |
1730 uploadOptions: _uploadOptions, | 1994 uploadOptions: _uploadOptions, |
1731 uploadMedia: _uploadMedia, | 1995 uploadMedia: _uploadMedia, |
1732 downloadOptions: _downloadOptions); | 1996 downloadOptions: _downloadOptions); |
1733 return _response.then((data) => new VariantSet.fromJson(data)); | 1997 return _response.then((data) => new VariantSet.fromJson(data)); |
1734 } | 1998 } |
1735 | 1999 |
1736 /** | 2000 /** |
| 2001 * Creates variant data by asynchronously importing the provided information. |
| 2002 * |
| 2003 * The variants for import will be merged with any existing data and each |
| 2004 * other according to the behavior of mergeVariants. In particular, this means |
| 2005 * for merged VCF variants that have conflicting INFO fields, some data will |
| 2006 * be arbitrarily discarded. As a special case, for single-sample VCF files, |
| 2007 * QUAL and FILTER fields will be moved to the call level; these are sometimes |
| 2008 * interpreted in a call-specific context. Imported VCF headers are appended |
| 2009 * to the metadata already in a variant set. |
| 2010 * |
| 2011 * [request] - The metadata request object. |
| 2012 * |
| 2013 * Request parameters: |
| 2014 * |
| 2015 * [variantSetId] - Required. The variant set to which variant data should be |
| 2016 * imported. |
| 2017 * |
| 2018 * Completes with a [ImportVariantsResponse]. |
| 2019 * |
| 2020 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 2021 * error. |
| 2022 * |
| 2023 * If the used [http.Client] completes with an error when making a REST call, |
| 2024 * this method will complete with the same error. |
| 2025 */ |
| 2026 async.Future<ImportVariantsResponse> importVariants(ImportVariantsRequest requ
est, core.String variantSetId) { |
| 2027 var _url = null; |
| 2028 var _queryParams = new core.Map(); |
| 2029 var _uploadMedia = null; |
| 2030 var _uploadOptions = null; |
| 2031 var _downloadOptions = common.DownloadOptions.Metadata; |
| 2032 var _body = null; |
| 2033 |
| 2034 if (request != null) { |
| 2035 _body = convert.JSON.encode((request).toJson()); |
| 2036 } |
| 2037 if (variantSetId == null) { |
| 2038 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2039 } |
| 2040 |
| 2041 |
| 2042 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
') + '/importVariants'; |
| 2043 |
| 2044 var _response = _requester.request(_url, |
| 2045 "POST", |
| 2046 body: _body, |
| 2047 queryParams: _queryParams, |
| 2048 uploadOptions: _uploadOptions, |
| 2049 uploadMedia: _uploadMedia, |
| 2050 downloadOptions: _downloadOptions); |
| 2051 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); |
| 2052 } |
| 2053 |
| 2054 /** |
1737 * Merges the given variants with existing variants. Each variant will be | 2055 * Merges the given variants with existing variants. Each variant will be |
1738 * merged with an existing variant that matches its reference sequence, start, | 2056 * merged with an existing variant that matches its reference sequence, start, |
1739 * end, reference bases, and alternative bases. If no such variant exists, a | 2057 * end, reference bases, and alternative bases. If no such variant exists, a |
1740 * new one will be created. | 2058 * new one will be created. |
1741 * | 2059 * |
1742 * When variants are merged, the call information from the new variant is | 2060 * When variants are merged, the call information from the new variant is |
1743 * added to the existing variant, and other fields (such as key/value pairs) | 2061 * added to the existing variant, and other fields (such as key/value pairs) |
1744 * are discarded. | 2062 * are discarded. |
1745 * | 2063 * |
1746 * [request] - The metadata request object. | 2064 * [request] - The metadata request object. |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 body: _body, | 2097 body: _body, |
1780 queryParams: _queryParams, | 2098 queryParams: _queryParams, |
1781 uploadOptions: _uploadOptions, | 2099 uploadOptions: _uploadOptions, |
1782 uploadMedia: _uploadMedia, | 2100 uploadMedia: _uploadMedia, |
1783 downloadOptions: _downloadOptions); | 2101 downloadOptions: _downloadOptions); |
1784 return _response.then((data) => null); | 2102 return _response.then((data) => null); |
1785 } | 2103 } |
1786 | 2104 |
1787 /** | 2105 /** |
1788 * Updates a variant set's metadata. All other modifications are silently | 2106 * Updates a variant set's metadata. All other modifications are silently |
1789 * ignored. Returns the modified variant set. This method supports patch | 2107 * ignored. This method supports patch semantics. |
1790 * semantics. | |
1791 * | 2108 * |
1792 * [request] - The metadata request object. | 2109 * [request] - The metadata request object. |
1793 * | 2110 * |
1794 * Request parameters: | 2111 * Request parameters: |
1795 * | 2112 * |
1796 * [variantSetId] - The ID of the variant to be updated. | 2113 * [variantSetId] - The ID of the variant to be updated. |
1797 * | 2114 * |
1798 * Completes with a [VariantSet]. | 2115 * Completes with a [VariantSet]. |
1799 * | 2116 * |
1800 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2117 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
(...skipping 26 matching lines...) Expand all Loading... |
1827 queryParams: _queryParams, | 2144 queryParams: _queryParams, |
1828 uploadOptions: _uploadOptions, | 2145 uploadOptions: _uploadOptions, |
1829 uploadMedia: _uploadMedia, | 2146 uploadMedia: _uploadMedia, |
1830 downloadOptions: _downloadOptions); | 2147 downloadOptions: _downloadOptions); |
1831 return _response.then((data) => new VariantSet.fromJson(data)); | 2148 return _response.then((data) => new VariantSet.fromJson(data)); |
1832 } | 2149 } |
1833 | 2150 |
1834 /** | 2151 /** |
1835 * Returns a list of all variant sets matching search criteria. | 2152 * Returns a list of all variant sets matching search criteria. |
1836 * | 2153 * |
| 2154 * Implements GlobalAllianceApi.searchVariantSets. |
| 2155 * |
1837 * [request] - The metadata request object. | 2156 * [request] - The metadata request object. |
1838 * | 2157 * |
1839 * Request parameters: | 2158 * Request parameters: |
1840 * | 2159 * |
1841 * Completes with a [SearchVariantSetsResponse]. | 2160 * Completes with a [SearchVariantSetsResponse]. |
1842 * | 2161 * |
1843 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2162 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1844 * error. | 2163 * error. |
1845 * | 2164 * |
1846 * If the used [http.Client] completes with an error when making a REST call, | 2165 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 19 matching lines...) Expand all Loading... |
1866 body: _body, | 2185 body: _body, |
1867 queryParams: _queryParams, | 2186 queryParams: _queryParams, |
1868 uploadOptions: _uploadOptions, | 2187 uploadOptions: _uploadOptions, |
1869 uploadMedia: _uploadMedia, | 2188 uploadMedia: _uploadMedia, |
1870 downloadOptions: _downloadOptions); | 2189 downloadOptions: _downloadOptions); |
1871 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); | 2190 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); |
1872 } | 2191 } |
1873 | 2192 |
1874 /** | 2193 /** |
1875 * Updates a variant set's metadata. All other modifications are silently | 2194 * Updates a variant set's metadata. All other modifications are silently |
1876 * ignored. Returns the modified variant set. | 2195 * ignored. |
1877 * | 2196 * |
1878 * [request] - The metadata request object. | 2197 * [request] - The metadata request object. |
1879 * | 2198 * |
1880 * Request parameters: | 2199 * Request parameters: |
1881 * | 2200 * |
1882 * [variantSetId] - The ID of the variant to be updated. | 2201 * [variantSetId] - The ID of the variant to be updated. |
1883 * | 2202 * |
1884 * Completes with a [VariantSet]. | 2203 * Completes with a [VariantSet]. |
1885 * | 2204 * |
1886 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2205 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
(...skipping 27 matching lines...) Expand all Loading... |
1914 uploadOptions: _uploadOptions, | 2233 uploadOptions: _uploadOptions, |
1915 uploadMedia: _uploadMedia, | 2234 uploadMedia: _uploadMedia, |
1916 downloadOptions: _downloadOptions); | 2235 downloadOptions: _downloadOptions); |
1917 return _response.then((data) => new VariantSet.fromJson(data)); | 2236 return _response.then((data) => new VariantSet.fromJson(data)); |
1918 } | 2237 } |
1919 | 2238 |
1920 } | 2239 } |
1921 | 2240 |
1922 | 2241 |
1923 | 2242 |
1924 /** | 2243 /** The read group set align request. */ |
1925 * A beacon represents whether any variant call in a variant set has a specific | 2244 class AlignReadGroupSetsRequest { |
1926 * allele at a particular position. | 2245 /** |
1927 */ | 2246 * The BAM source files for alignment. Exactly one of readGroupSetIds, |
1928 class Beacon { | 2247 * bamSourceUris, interleavedFastqSource or pairedFastqSource must be |
1929 /** True if the allele exists on any variant call, false otherwise. */ | 2248 * provided. The caller must have READ permissions for these files. |
1930 core.bool exists; | 2249 */ |
| 2250 core.List<core.String> bamSourceUris; |
| 2251 |
| 2252 /** |
| 2253 * Required. The ID of the dataset the newly aligned read group sets will |
| 2254 * belong to. The caller must have WRITE permissions to this dataset. |
| 2255 */ |
| 2256 core.String datasetId; |
| 2257 |
| 2258 /** |
| 2259 * The interleaved FASTQ source files for alignment, where both members of |
| 2260 * each pair of reads are found on consecutive records within the same FASTQ |
| 2261 * file. Exactly one of readGroupSetIds, bamSourceUris, interleavedFastqSource |
| 2262 * or pairedFastqSource must be provided. |
| 2263 */ |
| 2264 InterleavedFastqSource interleavedFastqSource; |
| 2265 |
| 2266 /** |
| 2267 * The paired end FASTQ source files for alignment, where each member of a |
| 2268 * pair of reads are found in separate files. Exactly one of readGroupSetIds, |
| 2269 * bamSourceUris, interleavedFastqSource or pairedFastqSource must be |
| 2270 * provided. |
| 2271 */ |
| 2272 PairedFastqSource pairedFastqSource; |
| 2273 |
| 2274 /** |
| 2275 * The IDs of the read group sets which will be aligned. New read group sets |
| 2276 * will be generated to hold the aligned data, the originals will not be |
| 2277 * modified. The caller must have READ permissions for these read group sets. |
| 2278 * Exactly one of readGroupSetIds, bamSourceUris, interleavedFastqSource or |
| 2279 * pairedFastqSource must be provided. |
| 2280 */ |
| 2281 core.List<core.String> readGroupSetIds; |
1931 | 2282 |
1932 | 2283 |
1933 Beacon(); | 2284 AlignReadGroupSetsRequest(); |
1934 | 2285 |
1935 Beacon.fromJson(core.Map _json) { | 2286 AlignReadGroupSetsRequest.fromJson(core.Map _json) { |
1936 if (_json.containsKey("exists")) { | 2287 if (_json.containsKey("bamSourceUris")) { |
1937 exists = _json["exists"]; | 2288 bamSourceUris = _json["bamSourceUris"]; |
| 2289 } |
| 2290 if (_json.containsKey("datasetId")) { |
| 2291 datasetId = _json["datasetId"]; |
| 2292 } |
| 2293 if (_json.containsKey("interleavedFastqSource")) { |
| 2294 interleavedFastqSource = new InterleavedFastqSource.fromJson(_json["interl
eavedFastqSource"]); |
| 2295 } |
| 2296 if (_json.containsKey("pairedFastqSource")) { |
| 2297 pairedFastqSource = new PairedFastqSource.fromJson(_json["pairedFastqSourc
e"]); |
| 2298 } |
| 2299 if (_json.containsKey("readGroupSetIds")) { |
| 2300 readGroupSetIds = _json["readGroupSetIds"]; |
1938 } | 2301 } |
1939 } | 2302 } |
1940 | 2303 |
1941 core.Map toJson() { | 2304 core.Map toJson() { |
1942 var _json = new core.Map(); | 2305 var _json = new core.Map(); |
1943 if (exists != null) { | 2306 if (bamSourceUris != null) { |
1944 _json["exists"] = exists; | 2307 _json["bamSourceUris"] = bamSourceUris; |
| 2308 } |
| 2309 if (datasetId != null) { |
| 2310 _json["datasetId"] = datasetId; |
| 2311 } |
| 2312 if (interleavedFastqSource != null) { |
| 2313 _json["interleavedFastqSource"] = (interleavedFastqSource).toJson(); |
| 2314 } |
| 2315 if (pairedFastqSource != null) { |
| 2316 _json["pairedFastqSource"] = (pairedFastqSource).toJson(); |
| 2317 } |
| 2318 if (readGroupSetIds != null) { |
| 2319 _json["readGroupSetIds"] = readGroupSetIds; |
1945 } | 2320 } |
1946 return _json; | 2321 return _json; |
1947 } | 2322 } |
| 2323 } |
| 2324 |
| 2325 |
| 2326 /** The read group set align response. */ |
| 2327 class AlignReadGroupSetsResponse { |
| 2328 /** A job ID that can be used to get status information. */ |
| 2329 core.String jobId; |
| 2330 |
| 2331 |
| 2332 AlignReadGroupSetsResponse(); |
| 2333 |
| 2334 AlignReadGroupSetsResponse.fromJson(core.Map _json) { |
| 2335 if (_json.containsKey("jobId")) { |
| 2336 jobId = _json["jobId"]; |
| 2337 } |
| 2338 } |
| 2339 |
| 2340 core.Map toJson() { |
| 2341 var _json = new core.Map(); |
| 2342 if (jobId != null) { |
| 2343 _json["jobId"] = jobId; |
| 2344 } |
| 2345 return _json; |
| 2346 } |
1948 } | 2347 } |
1949 | 2348 |
1950 | 2349 |
1951 /** | 2350 /** |
1952 * A Call represents the determination of genotype with respect to a particular | 2351 * A call represents the determination of genotype with respect to a particular |
1953 * variant. It may include associated information such as quality and phasing. | 2352 * variant. It may include associated information such as quality and phasing. |
1954 * For example, a Call might assign a probability of 0.32 to the occurrence of a | 2353 * For example, a call might assign a probability of 0.32 to the occurrence of a |
1955 * SNP named rs1234 in a call set with the name NA12345. | 2354 * SNP named rs1234 in a call set with the name NA12345. |
1956 */ | 2355 */ |
1957 class Call { | 2356 class Call { |
1958 /** The ID of the call set this variant call belongs to. */ | 2357 /** The ID of the call set this variant call belongs to. */ |
1959 core.String callSetId; | 2358 core.String callSetId; |
1960 | 2359 |
1961 /** The name of the call set this variant call belongs to. */ | 2360 /** The name of the call set this variant call belongs to. */ |
1962 core.String callSetName; | 2361 core.String callSetName; |
1963 | 2362 |
1964 /** | 2363 /** |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 _json["info"] = info; | 2433 _json["info"] = info; |
2035 } | 2434 } |
2036 if (phaseset != null) { | 2435 if (phaseset != null) { |
2037 _json["phaseset"] = phaseset; | 2436 _json["phaseset"] = phaseset; |
2038 } | 2437 } |
2039 return _json; | 2438 return _json; |
2040 } | 2439 } |
2041 } | 2440 } |
2042 | 2441 |
2043 | 2442 |
2044 /** A CallSet is a collection of variant calls. It belongs to a variant set. */ | 2443 /** The read group set call request. */ |
| 2444 class CallReadGroupSetsRequest { |
| 2445 /** |
| 2446 * Required. The ID of the dataset the called variants will belong to. The |
| 2447 * caller must have WRITE permissions to this dataset. |
| 2448 */ |
| 2449 core.String datasetId; |
| 2450 |
| 2451 /** |
| 2452 * The IDs of the read group sets which will be called. The caller must have |
| 2453 * READ permissions for these read group sets. One of readGroupSetIds or |
| 2454 * sourceUris must be provided. |
| 2455 */ |
| 2456 core.List<core.String> readGroupSetIds; |
| 2457 |
| 2458 /** |
| 2459 * A list of URIs pointing at BAM files in Google Cloud Storage which will be |
| 2460 * called. FASTQ files are not allowed. The caller must have READ permissions |
| 2461 * for these files. One of readGroupSetIds or sourceUris must be provided. |
| 2462 */ |
| 2463 core.List<core.String> sourceUris; |
| 2464 |
| 2465 |
| 2466 CallReadGroupSetsRequest(); |
| 2467 |
| 2468 CallReadGroupSetsRequest.fromJson(core.Map _json) { |
| 2469 if (_json.containsKey("datasetId")) { |
| 2470 datasetId = _json["datasetId"]; |
| 2471 } |
| 2472 if (_json.containsKey("readGroupSetIds")) { |
| 2473 readGroupSetIds = _json["readGroupSetIds"]; |
| 2474 } |
| 2475 if (_json.containsKey("sourceUris")) { |
| 2476 sourceUris = _json["sourceUris"]; |
| 2477 } |
| 2478 } |
| 2479 |
| 2480 core.Map toJson() { |
| 2481 var _json = new core.Map(); |
| 2482 if (datasetId != null) { |
| 2483 _json["datasetId"] = datasetId; |
| 2484 } |
| 2485 if (readGroupSetIds != null) { |
| 2486 _json["readGroupSetIds"] = readGroupSetIds; |
| 2487 } |
| 2488 if (sourceUris != null) { |
| 2489 _json["sourceUris"] = sourceUris; |
| 2490 } |
| 2491 return _json; |
| 2492 } |
| 2493 } |
| 2494 |
| 2495 |
| 2496 /** The read group set call response. */ |
| 2497 class CallReadGroupSetsResponse { |
| 2498 /** A job ID that can be used to get status information. */ |
| 2499 core.String jobId; |
| 2500 |
| 2501 |
| 2502 CallReadGroupSetsResponse(); |
| 2503 |
| 2504 CallReadGroupSetsResponse.fromJson(core.Map _json) { |
| 2505 if (_json.containsKey("jobId")) { |
| 2506 jobId = _json["jobId"]; |
| 2507 } |
| 2508 } |
| 2509 |
| 2510 core.Map toJson() { |
| 2511 var _json = new core.Map(); |
| 2512 if (jobId != null) { |
| 2513 _json["jobId"] = jobId; |
| 2514 } |
| 2515 return _json; |
| 2516 } |
| 2517 } |
| 2518 |
| 2519 |
| 2520 /** |
| 2521 * A call set is a collection of variant calls, typically for one sample. It |
| 2522 * belongs to a variant set. |
| 2523 */ |
2045 class CallSet { | 2524 class CallSet { |
2046 /** The date this call set was created in milliseconds from the epoch. */ | 2525 /** The date this call set was created in milliseconds from the epoch. */ |
2047 core.String created; | 2526 core.String created; |
2048 | 2527 |
2049 /** The Google generated ID of the call set, immutable. */ | 2528 /** The Google generated ID of the call set, immutable. */ |
2050 core.String id; | 2529 core.String id; |
2051 | 2530 |
2052 /** A map of additional callset information. */ | 2531 /** A map of additional call set information. */ |
2053 core.Map<core.String, core.List<core.String>> info; | 2532 core.Map<core.String, core.List<core.String>> info; |
2054 | 2533 |
2055 /** The callset name. */ | 2534 /** The call set name. */ |
2056 core.String name; | 2535 core.String name; |
2057 | 2536 |
2058 /** The sample ID this call set corresponds to. */ | 2537 /** The sample ID this call set corresponds to. */ |
2059 core.String sampleId; | 2538 core.String sampleId; |
2060 | 2539 |
2061 /** The IDs of the variant sets this call set belongs to. */ | 2540 /** The IDs of the variant sets this call set belongs to. */ |
2062 core.List<core.String> variantSetIds; | 2541 core.List<core.String> variantSetIds; |
2063 | 2542 |
2064 | 2543 |
2065 CallSet(); | 2544 CallSet(); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2103 _json["sampleId"] = sampleId; | 2582 _json["sampleId"] = sampleId; |
2104 } | 2583 } |
2105 if (variantSetIds != null) { | 2584 if (variantSetIds != null) { |
2106 _json["variantSetIds"] = variantSetIds; | 2585 _json["variantSetIds"] = variantSetIds; |
2107 } | 2586 } |
2108 return _json; | 2587 return _json; |
2109 } | 2588 } |
2110 } | 2589 } |
2111 | 2590 |
2112 | 2591 |
| 2592 /** A single CIGAR operation. */ |
| 2593 class CigarUnit { |
| 2594 /** |
| 2595 * Not documented yet. |
| 2596 * Possible string values are: |
| 2597 * - "ALIGNMENT_MATCH" |
| 2598 * - "CLIP_HARD" |
| 2599 * - "CLIP_SOFT" |
| 2600 * - "DELETE" |
| 2601 * - "INSERT" |
| 2602 * - "PAD" |
| 2603 * - "SEQUENCE_MATCH" |
| 2604 * - "SEQUENCE_MISMATCH" |
| 2605 * - "SKIP" |
| 2606 */ |
| 2607 core.String operation; |
| 2608 |
| 2609 /** The number of bases that the operation runs for. Required. */ |
| 2610 core.String operationLength; |
| 2611 |
| 2612 /** |
| 2613 * referenceSequence is only used at mismatches (SEQUENCE_MISMATCH) and |
| 2614 * deletions (DELETE). Filling this field replaces SAM's MD tag. If the |
| 2615 * relevant information is not available, this field is unset. |
| 2616 */ |
| 2617 core.String referenceSequence; |
| 2618 |
| 2619 |
| 2620 CigarUnit(); |
| 2621 |
| 2622 CigarUnit.fromJson(core.Map _json) { |
| 2623 if (_json.containsKey("operation")) { |
| 2624 operation = _json["operation"]; |
| 2625 } |
| 2626 if (_json.containsKey("operationLength")) { |
| 2627 operationLength = _json["operationLength"]; |
| 2628 } |
| 2629 if (_json.containsKey("referenceSequence")) { |
| 2630 referenceSequence = _json["referenceSequence"]; |
| 2631 } |
| 2632 } |
| 2633 |
| 2634 core.Map toJson() { |
| 2635 var _json = new core.Map(); |
| 2636 if (operation != null) { |
| 2637 _json["operation"] = operation; |
| 2638 } |
| 2639 if (operationLength != null) { |
| 2640 _json["operationLength"] = operationLength; |
| 2641 } |
| 2642 if (referenceSequence != null) { |
| 2643 _json["referenceSequence"] = referenceSequence; |
| 2644 } |
| 2645 return _json; |
| 2646 } |
| 2647 } |
| 2648 |
| 2649 |
2113 /** | 2650 /** |
2114 * A bucket over which read coverage has been precomputed. A bucket corresponds | 2651 * A bucket over which read coverage has been precomputed. A bucket corresponds |
2115 * to a specific range of the reference sequence. | 2652 * to a specific range of the reference sequence. |
2116 */ | 2653 */ |
2117 class CoverageBucket { | 2654 class CoverageBucket { |
2118 /** | 2655 /** |
2119 * The average number of reads which are aligned to each individual reference | 2656 * The average number of reads which are aligned to each individual reference |
2120 * base in this bucket. | 2657 * base in this bucket. |
2121 */ | 2658 */ |
2122 core.double meanCoverage; | 2659 core.double meanCoverage; |
2123 | 2660 |
2124 /** The genomic coordinate range spanned by this bucket. */ | 2661 /** The genomic coordinate range spanned by this bucket. */ |
2125 GenomicRange range; | 2662 Range range; |
2126 | 2663 |
2127 | 2664 |
2128 CoverageBucket(); | 2665 CoverageBucket(); |
2129 | 2666 |
2130 CoverageBucket.fromJson(core.Map _json) { | 2667 CoverageBucket.fromJson(core.Map _json) { |
2131 if (_json.containsKey("meanCoverage")) { | 2668 if (_json.containsKey("meanCoverage")) { |
2132 meanCoverage = _json["meanCoverage"]; | 2669 meanCoverage = _json["meanCoverage"]; |
2133 } | 2670 } |
2134 if (_json.containsKey("range")) { | 2671 if (_json.containsKey("range")) { |
2135 range = new GenomicRange.fromJson(_json["range"]); | 2672 range = new Range.fromJson(_json["range"]); |
2136 } | 2673 } |
2137 } | 2674 } |
2138 | 2675 |
2139 core.Map toJson() { | 2676 core.Map toJson() { |
2140 var _json = new core.Map(); | 2677 var _json = new core.Map(); |
2141 if (meanCoverage != null) { | 2678 if (meanCoverage != null) { |
2142 _json["meanCoverage"] = meanCoverage; | 2679 _json["meanCoverage"] = meanCoverage; |
2143 } | 2680 } |
2144 if (range != null) { | 2681 if (range != null) { |
2145 _json["range"] = (range).toJson(); | 2682 _json["range"] = (range).toJson(); |
(...skipping 13 matching lines...) Expand all Loading... |
2159 * is not public, it inherits viewing permissions from its project. | 2696 * is not public, it inherits viewing permissions from its project. |
2160 */ | 2697 */ |
2161 core.bool isPublic; | 2698 core.bool isPublic; |
2162 | 2699 |
2163 /** The dataset name. */ | 2700 /** The dataset name. */ |
2164 core.String name; | 2701 core.String name; |
2165 | 2702 |
2166 /** | 2703 /** |
2167 * The Google Developers Console project number that this dataset belongs to. | 2704 * The Google Developers Console project number that this dataset belongs to. |
2168 */ | 2705 */ |
2169 core.String projectId; | 2706 core.String projectNumber; |
2170 | 2707 |
2171 | 2708 |
2172 Dataset(); | 2709 Dataset(); |
2173 | 2710 |
2174 Dataset.fromJson(core.Map _json) { | 2711 Dataset.fromJson(core.Map _json) { |
2175 if (_json.containsKey("id")) { | 2712 if (_json.containsKey("id")) { |
2176 id = _json["id"]; | 2713 id = _json["id"]; |
2177 } | 2714 } |
2178 if (_json.containsKey("isPublic")) { | 2715 if (_json.containsKey("isPublic")) { |
2179 isPublic = _json["isPublic"]; | 2716 isPublic = _json["isPublic"]; |
2180 } | 2717 } |
2181 if (_json.containsKey("name")) { | 2718 if (_json.containsKey("name")) { |
2182 name = _json["name"]; | 2719 name = _json["name"]; |
2183 } | 2720 } |
2184 if (_json.containsKey("projectId")) { | 2721 if (_json.containsKey("projectNumber")) { |
2185 projectId = _json["projectId"]; | 2722 projectNumber = _json["projectNumber"]; |
2186 } | 2723 } |
2187 } | 2724 } |
2188 | 2725 |
2189 core.Map toJson() { | 2726 core.Map toJson() { |
2190 var _json = new core.Map(); | 2727 var _json = new core.Map(); |
2191 if (id != null) { | 2728 if (id != null) { |
2192 _json["id"] = id; | 2729 _json["id"] = id; |
2193 } | 2730 } |
2194 if (isPublic != null) { | 2731 if (isPublic != null) { |
2195 _json["isPublic"] = isPublic; | 2732 _json["isPublic"] = isPublic; |
2196 } | 2733 } |
2197 if (name != null) { | 2734 if (name != null) { |
2198 _json["name"] = name; | 2735 _json["name"] = name; |
2199 } | 2736 } |
2200 if (projectId != null) { | 2737 if (projectNumber != null) { |
2201 _json["projectId"] = projectId; | 2738 _json["projectNumber"] = projectNumber; |
2202 } | 2739 } |
2203 return _json; | 2740 return _json; |
2204 } | 2741 } |
2205 } | 2742 } |
2206 | 2743 |
2207 | 2744 |
2208 /** The job creation request. */ | 2745 /** The job creation request. */ |
2209 class ExperimentalCreateJobRequest { | 2746 class ExperimentalCreateJobRequest { |
2210 /** | 2747 /** |
2211 * Specifies whether or not to run the alignment pipeline. At least one of | 2748 * Specifies whether or not to run the alignment pipeline. Either align or |
2212 * align or callVariants must be provided. | 2749 * callVariants must be set. |
2213 */ | 2750 */ |
2214 core.bool align; | 2751 core.bool align; |
2215 | 2752 |
2216 /** | 2753 /** |
2217 * Specifies whether or not to run the variant calling pipeline. If specified, | 2754 * Specifies whether or not to run the variant calling pipeline. Either align |
2218 * alignment will be performed first and the aligned BAMs will passed as input | 2755 * or callVariants must be set. |
2219 * to the variant caller. At least one of align or callVariants must be | |
2220 * provided. | |
2221 */ | 2756 */ |
2222 core.bool callVariants; | 2757 core.bool callVariants; |
2223 | 2758 |
2224 /** | 2759 /** |
2225 * Specifies where to copy the results of certain pipelines. This should be in | 2760 * Specifies where to copy the results of certain pipelines. This should be in |
2226 * the form of gs://bucket/path. | 2761 * the form of gs://bucket/path. |
2227 */ | 2762 */ |
2228 core.String gcsOutputPath; | 2763 core.String gcsOutputPath; |
2229 | 2764 |
2230 /** | 2765 /** |
2231 * A list of Google Cloud Storage URIs of paired end .fastq files to operate | 2766 * A list of Google Cloud Storage URIs of paired end .fastq files to operate |
2232 * upon. If specified, this represents the second file of each paired .fastq | 2767 * upon. If specified, this represents the second file of each paired .fastq |
2233 * file. The first file of each pair should be specified in sourceUris. | 2768 * file. The first file of each pair should be specified in sourceUris. |
2234 */ | 2769 */ |
2235 core.List<core.String> pairedSourceUris; | 2770 core.List<core.String> pairedSourceUris; |
2236 | 2771 |
2237 /** | 2772 /** |
2238 * Required. The Google Cloud Project ID with which to associate the request. | 2773 * Required. The Google Cloud Project ID with which to associate the request. |
2239 */ | 2774 */ |
2240 core.String projectId; | 2775 core.String projectNumber; |
2241 | 2776 |
2242 /** | 2777 /** |
2243 * A list of Google Cloud Storage URIs of data files to operate upon. These | 2778 * A list of Google Cloud Storage URIs of data files to operate upon. These |
2244 * can be .bam, interleaved .fastq, or paired .fastq. If specifying paired | 2779 * can be .bam, interleaved .fastq, or paired .fastq. If specifying paired |
2245 * .fastq files, the first of each pair of files should be listed here, and | 2780 * .fastq files, the first of each pair of files should be listed here, and |
2246 * the second of each pair should be listed in pairedSourceUris. | 2781 * the second of each pair should be listed in pairedSourceUris. |
2247 */ | 2782 */ |
2248 core.List<core.String> sourceUris; | 2783 core.List<core.String> sourceUris; |
2249 | 2784 |
2250 | 2785 |
2251 ExperimentalCreateJobRequest(); | 2786 ExperimentalCreateJobRequest(); |
2252 | 2787 |
2253 ExperimentalCreateJobRequest.fromJson(core.Map _json) { | 2788 ExperimentalCreateJobRequest.fromJson(core.Map _json) { |
2254 if (_json.containsKey("align")) { | 2789 if (_json.containsKey("align")) { |
2255 align = _json["align"]; | 2790 align = _json["align"]; |
2256 } | 2791 } |
2257 if (_json.containsKey("callVariants")) { | 2792 if (_json.containsKey("callVariants")) { |
2258 callVariants = _json["callVariants"]; | 2793 callVariants = _json["callVariants"]; |
2259 } | 2794 } |
2260 if (_json.containsKey("gcsOutputPath")) { | 2795 if (_json.containsKey("gcsOutputPath")) { |
2261 gcsOutputPath = _json["gcsOutputPath"]; | 2796 gcsOutputPath = _json["gcsOutputPath"]; |
2262 } | 2797 } |
2263 if (_json.containsKey("pairedSourceUris")) { | 2798 if (_json.containsKey("pairedSourceUris")) { |
2264 pairedSourceUris = _json["pairedSourceUris"]; | 2799 pairedSourceUris = _json["pairedSourceUris"]; |
2265 } | 2800 } |
2266 if (_json.containsKey("projectId")) { | 2801 if (_json.containsKey("projectNumber")) { |
2267 projectId = _json["projectId"]; | 2802 projectNumber = _json["projectNumber"]; |
2268 } | 2803 } |
2269 if (_json.containsKey("sourceUris")) { | 2804 if (_json.containsKey("sourceUris")) { |
2270 sourceUris = _json["sourceUris"]; | 2805 sourceUris = _json["sourceUris"]; |
2271 } | 2806 } |
2272 } | 2807 } |
2273 | 2808 |
2274 core.Map toJson() { | 2809 core.Map toJson() { |
2275 var _json = new core.Map(); | 2810 var _json = new core.Map(); |
2276 if (align != null) { | 2811 if (align != null) { |
2277 _json["align"] = align; | 2812 _json["align"] = align; |
2278 } | 2813 } |
2279 if (callVariants != null) { | 2814 if (callVariants != null) { |
2280 _json["callVariants"] = callVariants; | 2815 _json["callVariants"] = callVariants; |
2281 } | 2816 } |
2282 if (gcsOutputPath != null) { | 2817 if (gcsOutputPath != null) { |
2283 _json["gcsOutputPath"] = gcsOutputPath; | 2818 _json["gcsOutputPath"] = gcsOutputPath; |
2284 } | 2819 } |
2285 if (pairedSourceUris != null) { | 2820 if (pairedSourceUris != null) { |
2286 _json["pairedSourceUris"] = pairedSourceUris; | 2821 _json["pairedSourceUris"] = pairedSourceUris; |
2287 } | 2822 } |
2288 if (projectId != null) { | 2823 if (projectNumber != null) { |
2289 _json["projectId"] = projectId; | 2824 _json["projectNumber"] = projectNumber; |
2290 } | 2825 } |
2291 if (sourceUris != null) { | 2826 if (sourceUris != null) { |
2292 _json["sourceUris"] = sourceUris; | 2827 _json["sourceUris"] = sourceUris; |
2293 } | 2828 } |
2294 return _json; | 2829 return _json; |
2295 } | 2830 } |
2296 } | 2831 } |
2297 | 2832 |
2298 | 2833 |
2299 /** The job creation response. */ | 2834 /** The job creation response. */ |
(...skipping 13 matching lines...) Expand all Loading... |
2313 core.Map toJson() { | 2848 core.Map toJson() { |
2314 var _json = new core.Map(); | 2849 var _json = new core.Map(); |
2315 if (jobId != null) { | 2850 if (jobId != null) { |
2316 _json["jobId"] = jobId; | 2851 _json["jobId"] = jobId; |
2317 } | 2852 } |
2318 return _json; | 2853 return _json; |
2319 } | 2854 } |
2320 } | 2855 } |
2321 | 2856 |
2322 | 2857 |
2323 /** The readset export request. */ | 2858 /** The read group set export request. */ |
2324 class ExportReadsetsRequest { | 2859 class ExportReadGroupSetsRequest { |
2325 /** | 2860 /** |
2326 * A Google Cloud Storage URI where the exported BAM file will be created. The | 2861 * A Google Cloud Storage URI where the exported BAM file will be created. The |
2327 * currently authenticated user must have write access to the new file | 2862 * currently authenticated user must have write access to the new file |
2328 * location. An error will be returned if the URI already contains data. | 2863 * location. An error will be returned if the URI already contains data. |
2329 */ | 2864 */ |
2330 core.String exportUri; | 2865 core.String exportUri; |
2331 | 2866 |
2332 /** The Google Developers Console project number that owns this export. */ | 2867 /** The Google Developers Console project number that owns this export. */ |
2333 core.String projectId; | 2868 core.String projectNumber; |
2334 | 2869 |
2335 /** The IDs of the readsets to export. */ | 2870 /** The IDs of the read group sets to export. */ |
2336 core.List<core.String> readsetIds; | 2871 core.List<core.String> readGroupSetIds; |
2337 | 2872 |
2338 /** | 2873 /** |
2339 * The reference names to export. If this is not specified, all reference | 2874 * The reference names to export. If this is not specified, all reference |
2340 * sequences, including unmapped reads, are exported. Use * to export only | 2875 * sequences, including unmapped reads, are exported. Use * to export only |
2341 * unmapped reads. | 2876 * unmapped reads. |
2342 */ | 2877 */ |
2343 core.List<core.String> referenceNames; | 2878 core.List<core.String> referenceNames; |
2344 | 2879 |
2345 | 2880 |
2346 ExportReadsetsRequest(); | 2881 ExportReadGroupSetsRequest(); |
2347 | 2882 |
2348 ExportReadsetsRequest.fromJson(core.Map _json) { | 2883 ExportReadGroupSetsRequest.fromJson(core.Map _json) { |
2349 if (_json.containsKey("exportUri")) { | 2884 if (_json.containsKey("exportUri")) { |
2350 exportUri = _json["exportUri"]; | 2885 exportUri = _json["exportUri"]; |
2351 } | 2886 } |
2352 if (_json.containsKey("projectId")) { | 2887 if (_json.containsKey("projectNumber")) { |
2353 projectId = _json["projectId"]; | 2888 projectNumber = _json["projectNumber"]; |
2354 } | 2889 } |
2355 if (_json.containsKey("readsetIds")) { | 2890 if (_json.containsKey("readGroupSetIds")) { |
2356 readsetIds = _json["readsetIds"]; | 2891 readGroupSetIds = _json["readGroupSetIds"]; |
2357 } | 2892 } |
2358 if (_json.containsKey("referenceNames")) { | 2893 if (_json.containsKey("referenceNames")) { |
2359 referenceNames = _json["referenceNames"]; | 2894 referenceNames = _json["referenceNames"]; |
2360 } | 2895 } |
2361 } | 2896 } |
2362 | 2897 |
2363 core.Map toJson() { | 2898 core.Map toJson() { |
2364 var _json = new core.Map(); | 2899 var _json = new core.Map(); |
2365 if (exportUri != null) { | 2900 if (exportUri != null) { |
2366 _json["exportUri"] = exportUri; | 2901 _json["exportUri"] = exportUri; |
2367 } | 2902 } |
2368 if (projectId != null) { | 2903 if (projectNumber != null) { |
2369 _json["projectId"] = projectId; | 2904 _json["projectNumber"] = projectNumber; |
2370 } | 2905 } |
2371 if (readsetIds != null) { | 2906 if (readGroupSetIds != null) { |
2372 _json["readsetIds"] = readsetIds; | 2907 _json["readGroupSetIds"] = readGroupSetIds; |
2373 } | 2908 } |
2374 if (referenceNames != null) { | 2909 if (referenceNames != null) { |
2375 _json["referenceNames"] = referenceNames; | 2910 _json["referenceNames"] = referenceNames; |
2376 } | 2911 } |
2377 return _json; | 2912 return _json; |
2378 } | 2913 } |
2379 } | 2914 } |
2380 | 2915 |
2381 | 2916 |
2382 /** The readset export response. */ | 2917 /** The read group set export response. */ |
2383 class ExportReadsetsResponse { | 2918 class ExportReadGroupSetsResponse { |
2384 /** A job ID that can be used to get status information. */ | 2919 /** A job ID that can be used to get status information. */ |
2385 core.String jobId; | 2920 core.String jobId; |
2386 | 2921 |
2387 | 2922 |
2388 ExportReadsetsResponse(); | 2923 ExportReadGroupSetsResponse(); |
2389 | 2924 |
2390 ExportReadsetsResponse.fromJson(core.Map _json) { | 2925 ExportReadGroupSetsResponse.fromJson(core.Map _json) { |
2391 if (_json.containsKey("jobId")) { | 2926 if (_json.containsKey("jobId")) { |
2392 jobId = _json["jobId"]; | 2927 jobId = _json["jobId"]; |
2393 } | 2928 } |
2394 } | 2929 } |
2395 | 2930 |
2396 core.Map toJson() { | 2931 core.Map toJson() { |
2397 var _json = new core.Map(); | 2932 var _json = new core.Map(); |
2398 if (jobId != null) { | 2933 if (jobId != null) { |
2399 _json["jobId"] = jobId; | 2934 _json["jobId"] = jobId; |
2400 } | 2935 } |
2401 return _json; | 2936 return _json; |
2402 } | 2937 } |
2403 } | 2938 } |
2404 | 2939 |
2405 | 2940 |
2406 /** The variant data export request. */ | 2941 /** The variant data export request. */ |
2407 class ExportVariantsRequest { | 2942 class ExportVariantSetRequest { |
2408 /** | 2943 /** |
2409 * The BigQuery dataset to export data to. Note that this is distinct from the | 2944 * The BigQuery dataset to export data to. Note that this is distinct from the |
2410 * Genomics concept of "dataset". | 2945 * Genomics concept of "dataset". |
2411 */ | 2946 */ |
2412 core.String bigqueryDataset; | 2947 core.String bigqueryDataset; |
2413 | 2948 |
2414 /** | 2949 /** |
2415 * The BigQuery table to export data to. If the table doesn't exist, it will | 2950 * The BigQuery table to export data to. If the table doesn't exist, it will |
2416 * be created. If it already exists, it will be overwritten. | 2951 * be created. If it already exists, it will be overwritten. |
2417 */ | 2952 */ |
2418 core.String bigqueryTable; | 2953 core.String bigqueryTable; |
2419 | 2954 |
2420 /** | 2955 /** |
2421 * If provided, only variant call information from the specified call sets | 2956 * If provided, only variant call information from the specified call sets |
2422 * will be exported. By default all variant calls are exported. | 2957 * will be exported. By default all variant calls are exported. |
2423 */ | 2958 */ |
2424 core.List<core.String> callSetIds; | 2959 core.List<core.String> callSetIds; |
2425 | 2960 |
2426 /** | 2961 /** |
2427 * The format for the exported data. | 2962 * The format for the exported data. |
2428 * Possible string values are: | 2963 * Possible string values are: |
2429 * - "bigquery" | 2964 * - "BIGQUERY" |
2430 */ | 2965 */ |
2431 core.String format; | 2966 core.String format; |
2432 | 2967 |
2433 /** | 2968 /** |
2434 * The Google Cloud project number that owns the destination BigQuery dataset. | 2969 * The Google Cloud project number that owns the destination BigQuery dataset. |
2435 * The caller must have WRITE access to this project. This project will also | 2970 * The caller must have WRITE access to this project. This project will also |
2436 * own the resulting export job. | 2971 * own the resulting export job. |
2437 */ | 2972 */ |
2438 core.String projectId; | 2973 core.String projectNumber; |
2439 | |
2440 /** | |
2441 * Required. The ID of the variant set that contains variant data which should | |
2442 * be exported. The caller must have READ access to this variant set. | |
2443 */ | |
2444 core.String variantSetId; | |
2445 | 2974 |
2446 | 2975 |
2447 ExportVariantsRequest(); | 2976 ExportVariantSetRequest(); |
2448 | 2977 |
2449 ExportVariantsRequest.fromJson(core.Map _json) { | 2978 ExportVariantSetRequest.fromJson(core.Map _json) { |
2450 if (_json.containsKey("bigqueryDataset")) { | 2979 if (_json.containsKey("bigqueryDataset")) { |
2451 bigqueryDataset = _json["bigqueryDataset"]; | 2980 bigqueryDataset = _json["bigqueryDataset"]; |
2452 } | 2981 } |
2453 if (_json.containsKey("bigqueryTable")) { | 2982 if (_json.containsKey("bigqueryTable")) { |
2454 bigqueryTable = _json["bigqueryTable"]; | 2983 bigqueryTable = _json["bigqueryTable"]; |
2455 } | 2984 } |
2456 if (_json.containsKey("callSetIds")) { | 2985 if (_json.containsKey("callSetIds")) { |
2457 callSetIds = _json["callSetIds"]; | 2986 callSetIds = _json["callSetIds"]; |
2458 } | 2987 } |
2459 if (_json.containsKey("format")) { | 2988 if (_json.containsKey("format")) { |
2460 format = _json["format"]; | 2989 format = _json["format"]; |
2461 } | 2990 } |
2462 if (_json.containsKey("projectId")) { | 2991 if (_json.containsKey("projectNumber")) { |
2463 projectId = _json["projectId"]; | 2992 projectNumber = _json["projectNumber"]; |
2464 } | |
2465 if (_json.containsKey("variantSetId")) { | |
2466 variantSetId = _json["variantSetId"]; | |
2467 } | 2993 } |
2468 } | 2994 } |
2469 | 2995 |
2470 core.Map toJson() { | 2996 core.Map toJson() { |
2471 var _json = new core.Map(); | 2997 var _json = new core.Map(); |
2472 if (bigqueryDataset != null) { | 2998 if (bigqueryDataset != null) { |
2473 _json["bigqueryDataset"] = bigqueryDataset; | 2999 _json["bigqueryDataset"] = bigqueryDataset; |
2474 } | 3000 } |
2475 if (bigqueryTable != null) { | 3001 if (bigqueryTable != null) { |
2476 _json["bigqueryTable"] = bigqueryTable; | 3002 _json["bigqueryTable"] = bigqueryTable; |
2477 } | 3003 } |
2478 if (callSetIds != null) { | 3004 if (callSetIds != null) { |
2479 _json["callSetIds"] = callSetIds; | 3005 _json["callSetIds"] = callSetIds; |
2480 } | 3006 } |
2481 if (format != null) { | 3007 if (format != null) { |
2482 _json["format"] = format; | 3008 _json["format"] = format; |
2483 } | 3009 } |
2484 if (projectId != null) { | 3010 if (projectNumber != null) { |
2485 _json["projectId"] = projectId; | 3011 _json["projectNumber"] = projectNumber; |
2486 } | |
2487 if (variantSetId != null) { | |
2488 _json["variantSetId"] = variantSetId; | |
2489 } | 3012 } |
2490 return _json; | 3013 return _json; |
2491 } | 3014 } |
2492 } | 3015 } |
2493 | 3016 |
2494 | 3017 |
2495 /** The variant data export response. */ | 3018 /** The variant data export response. */ |
2496 class ExportVariantsResponse { | 3019 class ExportVariantSetResponse { |
2497 /** A job ID that can be used to get status information. */ | 3020 /** A job ID that can be used to get status information. */ |
2498 core.String jobId; | 3021 core.String jobId; |
2499 | 3022 |
2500 | 3023 |
2501 ExportVariantsResponse(); | 3024 ExportVariantSetResponse(); |
2502 | 3025 |
2503 ExportVariantsResponse.fromJson(core.Map _json) { | 3026 ExportVariantSetResponse.fromJson(core.Map _json) { |
2504 if (_json.containsKey("jobId")) { | 3027 if (_json.containsKey("jobId")) { |
2505 jobId = _json["jobId"]; | 3028 jobId = _json["jobId"]; |
2506 } | 3029 } |
2507 } | 3030 } |
2508 | 3031 |
2509 core.Map toJson() { | 3032 core.Map toJson() { |
2510 var _json = new core.Map(); | 3033 var _json = new core.Map(); |
2511 if (jobId != null) { | 3034 if (jobId != null) { |
2512 _json["jobId"] = jobId; | 3035 _json["jobId"] = jobId; |
2513 } | 3036 } |
2514 return _json; | 3037 return _json; |
2515 } | 3038 } |
2516 } | 3039 } |
2517 | 3040 |
2518 | 3041 |
2519 /** | 3042 /** Not documented yet. */ |
2520 * An inclusive, exclusive genomic coordinate range over a reference sequence. | 3043 class FastqMetadata { |
2521 */ | 3044 /** Optionally specifies the library name for alignment from FASTQ. */ |
2522 class GenomicRange { | 3045 core.String libraryName; |
2523 /** | |
2524 * The end position of the range on the reference, 1-based exclusive. If | |
2525 * specified, sequenceName must also be specified. | |
2526 */ | |
2527 core.String sequenceEnd; | |
2528 | |
2529 /** The reference sequence name, for example chr1, 1, or chrX. */ | |
2530 core.String sequenceName; | |
2531 | 3046 |
2532 /** | 3047 /** |
2533 * The start position of the range on the reference, 1-based inclusive. If | 3048 * Optionally specifies the platform name for alignment from FASTQ. For |
2534 * specified, sequenceName must also be specified. | 3049 * example: CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, PACBIO. |
2535 */ | 3050 */ |
2536 core.String sequenceStart; | 3051 core.String platformName; |
| 3052 |
| 3053 /** |
| 3054 * Optionally specifies the platform unit for alignment from FASTQ. For |
| 3055 * example: flowcell-barcode.lane for Illumina or slide for SOLID. |
| 3056 */ |
| 3057 core.String platformUnit; |
| 3058 |
| 3059 /** Optionally specifies the read group name for alignment from FASTQ. */ |
| 3060 core.String readGroupName; |
| 3061 |
| 3062 /** Optionally specifies the sample name for alignment from FASTQ. */ |
| 3063 core.String sampleName; |
2537 | 3064 |
2538 | 3065 |
2539 GenomicRange(); | 3066 FastqMetadata(); |
2540 | 3067 |
2541 GenomicRange.fromJson(core.Map _json) { | 3068 FastqMetadata.fromJson(core.Map _json) { |
2542 if (_json.containsKey("sequenceEnd")) { | 3069 if (_json.containsKey("libraryName")) { |
2543 sequenceEnd = _json["sequenceEnd"]; | 3070 libraryName = _json["libraryName"]; |
2544 } | 3071 } |
2545 if (_json.containsKey("sequenceName")) { | 3072 if (_json.containsKey("platformName")) { |
2546 sequenceName = _json["sequenceName"]; | 3073 platformName = _json["platformName"]; |
2547 } | 3074 } |
2548 if (_json.containsKey("sequenceStart")) { | 3075 if (_json.containsKey("platformUnit")) { |
2549 sequenceStart = _json["sequenceStart"]; | 3076 platformUnit = _json["platformUnit"]; |
| 3077 } |
| 3078 if (_json.containsKey("readGroupName")) { |
| 3079 readGroupName = _json["readGroupName"]; |
| 3080 } |
| 3081 if (_json.containsKey("sampleName")) { |
| 3082 sampleName = _json["sampleName"]; |
2550 } | 3083 } |
2551 } | 3084 } |
2552 | 3085 |
2553 core.Map toJson() { | 3086 core.Map toJson() { |
2554 var _json = new core.Map(); | 3087 var _json = new core.Map(); |
2555 if (sequenceEnd != null) { | 3088 if (libraryName != null) { |
2556 _json["sequenceEnd"] = sequenceEnd; | 3089 _json["libraryName"] = libraryName; |
2557 } | 3090 } |
2558 if (sequenceName != null) { | 3091 if (platformName != null) { |
2559 _json["sequenceName"] = sequenceName; | 3092 _json["platformName"] = platformName; |
2560 } | 3093 } |
2561 if (sequenceStart != null) { | 3094 if (platformUnit != null) { |
2562 _json["sequenceStart"] = sequenceStart; | 3095 _json["platformUnit"] = platformUnit; |
| 3096 } |
| 3097 if (readGroupName != null) { |
| 3098 _json["readGroupName"] = readGroupName; |
| 3099 } |
| 3100 if (sampleName != null) { |
| 3101 _json["sampleName"] = sampleName; |
2563 } | 3102 } |
2564 return _json; | 3103 return _json; |
2565 } | 3104 } |
2566 } | 3105 } |
2567 | 3106 |
2568 | 3107 |
2569 /** Not documented yet. */ | 3108 /** The read group set import request. */ |
2570 class Header { | 3109 class ImportReadGroupSetsRequest { |
2571 /** (SO) Sorting order of alignments. */ | 3110 /** |
2572 core.String sortingOrder; | 3111 * Required. The ID of the dataset these read group sets will belong to. The |
2573 | 3112 * caller must have WRITE permissions to this dataset. |
2574 /** (VN) BAM format version. */ | 3113 */ |
2575 core.String version; | 3114 core.String datasetId; |
2576 | |
2577 | |
2578 Header(); | |
2579 | |
2580 Header.fromJson(core.Map _json) { | |
2581 if (_json.containsKey("sortingOrder")) { | |
2582 sortingOrder = _json["sortingOrder"]; | |
2583 } | |
2584 if (_json.containsKey("version")) { | |
2585 version = _json["version"]; | |
2586 } | |
2587 } | |
2588 | |
2589 core.Map toJson() { | |
2590 var _json = new core.Map(); | |
2591 if (sortingOrder != null) { | |
2592 _json["sortingOrder"] = sortingOrder; | |
2593 } | |
2594 if (version != null) { | |
2595 _json["version"] = version; | |
2596 } | |
2597 return _json; | |
2598 } | |
2599 } | |
2600 | |
2601 | |
2602 /** The header section of the BAM/SAM file. */ | |
2603 class HeaderSection { | |
2604 /** (@CO) One-line text comments. */ | |
2605 core.List<core.String> comments; | |
2606 | 3115 |
2607 /** | 3116 /** |
2608 * [Deprecated] This field is deprecated and will no longer be populated. | 3117 * The reference set to which the imported read group sets are aligned to, if |
2609 * Please use filename instead. | 3118 * any. The reference names of this reference set must be a superset of those |
| 3119 * found in the imported file headers. If no reference set id is provided, a |
| 3120 * best effort is made to associate with a matching reference set. |
2610 */ | 3121 */ |
2611 core.String fileUri; | 3122 core.String referenceSetId; |
2612 | |
2613 /** The name of the file from which this data was imported. */ | |
2614 core.String filename; | |
2615 | |
2616 /** (@HD) The header line. */ | |
2617 core.List<Header> headers; | |
2618 | |
2619 /** (@PG) Programs. */ | |
2620 core.List<Program> programs; | |
2621 | |
2622 /** (@RG) Read group. */ | |
2623 core.List<ReadGroup> readGroups; | |
2624 | |
2625 /** (@SQ) Reference sequence dictionary. */ | |
2626 core.List<ReferenceSequence> refSequences; | |
2627 | |
2628 | |
2629 HeaderSection(); | |
2630 | |
2631 HeaderSection.fromJson(core.Map _json) { | |
2632 if (_json.containsKey("comments")) { | |
2633 comments = _json["comments"]; | |
2634 } | |
2635 if (_json.containsKey("fileUri")) { | |
2636 fileUri = _json["fileUri"]; | |
2637 } | |
2638 if (_json.containsKey("filename")) { | |
2639 filename = _json["filename"]; | |
2640 } | |
2641 if (_json.containsKey("headers")) { | |
2642 headers = _json["headers"].map((value) => new Header.fromJson(value)).toLi
st(); | |
2643 } | |
2644 if (_json.containsKey("programs")) { | |
2645 programs = _json["programs"].map((value) => new Program.fromJson(value)).t
oList(); | |
2646 } | |
2647 if (_json.containsKey("readGroups")) { | |
2648 readGroups = _json["readGroups"].map((value) => new ReadGroup.fromJson(val
ue)).toList(); | |
2649 } | |
2650 if (_json.containsKey("refSequences")) { | |
2651 refSequences = _json["refSequences"].map((value) => new ReferenceSequence.
fromJson(value)).toList(); | |
2652 } | |
2653 } | |
2654 | |
2655 core.Map toJson() { | |
2656 var _json = new core.Map(); | |
2657 if (comments != null) { | |
2658 _json["comments"] = comments; | |
2659 } | |
2660 if (fileUri != null) { | |
2661 _json["fileUri"] = fileUri; | |
2662 } | |
2663 if (filename != null) { | |
2664 _json["filename"] = filename; | |
2665 } | |
2666 if (headers != null) { | |
2667 _json["headers"] = headers.map((value) => (value).toJson()).toList(); | |
2668 } | |
2669 if (programs != null) { | |
2670 _json["programs"] = programs.map((value) => (value).toJson()).toList(); | |
2671 } | |
2672 if (readGroups != null) { | |
2673 _json["readGroups"] = readGroups.map((value) => (value).toJson()).toList()
; | |
2674 } | |
2675 if (refSequences != null) { | |
2676 _json["refSequences"] = refSequences.map((value) => (value).toJson()).toLi
st(); | |
2677 } | |
2678 return _json; | |
2679 } | |
2680 } | |
2681 | |
2682 | |
2683 /** The readset import request. */ | |
2684 class ImportReadsetsRequest { | |
2685 /** | |
2686 * Required. The ID of the dataset these readsets will belong to. The caller | |
2687 * must have WRITE permissions to this dataset. | |
2688 */ | |
2689 core.String datasetId; | |
2690 | 3123 |
2691 /** A list of URIs pointing at BAM files in Google Cloud Storage. */ | 3124 /** A list of URIs pointing at BAM files in Google Cloud Storage. */ |
2692 core.List<core.String> sourceUris; | 3125 core.List<core.String> sourceUris; |
2693 | 3126 |
2694 | 3127 |
2695 ImportReadsetsRequest(); | 3128 ImportReadGroupSetsRequest(); |
2696 | 3129 |
2697 ImportReadsetsRequest.fromJson(core.Map _json) { | 3130 ImportReadGroupSetsRequest.fromJson(core.Map _json) { |
2698 if (_json.containsKey("datasetId")) { | 3131 if (_json.containsKey("datasetId")) { |
2699 datasetId = _json["datasetId"]; | 3132 datasetId = _json["datasetId"]; |
2700 } | 3133 } |
| 3134 if (_json.containsKey("referenceSetId")) { |
| 3135 referenceSetId = _json["referenceSetId"]; |
| 3136 } |
2701 if (_json.containsKey("sourceUris")) { | 3137 if (_json.containsKey("sourceUris")) { |
2702 sourceUris = _json["sourceUris"]; | 3138 sourceUris = _json["sourceUris"]; |
2703 } | 3139 } |
2704 } | 3140 } |
2705 | 3141 |
2706 core.Map toJson() { | 3142 core.Map toJson() { |
2707 var _json = new core.Map(); | 3143 var _json = new core.Map(); |
2708 if (datasetId != null) { | 3144 if (datasetId != null) { |
2709 _json["datasetId"] = datasetId; | 3145 _json["datasetId"] = datasetId; |
2710 } | 3146 } |
| 3147 if (referenceSetId != null) { |
| 3148 _json["referenceSetId"] = referenceSetId; |
| 3149 } |
2711 if (sourceUris != null) { | 3150 if (sourceUris != null) { |
2712 _json["sourceUris"] = sourceUris; | 3151 _json["sourceUris"] = sourceUris; |
2713 } | 3152 } |
2714 return _json; | 3153 return _json; |
2715 } | 3154 } |
2716 } | 3155 } |
2717 | 3156 |
2718 | 3157 |
2719 /** The readset import response. */ | 3158 /** The read group set import response. */ |
2720 class ImportReadsetsResponse { | 3159 class ImportReadGroupSetsResponse { |
2721 /** A job ID that can be used to get status information. */ | 3160 /** A job ID that can be used to get status information. */ |
2722 core.String jobId; | 3161 core.String jobId; |
2723 | 3162 |
2724 | 3163 |
2725 ImportReadsetsResponse(); | 3164 ImportReadGroupSetsResponse(); |
2726 | 3165 |
2727 ImportReadsetsResponse.fromJson(core.Map _json) { | 3166 ImportReadGroupSetsResponse.fromJson(core.Map _json) { |
2728 if (_json.containsKey("jobId")) { | 3167 if (_json.containsKey("jobId")) { |
2729 jobId = _json["jobId"]; | 3168 jobId = _json["jobId"]; |
2730 } | 3169 } |
2731 } | 3170 } |
2732 | 3171 |
2733 core.Map toJson() { | 3172 core.Map toJson() { |
2734 var _json = new core.Map(); | 3173 var _json = new core.Map(); |
2735 if (jobId != null) { | 3174 if (jobId != null) { |
2736 _json["jobId"] = jobId; | 3175 _json["jobId"] = jobId; |
2737 } | 3176 } |
2738 return _json; | 3177 return _json; |
2739 } | 3178 } |
2740 } | 3179 } |
2741 | 3180 |
2742 | 3181 |
2743 /** The variant data import request. */ | 3182 /** The variant data import request. */ |
2744 class ImportVariantsRequest { | 3183 class ImportVariantsRequest { |
2745 /** | 3184 /** |
2746 * The format of the variant data being imported. | 3185 * The format of the variant data being imported. |
2747 * Possible string values are: | 3186 * Possible string values are: |
2748 * - "completeGenomics" | 3187 * - "COMPLETE_GENOMICS" |
2749 * - "vcf" | 3188 * - "VCF" |
2750 */ | 3189 */ |
2751 core.String format; | 3190 core.String format; |
2752 | 3191 |
2753 /** | 3192 /** |
2754 * A list of URIs pointing at VCF files in Google Cloud Storage. See the VCF | 3193 * A list of URIs pointing at VCF files in Google Cloud Storage. See the VCF |
2755 * Specification for more details on the input format. | 3194 * Specification for more details on the input format. |
2756 */ | 3195 */ |
2757 core.List<core.String> sourceUris; | 3196 core.List<core.String> sourceUris; |
2758 | 3197 |
2759 /** Required. The variant set to which variant data should be imported. */ | |
2760 core.String variantSetId; | |
2761 | |
2762 | 3198 |
2763 ImportVariantsRequest(); | 3199 ImportVariantsRequest(); |
2764 | 3200 |
2765 ImportVariantsRequest.fromJson(core.Map _json) { | 3201 ImportVariantsRequest.fromJson(core.Map _json) { |
2766 if (_json.containsKey("format")) { | 3202 if (_json.containsKey("format")) { |
2767 format = _json["format"]; | 3203 format = _json["format"]; |
2768 } | 3204 } |
2769 if (_json.containsKey("sourceUris")) { | 3205 if (_json.containsKey("sourceUris")) { |
2770 sourceUris = _json["sourceUris"]; | 3206 sourceUris = _json["sourceUris"]; |
2771 } | 3207 } |
2772 if (_json.containsKey("variantSetId")) { | |
2773 variantSetId = _json["variantSetId"]; | |
2774 } | |
2775 } | 3208 } |
2776 | 3209 |
2777 core.Map toJson() { | 3210 core.Map toJson() { |
2778 var _json = new core.Map(); | 3211 var _json = new core.Map(); |
2779 if (format != null) { | 3212 if (format != null) { |
2780 _json["format"] = format; | 3213 _json["format"] = format; |
2781 } | 3214 } |
2782 if (sourceUris != null) { | 3215 if (sourceUris != null) { |
2783 _json["sourceUris"] = sourceUris; | 3216 _json["sourceUris"] = sourceUris; |
2784 } | 3217 } |
2785 if (variantSetId != null) { | |
2786 _json["variantSetId"] = variantSetId; | |
2787 } | |
2788 return _json; | 3218 return _json; |
2789 } | 3219 } |
2790 } | 3220 } |
2791 | 3221 |
2792 | 3222 |
2793 /** The variant data import response. */ | 3223 /** The variant data import response. */ |
2794 class ImportVariantsResponse { | 3224 class ImportVariantsResponse { |
2795 /** A job ID that can be used to get status information. */ | 3225 /** A job ID that can be used to get status information. */ |
2796 core.String jobId; | 3226 core.String jobId; |
2797 | 3227 |
2798 | 3228 |
2799 ImportVariantsResponse(); | 3229 ImportVariantsResponse(); |
2800 | 3230 |
2801 ImportVariantsResponse.fromJson(core.Map _json) { | 3231 ImportVariantsResponse.fromJson(core.Map _json) { |
2802 if (_json.containsKey("jobId")) { | 3232 if (_json.containsKey("jobId")) { |
2803 jobId = _json["jobId"]; | 3233 jobId = _json["jobId"]; |
2804 } | 3234 } |
2805 } | 3235 } |
2806 | 3236 |
2807 core.Map toJson() { | 3237 core.Map toJson() { |
2808 var _json = new core.Map(); | 3238 var _json = new core.Map(); |
2809 if (jobId != null) { | 3239 if (jobId != null) { |
2810 _json["jobId"] = jobId; | 3240 _json["jobId"] = jobId; |
2811 } | 3241 } |
2812 return _json; | 3242 return _json; |
2813 } | 3243 } |
2814 } | 3244 } |
2815 | 3245 |
2816 | 3246 |
| 3247 /** Describes an interleaved FASTQ file source for alignment. */ |
| 3248 class InterleavedFastqSource { |
| 3249 /** |
| 3250 * Optionally specifies the metadata to be associated with the final aligned |
| 3251 * read group set. |
| 3252 */ |
| 3253 FastqMetadata metadata; |
| 3254 |
| 3255 /** |
| 3256 * A list of URIs pointing at interleaved FASTQ files in Google Cloud Storage |
| 3257 * which will be aligned. The caller must have READ permissions for these |
| 3258 * files. |
| 3259 */ |
| 3260 core.List<core.String> sourceUris; |
| 3261 |
| 3262 |
| 3263 InterleavedFastqSource(); |
| 3264 |
| 3265 InterleavedFastqSource.fromJson(core.Map _json) { |
| 3266 if (_json.containsKey("metadata")) { |
| 3267 metadata = new FastqMetadata.fromJson(_json["metadata"]); |
| 3268 } |
| 3269 if (_json.containsKey("sourceUris")) { |
| 3270 sourceUris = _json["sourceUris"]; |
| 3271 } |
| 3272 } |
| 3273 |
| 3274 core.Map toJson() { |
| 3275 var _json = new core.Map(); |
| 3276 if (metadata != null) { |
| 3277 _json["metadata"] = (metadata).toJson(); |
| 3278 } |
| 3279 if (sourceUris != null) { |
| 3280 _json["sourceUris"] = sourceUris; |
| 3281 } |
| 3282 return _json; |
| 3283 } |
| 3284 } |
| 3285 |
| 3286 |
2817 /** | 3287 /** |
2818 * A Job represents an ongoing process that can be monitored for status | 3288 * A Job represents an ongoing process that can be monitored for status |
2819 * information. | 3289 * information. |
2820 */ | 3290 */ |
2821 class Job { | 3291 class Job { |
2822 /** The date this job was created, in milliseconds from the epoch. */ | 3292 /** The date this job was created, in milliseconds from the epoch. */ |
2823 core.String created; | 3293 core.String created; |
2824 | 3294 |
2825 /** A more detailed description of this job's current status. */ | 3295 /** A more detailed description of this job's current status. */ |
2826 core.String description; | 3296 core.String detailedStatus; |
2827 | 3297 |
2828 /** Any errors that occurred during processing. */ | 3298 /** Any errors that occurred during processing. */ |
2829 core.List<core.String> errors; | 3299 core.List<core.String> errors; |
2830 | 3300 |
2831 /** The job ID. */ | 3301 /** The job ID. */ |
2832 core.String id; | 3302 core.String id; |
2833 | 3303 |
2834 /** | 3304 /** |
2835 * If this Job represents an import, this field will contain the IDs of the | 3305 * If this Job represents an import, this field will contain the IDs of the |
2836 * objects that were successfully imported. | 3306 * objects that were successfully imported. |
2837 */ | 3307 */ |
2838 core.List<core.String> importedIds; | 3308 core.List<core.String> importedIds; |
2839 | 3309 |
2840 /** | 3310 /** |
2841 * The Google Developers Console project number to which this job belongs. | 3311 * The Google Developers Console project number to which this job belongs. |
2842 */ | 3312 */ |
2843 core.String projectId; | 3313 core.String projectNumber; |
2844 | 3314 |
2845 /** A summarized representation of the original service request. */ | 3315 /** A summarized representation of the original service request. */ |
2846 JobRequest request; | 3316 JobRequest request; |
2847 | 3317 |
2848 /** | 3318 /** |
2849 * The status of this job. | 3319 * The status of this job. |
2850 * Possible string values are: | 3320 * Possible string values are: |
2851 * - "canceled" | 3321 * - "CANCELED" |
2852 * - "failure" | 3322 * - "FAILURE" |
2853 * - "new" | 3323 * - "NEW" |
2854 * - "pending" | 3324 * - "PENDING" |
2855 * - "running" | 3325 * - "RUNNING" |
2856 * - "success" | 3326 * - "SUCCESS" |
2857 * - "unknownStatus" | 3327 * - "UNKNOWN_STATUS" |
2858 */ | 3328 */ |
2859 core.String status; | 3329 core.String status; |
2860 | 3330 |
2861 /** Any warnings that occurred during processing. */ | 3331 /** Any warnings that occurred during processing. */ |
2862 core.List<core.String> warnings; | 3332 core.List<core.String> warnings; |
2863 | 3333 |
2864 | 3334 |
2865 Job(); | 3335 Job(); |
2866 | 3336 |
2867 Job.fromJson(core.Map _json) { | 3337 Job.fromJson(core.Map _json) { |
2868 if (_json.containsKey("created")) { | 3338 if (_json.containsKey("created")) { |
2869 created = _json["created"]; | 3339 created = _json["created"]; |
2870 } | 3340 } |
2871 if (_json.containsKey("description")) { | 3341 if (_json.containsKey("detailedStatus")) { |
2872 description = _json["description"]; | 3342 detailedStatus = _json["detailedStatus"]; |
2873 } | 3343 } |
2874 if (_json.containsKey("errors")) { | 3344 if (_json.containsKey("errors")) { |
2875 errors = _json["errors"]; | 3345 errors = _json["errors"]; |
2876 } | 3346 } |
2877 if (_json.containsKey("id")) { | 3347 if (_json.containsKey("id")) { |
2878 id = _json["id"]; | 3348 id = _json["id"]; |
2879 } | 3349 } |
2880 if (_json.containsKey("importedIds")) { | 3350 if (_json.containsKey("importedIds")) { |
2881 importedIds = _json["importedIds"]; | 3351 importedIds = _json["importedIds"]; |
2882 } | 3352 } |
2883 if (_json.containsKey("projectId")) { | 3353 if (_json.containsKey("projectNumber")) { |
2884 projectId = _json["projectId"]; | 3354 projectNumber = _json["projectNumber"]; |
2885 } | 3355 } |
2886 if (_json.containsKey("request")) { | 3356 if (_json.containsKey("request")) { |
2887 request = new JobRequest.fromJson(_json["request"]); | 3357 request = new JobRequest.fromJson(_json["request"]); |
2888 } | 3358 } |
2889 if (_json.containsKey("status")) { | 3359 if (_json.containsKey("status")) { |
2890 status = _json["status"]; | 3360 status = _json["status"]; |
2891 } | 3361 } |
2892 if (_json.containsKey("warnings")) { | 3362 if (_json.containsKey("warnings")) { |
2893 warnings = _json["warnings"]; | 3363 warnings = _json["warnings"]; |
2894 } | 3364 } |
2895 } | 3365 } |
2896 | 3366 |
2897 core.Map toJson() { | 3367 core.Map toJson() { |
2898 var _json = new core.Map(); | 3368 var _json = new core.Map(); |
2899 if (created != null) { | 3369 if (created != null) { |
2900 _json["created"] = created; | 3370 _json["created"] = created; |
2901 } | 3371 } |
2902 if (description != null) { | 3372 if (detailedStatus != null) { |
2903 _json["description"] = description; | 3373 _json["detailedStatus"] = detailedStatus; |
2904 } | 3374 } |
2905 if (errors != null) { | 3375 if (errors != null) { |
2906 _json["errors"] = errors; | 3376 _json["errors"] = errors; |
2907 } | 3377 } |
2908 if (id != null) { | 3378 if (id != null) { |
2909 _json["id"] = id; | 3379 _json["id"] = id; |
2910 } | 3380 } |
2911 if (importedIds != null) { | 3381 if (importedIds != null) { |
2912 _json["importedIds"] = importedIds; | 3382 _json["importedIds"] = importedIds; |
2913 } | 3383 } |
2914 if (projectId != null) { | 3384 if (projectNumber != null) { |
2915 _json["projectId"] = projectId; | 3385 _json["projectNumber"] = projectNumber; |
2916 } | 3386 } |
2917 if (request != null) { | 3387 if (request != null) { |
2918 _json["request"] = (request).toJson(); | 3388 _json["request"] = (request).toJson(); |
2919 } | 3389 } |
2920 if (status != null) { | 3390 if (status != null) { |
2921 _json["status"] = status; | 3391 _json["status"] = status; |
2922 } | 3392 } |
2923 if (warnings != null) { | 3393 if (warnings != null) { |
2924 _json["warnings"] = warnings; | 3394 _json["warnings"] = warnings; |
2925 } | 3395 } |
(...skipping 12 matching lines...) Expand all Loading... |
2938 | 3408 |
2939 /** | 3409 /** |
2940 * The data source of the request, for example, a Google Cloud Storage object | 3410 * The data source of the request, for example, a Google Cloud Storage object |
2941 * path or Readset ID. | 3411 * path or Readset ID. |
2942 */ | 3412 */ |
2943 core.List<core.String> source; | 3413 core.List<core.String> source; |
2944 | 3414 |
2945 /** | 3415 /** |
2946 * The original request type. | 3416 * The original request type. |
2947 * Possible string values are: | 3417 * Possible string values are: |
2948 * - "experimentalCreateJob" | 3418 * - "ALIGN_READSETS" |
2949 * - "exportReadsets" | 3419 * - "CALL_READSETS" |
2950 * - "exportVariants" | 3420 * - "EXPERIMENTAL_CREATE_JOB" |
2951 * - "importReadsets" | 3421 * - "EXPORT_READSETS" |
2952 * - "importVariants" | 3422 * - "EXPORT_VARIANTS" |
2953 * - "unknownType" | 3423 * - "IMPORT_READSETS" |
| 3424 * - "IMPORT_VARIANTS" |
| 3425 * - "UNKNOWN_TYPE" |
2954 */ | 3426 */ |
2955 core.String type; | 3427 core.String type; |
2956 | 3428 |
2957 | 3429 |
2958 JobRequest(); | 3430 JobRequest(); |
2959 | 3431 |
2960 JobRequest.fromJson(core.Map _json) { | 3432 JobRequest.fromJson(core.Map _json) { |
2961 if (_json.containsKey("destination")) { | 3433 if (_json.containsKey("destination")) { |
2962 destination = _json["destination"]; | 3434 destination = _json["destination"]; |
2963 } | 3435 } |
(...skipping 14 matching lines...) Expand all Loading... |
2978 _json["source"] = source; | 3450 _json["source"] = source; |
2979 } | 3451 } |
2980 if (type != null) { | 3452 if (type != null) { |
2981 _json["type"] = type; | 3453 _json["type"] = type; |
2982 } | 3454 } |
2983 return _json; | 3455 return _json; |
2984 } | 3456 } |
2985 } | 3457 } |
2986 | 3458 |
2987 | 3459 |
| 3460 /** |
| 3461 * A linear alignment can be represented by one CIGAR string. Describes the |
| 3462 * mapped position and local alignment of the read to the reference. |
| 3463 */ |
| 3464 class LinearAlignment { |
| 3465 /** |
| 3466 * Represents the local alignment of this sequence (alignment matches, indels, |
| 3467 * etc) against the reference. |
| 3468 */ |
| 3469 core.List<CigarUnit> cigar; |
| 3470 |
| 3471 /** |
| 3472 * The mapping quality of this alignment. Represents how likely the read maps |
| 3473 * to this position as opposed to other locations. |
| 3474 */ |
| 3475 core.int mappingQuality; |
| 3476 |
| 3477 /** The position of this alignment. */ |
| 3478 Position position; |
| 3479 |
| 3480 |
| 3481 LinearAlignment(); |
| 3482 |
| 3483 LinearAlignment.fromJson(core.Map _json) { |
| 3484 if (_json.containsKey("cigar")) { |
| 3485 cigar = _json["cigar"].map((value) => new CigarUnit.fromJson(value)).toLis
t(); |
| 3486 } |
| 3487 if (_json.containsKey("mappingQuality")) { |
| 3488 mappingQuality = _json["mappingQuality"]; |
| 3489 } |
| 3490 if (_json.containsKey("position")) { |
| 3491 position = new Position.fromJson(_json["position"]); |
| 3492 } |
| 3493 } |
| 3494 |
| 3495 core.Map toJson() { |
| 3496 var _json = new core.Map(); |
| 3497 if (cigar != null) { |
| 3498 _json["cigar"] = cigar.map((value) => (value).toJson()).toList(); |
| 3499 } |
| 3500 if (mappingQuality != null) { |
| 3501 _json["mappingQuality"] = mappingQuality; |
| 3502 } |
| 3503 if (position != null) { |
| 3504 _json["position"] = (position).toJson(); |
| 3505 } |
| 3506 return _json; |
| 3507 } |
| 3508 } |
| 3509 |
| 3510 |
| 3511 /** Not documented yet. */ |
| 3512 class ListBasesResponse { |
| 3513 /** |
| 3514 * The continuation token, which is used to page through large result sets. |
| 3515 * Provide this value in a subsequent request to return the next page of |
| 3516 * results. This field will be empty if there aren't any additional results. |
| 3517 */ |
| 3518 core.String nextPageToken; |
| 3519 |
| 3520 /** |
| 3521 * The offset position (0-based) of the given sequence from the start of this |
| 3522 * Reference. This value will differ for each page in a paginated request. |
| 3523 */ |
| 3524 core.String offset; |
| 3525 |
| 3526 /** A substring of the bases that make up this reference. */ |
| 3527 core.String sequence; |
| 3528 |
| 3529 |
| 3530 ListBasesResponse(); |
| 3531 |
| 3532 ListBasesResponse.fromJson(core.Map _json) { |
| 3533 if (_json.containsKey("nextPageToken")) { |
| 3534 nextPageToken = _json["nextPageToken"]; |
| 3535 } |
| 3536 if (_json.containsKey("offset")) { |
| 3537 offset = _json["offset"]; |
| 3538 } |
| 3539 if (_json.containsKey("sequence")) { |
| 3540 sequence = _json["sequence"]; |
| 3541 } |
| 3542 } |
| 3543 |
| 3544 core.Map toJson() { |
| 3545 var _json = new core.Map(); |
| 3546 if (nextPageToken != null) { |
| 3547 _json["nextPageToken"] = nextPageToken; |
| 3548 } |
| 3549 if (offset != null) { |
| 3550 _json["offset"] = offset; |
| 3551 } |
| 3552 if (sequence != null) { |
| 3553 _json["sequence"] = sequence; |
| 3554 } |
| 3555 return _json; |
| 3556 } |
| 3557 } |
| 3558 |
| 3559 |
2988 /** Not documented yet. */ | 3560 /** Not documented yet. */ |
2989 class ListCoverageBucketsResponse { | 3561 class ListCoverageBucketsResponse { |
2990 /** | 3562 /** |
2991 * The length of each coverage bucket in base pairs. Note that buckets at the | 3563 * The length of each coverage bucket in base pairs. Note that buckets at the |
2992 * end of a reference sequence may be shorter. This value is omitted if the | 3564 * end of a reference sequence may be shorter. This value is omitted if the |
2993 * bucket width is infinity (the default behaviour, with no range or | 3565 * bucket width is infinity (the default behaviour, with no range or |
2994 * targetBucketWidth). | 3566 * targetBucketWidth). |
2995 */ | 3567 */ |
2996 core.String bucketWidth; | 3568 core.String bucketWidth; |
2997 | 3569 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3127 /** | 3699 /** |
3128 * The number of values that can be included in a field described by this | 3700 * The number of values that can be included in a field described by this |
3129 * metadata. | 3701 * metadata. |
3130 */ | 3702 */ |
3131 core.String number; | 3703 core.String number; |
3132 | 3704 |
3133 /** | 3705 /** |
3134 * The type of data. Possible types include: Integer, Float, Flag, Character, | 3706 * The type of data. Possible types include: Integer, Float, Flag, Character, |
3135 * and String. | 3707 * and String. |
3136 * Possible string values are: | 3708 * Possible string values are: |
3137 * - "character" | 3709 * - "CHARACTER" |
3138 * - "flag" | 3710 * - "FLAG" |
3139 * - "float" | 3711 * - "FLOAT" |
3140 * - "integer" | 3712 * - "INTEGER" |
3141 * - "string" | 3713 * - "STRING" |
3142 * - "unknownType" | 3714 * - "UNKNOWN_TYPE" |
3143 */ | 3715 */ |
3144 core.String type; | 3716 core.String type; |
3145 | 3717 |
3146 /** The value field for simple metadata */ | 3718 /** The value field for simple metadata */ |
3147 core.String value; | 3719 core.String value; |
3148 | 3720 |
3149 | 3721 |
3150 Metadata(); | 3722 Metadata(); |
3151 | 3723 |
3152 Metadata.fromJson(core.Map _json) { | 3724 Metadata.fromJson(core.Map _json) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3194 _json["type"] = type; | 3766 _json["type"] = type; |
3195 } | 3767 } |
3196 if (value != null) { | 3768 if (value != null) { |
3197 _json["value"] = value; | 3769 _json["value"] = value; |
3198 } | 3770 } |
3199 return _json; | 3771 return _json; |
3200 } | 3772 } |
3201 } | 3773 } |
3202 | 3774 |
3203 | 3775 |
3204 /** Not documented yet. */ | 3776 /** Describes a paired-end FASTQ file source for alignment. */ |
3205 class Program { | 3777 class PairedFastqSource { |
3206 /** (CL) Command line. */ | 3778 /** |
3207 core.String commandLine; | 3779 * A list of URIs pointing at paired end FASTQ files in Google Cloud Storage |
| 3780 * which will be aligned. The first of each paired file should be specified |
| 3781 * here, in an order that matches the second of each paired file specified in |
| 3782 * secondSourceUris. For example: firstSourceUris: [file1_1.fq, file2_1.fq], |
| 3783 * secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must have READ |
| 3784 * permissions for these files. |
| 3785 */ |
| 3786 core.List<core.String> firstSourceUris; |
3208 | 3787 |
3209 /** (ID) Program record identifier. */ | 3788 /** |
3210 core.String id; | 3789 * Optionally specifies the metadata to be associated with the final aligned |
| 3790 * read group set. |
| 3791 */ |
| 3792 FastqMetadata metadata; |
3211 | 3793 |
3212 /** (PN) Program name. */ | 3794 /** |
3213 core.String name; | 3795 * A list of URIs pointing at paired end FASTQ files in Google Cloud Storage |
3214 | 3796 * which will be aligned. The second of each paired file should be specified |
3215 /** (PP) Previous program ID. */ | 3797 * here, in an order that matches the first of each paired file specified in |
3216 core.String prevProgramId; | 3798 * firstSourceUris. For example: firstSourceUris: [file1_1.fq, file2_1.fq], |
3217 | 3799 * secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must have READ |
3218 /** (VN) Program version. */ | 3800 * permissions for these files. |
3219 core.String version; | 3801 */ |
| 3802 core.List<core.String> secondSourceUris; |
3220 | 3803 |
3221 | 3804 |
3222 Program(); | 3805 PairedFastqSource(); |
3223 | 3806 |
3224 Program.fromJson(core.Map _json) { | 3807 PairedFastqSource.fromJson(core.Map _json) { |
3225 if (_json.containsKey("commandLine")) { | 3808 if (_json.containsKey("firstSourceUris")) { |
3226 commandLine = _json["commandLine"]; | 3809 firstSourceUris = _json["firstSourceUris"]; |
3227 } | 3810 } |
3228 if (_json.containsKey("id")) { | 3811 if (_json.containsKey("metadata")) { |
3229 id = _json["id"]; | 3812 metadata = new FastqMetadata.fromJson(_json["metadata"]); |
3230 } | 3813 } |
3231 if (_json.containsKey("name")) { | 3814 if (_json.containsKey("secondSourceUris")) { |
3232 name = _json["name"]; | 3815 secondSourceUris = _json["secondSourceUris"]; |
3233 } | |
3234 if (_json.containsKey("prevProgramId")) { | |
3235 prevProgramId = _json["prevProgramId"]; | |
3236 } | |
3237 if (_json.containsKey("version")) { | |
3238 version = _json["version"]; | |
3239 } | 3816 } |
3240 } | 3817 } |
3241 | 3818 |
3242 core.Map toJson() { | 3819 core.Map toJson() { |
3243 var _json = new core.Map(); | 3820 var _json = new core.Map(); |
3244 if (commandLine != null) { | 3821 if (firstSourceUris != null) { |
3245 _json["commandLine"] = commandLine; | 3822 _json["firstSourceUris"] = firstSourceUris; |
3246 } | 3823 } |
3247 if (id != null) { | 3824 if (metadata != null) { |
3248 _json["id"] = id; | 3825 _json["metadata"] = (metadata).toJson(); |
3249 } | 3826 } |
3250 if (name != null) { | 3827 if (secondSourceUris != null) { |
3251 _json["name"] = name; | 3828 _json["secondSourceUris"] = secondSourceUris; |
3252 } | |
3253 if (prevProgramId != null) { | |
3254 _json["prevProgramId"] = prevProgramId; | |
3255 } | |
3256 if (version != null) { | |
3257 _json["version"] = version; | |
3258 } | 3829 } |
3259 return _json; | 3830 return _json; |
3260 } | 3831 } |
| 3832 } |
| 3833 |
| 3834 |
| 3835 /** |
| 3836 * An abstraction for referring to a genomic position, in relation to some |
| 3837 * already known reference. For now, represents a genomic position as a |
| 3838 * reference name, a base number on that reference (0-based), and a |
| 3839 * determination of forward or reverse strand. |
| 3840 */ |
| 3841 class Position { |
| 3842 /** |
| 3843 * The 0-based offset from the start of the forward strand for that reference. |
| 3844 */ |
| 3845 core.String position; |
| 3846 |
| 3847 /** The name of the reference in whatever reference set is being used. */ |
| 3848 core.String referenceName; |
| 3849 |
| 3850 /** |
| 3851 * Whether this position is on the reverse strand, as opposed to the forward |
| 3852 * strand. |
| 3853 */ |
| 3854 core.bool reverseStrand; |
| 3855 |
| 3856 |
| 3857 Position(); |
| 3858 |
| 3859 Position.fromJson(core.Map _json) { |
| 3860 if (_json.containsKey("position")) { |
| 3861 position = _json["position"]; |
| 3862 } |
| 3863 if (_json.containsKey("referenceName")) { |
| 3864 referenceName = _json["referenceName"]; |
| 3865 } |
| 3866 if (_json.containsKey("reverseStrand")) { |
| 3867 reverseStrand = _json["reverseStrand"]; |
| 3868 } |
| 3869 } |
| 3870 |
| 3871 core.Map toJson() { |
| 3872 var _json = new core.Map(); |
| 3873 if (position != null) { |
| 3874 _json["position"] = position; |
| 3875 } |
| 3876 if (referenceName != null) { |
| 3877 _json["referenceName"] = referenceName; |
| 3878 } |
| 3879 if (reverseStrand != null) { |
| 3880 _json["reverseStrand"] = reverseStrand; |
| 3881 } |
| 3882 return _json; |
| 3883 } |
| 3884 } |
| 3885 |
| 3886 |
| 3887 /** A 0-based half-open genomic coordinate range over a reference sequence. */ |
| 3888 class Range { |
| 3889 /** |
| 3890 * The end position of the range on the reference, 0-based exclusive. If |
| 3891 * specified, referenceName must also be specified. |
| 3892 */ |
| 3893 core.String end; |
| 3894 |
| 3895 /** The reference sequence name, for example chr1, 1, or chrX. */ |
| 3896 core.String referenceName; |
| 3897 |
| 3898 /** |
| 3899 * The start position of the range on the reference, 0-based inclusive. If |
| 3900 * specified, referenceName must also be specified. |
| 3901 */ |
| 3902 core.String start; |
| 3903 |
| 3904 |
| 3905 Range(); |
| 3906 |
| 3907 Range.fromJson(core.Map _json) { |
| 3908 if (_json.containsKey("end")) { |
| 3909 end = _json["end"]; |
| 3910 } |
| 3911 if (_json.containsKey("referenceName")) { |
| 3912 referenceName = _json["referenceName"]; |
| 3913 } |
| 3914 if (_json.containsKey("start")) { |
| 3915 start = _json["start"]; |
| 3916 } |
| 3917 } |
| 3918 |
| 3919 core.Map toJson() { |
| 3920 var _json = new core.Map(); |
| 3921 if (end != null) { |
| 3922 _json["end"] = end; |
| 3923 } |
| 3924 if (referenceName != null) { |
| 3925 _json["referenceName"] = referenceName; |
| 3926 } |
| 3927 if (start != null) { |
| 3928 _json["start"] = start; |
| 3929 } |
| 3930 return _json; |
| 3931 } |
3261 } | 3932 } |
3262 | 3933 |
3263 | 3934 |
3264 /** | 3935 /** |
3265 * A Read is a group of bases that may or may not have been aligned to a | 3936 * A read alignment describes a linear alignment of a string of DNA to a |
3266 * reference. It contains quality information and other metadata. | 3937 * reference sequence, in addition to metadata about the fragment (the molecule |
| 3938 * of DNA sequenced) and the read (the bases which were read by the sequencer). |
| 3939 * A read is equivalent to a line in a SAM file. A read belongs to exactly one |
| 3940 * read group and exactly one read group set. |
3267 */ | 3941 */ |
3268 class Read { | 3942 class Read { |
3269 /** | 3943 /** |
3270 * The originalBases after the cigar field has been applied. Deletions are | 3944 * The quality of the read sequence contained in this alignment record. |
3271 * represented with '-' and insertions are omitted. | 3945 * alignedSequence and alignedQuality may be shorter than the full read |
3272 */ | 3946 * sequence and quality. This will occur if the alignment is part of a |
3273 core.String alignedBases; | 3947 * chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR |
3274 | 3948 * for this read will begin/end with a hard clip operator that will indicate |
3275 /** | 3949 * the length of the excised sequence. |
3276 * Represents the quality of each base in this read. Each character represents | 3950 */ |
3277 * one base. To get the quality, take the ASCII value of the character and | 3951 core.List<core.int> alignedQuality; |
3278 * subtract 33. (QUAL) | 3952 |
3279 */ | 3953 /** |
3280 core.String baseQuality; | 3954 * The bases of the read sequence contained in this alignment record. |
3281 | 3955 * alignedSequence and alignedQuality may be shorter than the full read |
3282 /** | 3956 * sequence and quality. This will occur if the alignment is part of a |
3283 * A condensed representation of how this read matches up to the reference. | 3957 * chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR |
3284 * (CIGAR) | 3958 * for this read will begin/end with a hard clip operator that will indicate |
3285 */ | 3959 * the length of the excised sequence. |
3286 core.String cigar; | 3960 */ |
3287 | 3961 core.String alignedSequence; |
3288 /** | 3962 |
3289 * Each bit of this number has a different meaning if enabled. See the full | 3963 /** |
3290 * BAM spec for more details. (FLAG) | 3964 * The linear alignment for this alignment record. This field will be null if |
3291 */ | 3965 * the read is unmapped. |
3292 core.int flags; | 3966 */ |
3293 | 3967 LinearAlignment alignment; |
3294 /** The Google generated ID of the read, immutable. */ | 3968 |
| 3969 /** The fragment is a PCR or optical duplicate (SAM flag 0x400) */ |
| 3970 core.bool duplicateFragment; |
| 3971 |
| 3972 /** SAM flag 0x200 */ |
| 3973 core.bool failedVendorQualityChecks; |
| 3974 |
| 3975 /** The observed length of the fragment, equivalent to TLEN in SAM. */ |
| 3976 core.int fragmentLength; |
| 3977 |
| 3978 /** The fragment name. Equivalent to QNAME (query template name) in SAM. */ |
| 3979 core.String fragmentName; |
| 3980 |
| 3981 /** |
| 3982 * The unique ID for this read. This is a generated unique ID, not to be |
| 3983 * confused with fragmentName. |
| 3984 */ |
3295 core.String id; | 3985 core.String id; |
3296 | 3986 |
3297 /** | 3987 /** A map of additional read alignment information. */ |
3298 * A score up to 255 that represents how likely this read's aligned position | 3988 core.Map<core.String, core.List<core.String>> info; |
3299 * is to be correct. A higher value is better. (MAPQ) | 3989 |
3300 */ | 3990 /** |
3301 core.int mappingQuality; | 3991 * The mapping of the primary alignment of the (readNumber+1)%numberReads read |
3302 | 3992 * in the fragment. It replaces mate position and mate strand in SAM. |
3303 /** The 1-based start position of the paired read. (PNEXT) */ | 3993 */ |
3304 core.int matePosition; | 3994 Position nextMatePosition; |
3305 | 3995 |
3306 /** | 3996 /** The number of reads in the fragment (extension to SAM flag 0x1). */ |
3307 * The name of the sequence that the paired read is aligned to. This is | 3997 core.int numberReads; |
3308 * usually the same as referenceSequenceName. (RNEXT) | 3998 |
3309 */ | 3999 /** |
3310 core.String mateReferenceSequenceName; | 4000 * The orientation and the distance between reads from the fragment are |
3311 | 4001 * consistent with the sequencing protocol (extension to SAM flag 0x2) |
3312 /** | 4002 */ |
3313 * The name of the read. When imported from a BAM file, this is the query | 4003 core.bool properPlacement; |
3314 * template name. (QNAME) | 4004 |
3315 */ | 4005 /** |
3316 core.String name; | 4006 * The ID of the read group this read belongs to. (Every read must belong to |
3317 | 4007 * exactly one read group.) |
3318 /** The list of bases that this read represents (such as "CATCGA"). (SEQ) */ | 4008 */ |
3319 core.String originalBases; | 4009 core.String readGroupId; |
3320 | 4010 |
3321 /** | 4011 /** |
3322 * The 1-based start position of the aligned read. If the first base starts at | 4012 * The ID of the read group set this read belongs to. (Every read must belong |
3323 * the very beginning of the reference sequence, then the position would be | 4013 * to exactly one read group set.) |
3324 * '1'. (POS) | 4014 */ |
3325 */ | 4015 core.String readGroupSetId; |
3326 core.int position; | 4016 |
3327 | 4017 /** |
3328 /** The ID of the readset this read belongs to. */ | 4018 * The read number in sequencing. 0-based and less than numberReads. This |
3329 core.String readsetId; | 4019 * field replaces SAM flag 0x40 and 0x80. |
3330 | 4020 */ |
3331 /** | 4021 core.int readNumber; |
3332 * The name of the sequence that this read is aligned to. This would be, for | 4022 |
3333 * example, 'X' for the X Chromosome or '20' for Chromosome 20. (RNAME) | 4023 /** |
3334 */ | 4024 * Whether this alignment is secondary. Equivalent to SAM flag 0x100. A |
3335 core.String referenceSequenceName; | 4025 * secondary alignment represents an alternative to the primary alignment for |
3336 | 4026 * this read. Aligners may return secondary alignments if a read can map |
3337 /** A map of additional read information. (TAG) */ | 4027 * ambiguously to multiple coordinates in the genome. By convention, each read |
3338 core.Map<core.String, core.List<core.String>> tags; | 4028 * has one and only one alignment where both secondaryAlignment and |
3339 | 4029 * supplementaryAlignment are false. |
3340 /** | 4030 */ |
3341 * Length of the original piece of DNA that produced both this read and the | 4031 core.bool secondaryAlignment; |
3342 * paired read. (TLEN) | 4032 |
3343 */ | 4033 /** |
3344 core.int templateLength; | 4034 * Whether this alignment is supplementary. Equivalent to SAM flag 0x800. |
| 4035 * Supplementary alignments are used in the representation of a chimeric |
| 4036 * alignment. In a chimeric alignment, a read is split into multiple linear |
| 4037 * alignments that map to different reference contigs. The first linear |
| 4038 * alignment in the read will be designated as the representative alignment; |
| 4039 * the remaining linear alignments will be designated as supplementary |
| 4040 * alignments. These alignments may have different mapping quality scores. In |
| 4041 * each linear alignment in a chimeric alignment, the read will be hard |
| 4042 * clipped. The alignedSequence and alignedQuality fields in the alignment |
| 4043 * record will only represent the bases for its respective linear alignment. |
| 4044 */ |
| 4045 core.bool supplementaryAlignment; |
3345 | 4046 |
3346 | 4047 |
3347 Read(); | 4048 Read(); |
3348 | 4049 |
3349 Read.fromJson(core.Map _json) { | 4050 Read.fromJson(core.Map _json) { |
3350 if (_json.containsKey("alignedBases")) { | 4051 if (_json.containsKey("alignedQuality")) { |
3351 alignedBases = _json["alignedBases"]; | 4052 alignedQuality = _json["alignedQuality"]; |
3352 } | 4053 } |
3353 if (_json.containsKey("baseQuality")) { | 4054 if (_json.containsKey("alignedSequence")) { |
3354 baseQuality = _json["baseQuality"]; | 4055 alignedSequence = _json["alignedSequence"]; |
3355 } | 4056 } |
3356 if (_json.containsKey("cigar")) { | 4057 if (_json.containsKey("alignment")) { |
3357 cigar = _json["cigar"]; | 4058 alignment = new LinearAlignment.fromJson(_json["alignment"]); |
3358 } | 4059 } |
3359 if (_json.containsKey("flags")) { | 4060 if (_json.containsKey("duplicateFragment")) { |
3360 flags = _json["flags"]; | 4061 duplicateFragment = _json["duplicateFragment"]; |
| 4062 } |
| 4063 if (_json.containsKey("failedVendorQualityChecks")) { |
| 4064 failedVendorQualityChecks = _json["failedVendorQualityChecks"]; |
| 4065 } |
| 4066 if (_json.containsKey("fragmentLength")) { |
| 4067 fragmentLength = _json["fragmentLength"]; |
| 4068 } |
| 4069 if (_json.containsKey("fragmentName")) { |
| 4070 fragmentName = _json["fragmentName"]; |
3361 } | 4071 } |
3362 if (_json.containsKey("id")) { | 4072 if (_json.containsKey("id")) { |
3363 id = _json["id"]; | 4073 id = _json["id"]; |
3364 } | 4074 } |
3365 if (_json.containsKey("mappingQuality")) { | 4075 if (_json.containsKey("info")) { |
3366 mappingQuality = _json["mappingQuality"]; | 4076 info = _json["info"]; |
3367 } | 4077 } |
3368 if (_json.containsKey("matePosition")) { | 4078 if (_json.containsKey("nextMatePosition")) { |
3369 matePosition = _json["matePosition"]; | 4079 nextMatePosition = new Position.fromJson(_json["nextMatePosition"]); |
3370 } | 4080 } |
3371 if (_json.containsKey("mateReferenceSequenceName")) { | 4081 if (_json.containsKey("numberReads")) { |
3372 mateReferenceSequenceName = _json["mateReferenceSequenceName"]; | 4082 numberReads = _json["numberReads"]; |
| 4083 } |
| 4084 if (_json.containsKey("properPlacement")) { |
| 4085 properPlacement = _json["properPlacement"]; |
| 4086 } |
| 4087 if (_json.containsKey("readGroupId")) { |
| 4088 readGroupId = _json["readGroupId"]; |
| 4089 } |
| 4090 if (_json.containsKey("readGroupSetId")) { |
| 4091 readGroupSetId = _json["readGroupSetId"]; |
| 4092 } |
| 4093 if (_json.containsKey("readNumber")) { |
| 4094 readNumber = _json["readNumber"]; |
| 4095 } |
| 4096 if (_json.containsKey("secondaryAlignment")) { |
| 4097 secondaryAlignment = _json["secondaryAlignment"]; |
| 4098 } |
| 4099 if (_json.containsKey("supplementaryAlignment")) { |
| 4100 supplementaryAlignment = _json["supplementaryAlignment"]; |
| 4101 } |
| 4102 } |
| 4103 |
| 4104 core.Map toJson() { |
| 4105 var _json = new core.Map(); |
| 4106 if (alignedQuality != null) { |
| 4107 _json["alignedQuality"] = alignedQuality; |
| 4108 } |
| 4109 if (alignedSequence != null) { |
| 4110 _json["alignedSequence"] = alignedSequence; |
| 4111 } |
| 4112 if (alignment != null) { |
| 4113 _json["alignment"] = (alignment).toJson(); |
| 4114 } |
| 4115 if (duplicateFragment != null) { |
| 4116 _json["duplicateFragment"] = duplicateFragment; |
| 4117 } |
| 4118 if (failedVendorQualityChecks != null) { |
| 4119 _json["failedVendorQualityChecks"] = failedVendorQualityChecks; |
| 4120 } |
| 4121 if (fragmentLength != null) { |
| 4122 _json["fragmentLength"] = fragmentLength; |
| 4123 } |
| 4124 if (fragmentName != null) { |
| 4125 _json["fragmentName"] = fragmentName; |
| 4126 } |
| 4127 if (id != null) { |
| 4128 _json["id"] = id; |
| 4129 } |
| 4130 if (info != null) { |
| 4131 _json["info"] = info; |
| 4132 } |
| 4133 if (nextMatePosition != null) { |
| 4134 _json["nextMatePosition"] = (nextMatePosition).toJson(); |
| 4135 } |
| 4136 if (numberReads != null) { |
| 4137 _json["numberReads"] = numberReads; |
| 4138 } |
| 4139 if (properPlacement != null) { |
| 4140 _json["properPlacement"] = properPlacement; |
| 4141 } |
| 4142 if (readGroupId != null) { |
| 4143 _json["readGroupId"] = readGroupId; |
| 4144 } |
| 4145 if (readGroupSetId != null) { |
| 4146 _json["readGroupSetId"] = readGroupSetId; |
| 4147 } |
| 4148 if (readNumber != null) { |
| 4149 _json["readNumber"] = readNumber; |
| 4150 } |
| 4151 if (secondaryAlignment != null) { |
| 4152 _json["secondaryAlignment"] = secondaryAlignment; |
| 4153 } |
| 4154 if (supplementaryAlignment != null) { |
| 4155 _json["supplementaryAlignment"] = supplementaryAlignment; |
| 4156 } |
| 4157 return _json; |
| 4158 } |
| 4159 } |
| 4160 |
| 4161 |
| 4162 /** |
| 4163 * A read group is all the data that's processed the same way by the sequencer. |
| 4164 */ |
| 4165 class ReadGroup { |
| 4166 /** The ID of the dataset this read group belongs to. */ |
| 4167 core.String datasetId; |
| 4168 |
| 4169 /** A free-form text description of this read group. */ |
| 4170 core.String description; |
| 4171 |
| 4172 /** The experiment used to generate this read group. */ |
| 4173 ReadGroupExperiment experiment; |
| 4174 |
| 4175 /** |
| 4176 * The generated unique read group ID. Note: This is different than the @RG ID |
| 4177 * field in the SAM spec. For that value, see the name field. |
| 4178 */ |
| 4179 core.String id; |
| 4180 |
| 4181 /** A map of additional read group information. */ |
| 4182 core.Map<core.String, core.List<core.String>> info; |
| 4183 |
| 4184 /** |
| 4185 * The read group name. This corresponds to the @RG ID field in the SAM spec. |
| 4186 */ |
| 4187 core.String name; |
| 4188 |
| 4189 /** |
| 4190 * The predicted insert size of this read group. The insert size is the length |
| 4191 * the sequenced DNA fragment from end-to-end, not including the adapters. |
| 4192 */ |
| 4193 core.int predictedInsertSize; |
| 4194 |
| 4195 /** |
| 4196 * The programs used to generate this read group. Programs are always |
| 4197 * identical for all read groups within a read group set. For this reason, |
| 4198 * only the first read group in a returned set will have this field populated. |
| 4199 */ |
| 4200 core.List<ReadGroupProgram> programs; |
| 4201 |
| 4202 /** |
| 4203 * The reference set the reads in this read group are aligned to. Required if |
| 4204 * there are any read alignments. |
| 4205 */ |
| 4206 core.String referenceSetId; |
| 4207 |
| 4208 /** |
| 4209 * The sample this read group's data was generated from. Note: This is not an |
| 4210 * actual ID within this repository, but rather an identifier for a sample |
| 4211 * which may be meaningful to some external system. |
| 4212 */ |
| 4213 core.String sampleId; |
| 4214 |
| 4215 |
| 4216 ReadGroup(); |
| 4217 |
| 4218 ReadGroup.fromJson(core.Map _json) { |
| 4219 if (_json.containsKey("datasetId")) { |
| 4220 datasetId = _json["datasetId"]; |
| 4221 } |
| 4222 if (_json.containsKey("description")) { |
| 4223 description = _json["description"]; |
| 4224 } |
| 4225 if (_json.containsKey("experiment")) { |
| 4226 experiment = new ReadGroupExperiment.fromJson(_json["experiment"]); |
| 4227 } |
| 4228 if (_json.containsKey("id")) { |
| 4229 id = _json["id"]; |
| 4230 } |
| 4231 if (_json.containsKey("info")) { |
| 4232 info = _json["info"]; |
3373 } | 4233 } |
3374 if (_json.containsKey("name")) { | 4234 if (_json.containsKey("name")) { |
3375 name = _json["name"]; | 4235 name = _json["name"]; |
3376 } | 4236 } |
3377 if (_json.containsKey("originalBases")) { | 4237 if (_json.containsKey("predictedInsertSize")) { |
3378 originalBases = _json["originalBases"]; | 4238 predictedInsertSize = _json["predictedInsertSize"]; |
3379 } | 4239 } |
3380 if (_json.containsKey("position")) { | 4240 if (_json.containsKey("programs")) { |
3381 position = _json["position"]; | 4241 programs = _json["programs"].map((value) => new ReadGroupProgram.fromJson(
value)).toList(); |
3382 } | 4242 } |
3383 if (_json.containsKey("readsetId")) { | 4243 if (_json.containsKey("referenceSetId")) { |
3384 readsetId = _json["readsetId"]; | 4244 referenceSetId = _json["referenceSetId"]; |
3385 } | 4245 } |
3386 if (_json.containsKey("referenceSequenceName")) { | 4246 if (_json.containsKey("sampleId")) { |
3387 referenceSequenceName = _json["referenceSequenceName"]; | 4247 sampleId = _json["sampleId"]; |
3388 } | |
3389 if (_json.containsKey("tags")) { | |
3390 tags = _json["tags"]; | |
3391 } | |
3392 if (_json.containsKey("templateLength")) { | |
3393 templateLength = _json["templateLength"]; | |
3394 } | 4248 } |
3395 } | 4249 } |
3396 | 4250 |
3397 core.Map toJson() { | 4251 core.Map toJson() { |
3398 var _json = new core.Map(); | 4252 var _json = new core.Map(); |
3399 if (alignedBases != null) { | 4253 if (datasetId != null) { |
3400 _json["alignedBases"] = alignedBases; | 4254 _json["datasetId"] = datasetId; |
3401 } | 4255 } |
3402 if (baseQuality != null) { | 4256 if (description != null) { |
3403 _json["baseQuality"] = baseQuality; | 4257 _json["description"] = description; |
3404 } | 4258 } |
3405 if (cigar != null) { | 4259 if (experiment != null) { |
3406 _json["cigar"] = cigar; | 4260 _json["experiment"] = (experiment).toJson(); |
3407 } | |
3408 if (flags != null) { | |
3409 _json["flags"] = flags; | |
3410 } | 4261 } |
3411 if (id != null) { | 4262 if (id != null) { |
3412 _json["id"] = id; | 4263 _json["id"] = id; |
3413 } | 4264 } |
3414 if (mappingQuality != null) { | 4265 if (info != null) { |
3415 _json["mappingQuality"] = mappingQuality; | 4266 _json["info"] = info; |
3416 } | |
3417 if (matePosition != null) { | |
3418 _json["matePosition"] = matePosition; | |
3419 } | |
3420 if (mateReferenceSequenceName != null) { | |
3421 _json["mateReferenceSequenceName"] = mateReferenceSequenceName; | |
3422 } | 4267 } |
3423 if (name != null) { | 4268 if (name != null) { |
3424 _json["name"] = name; | 4269 _json["name"] = name; |
3425 } | 4270 } |
3426 if (originalBases != null) { | 4271 if (predictedInsertSize != null) { |
3427 _json["originalBases"] = originalBases; | 4272 _json["predictedInsertSize"] = predictedInsertSize; |
3428 } | 4273 } |
3429 if (position != null) { | 4274 if (programs != null) { |
3430 _json["position"] = position; | 4275 _json["programs"] = programs.map((value) => (value).toJson()).toList(); |
3431 } | 4276 } |
3432 if (readsetId != null) { | 4277 if (referenceSetId != null) { |
3433 _json["readsetId"] = readsetId; | 4278 _json["referenceSetId"] = referenceSetId; |
3434 } | 4279 } |
3435 if (referenceSequenceName != null) { | 4280 if (sampleId != null) { |
3436 _json["referenceSequenceName"] = referenceSequenceName; | 4281 _json["sampleId"] = sampleId; |
3437 } | |
3438 if (tags != null) { | |
3439 _json["tags"] = tags; | |
3440 } | |
3441 if (templateLength != null) { | |
3442 _json["templateLength"] = templateLength; | |
3443 } | 4282 } |
3444 return _json; | 4283 return _json; |
3445 } | 4284 } |
3446 } | 4285 } |
3447 | 4286 |
3448 | 4287 |
3449 /** Not documented yet. */ | 4288 /** Not documented yet. */ |
3450 class ReadGroup { | 4289 class ReadGroupExperiment { |
3451 /** (DT) Date the run was produced (ISO8601 date or date/time). */ | 4290 /** |
3452 core.String date; | 4291 * The instrument model used as part of this experiment. This maps to |
3453 | 4292 * sequencing technology in BAM. |
3454 /** (DS) Description. */ | 4293 */ |
3455 core.String description; | 4294 core.String instrumentModel; |
3456 | 4295 |
3457 /** | 4296 /** |
3458 * (FO) Flow order. The array of nucleotide bases that correspond to the | 4297 * The library used as part of this experiment. Note: This is not an actual ID |
3459 * nucleotides used for each flow of each read. | 4298 * within this repository, but rather an identifier for a library which may be |
3460 */ | 4299 * meaningful to some external system. |
3461 core.String flowOrder; | 4300 */ |
3462 | 4301 core.String libraryId; |
3463 /** (ID) Read group identifier. */ | 4302 |
| 4303 /** |
| 4304 * The platform unit used as part of this experiment e.g. |
| 4305 * flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the |
| 4306 */ |
| 4307 core.String platformUnit; |
| 4308 |
| 4309 /** The sequencing center used as part of this experiment. */ |
| 4310 core.String sequencingCenter; |
| 4311 |
| 4312 |
| 4313 ReadGroupExperiment(); |
| 4314 |
| 4315 ReadGroupExperiment.fromJson(core.Map _json) { |
| 4316 if (_json.containsKey("instrumentModel")) { |
| 4317 instrumentModel = _json["instrumentModel"]; |
| 4318 } |
| 4319 if (_json.containsKey("libraryId")) { |
| 4320 libraryId = _json["libraryId"]; |
| 4321 } |
| 4322 if (_json.containsKey("platformUnit")) { |
| 4323 platformUnit = _json["platformUnit"]; |
| 4324 } |
| 4325 if (_json.containsKey("sequencingCenter")) { |
| 4326 sequencingCenter = _json["sequencingCenter"]; |
| 4327 } |
| 4328 } |
| 4329 |
| 4330 core.Map toJson() { |
| 4331 var _json = new core.Map(); |
| 4332 if (instrumentModel != null) { |
| 4333 _json["instrumentModel"] = instrumentModel; |
| 4334 } |
| 4335 if (libraryId != null) { |
| 4336 _json["libraryId"] = libraryId; |
| 4337 } |
| 4338 if (platformUnit != null) { |
| 4339 _json["platformUnit"] = platformUnit; |
| 4340 } |
| 4341 if (sequencingCenter != null) { |
| 4342 _json["sequencingCenter"] = sequencingCenter; |
| 4343 } |
| 4344 return _json; |
| 4345 } |
| 4346 } |
| 4347 |
| 4348 |
| 4349 /** Not documented yet. */ |
| 4350 class ReadGroupProgram { |
| 4351 /** The command line used to run this program. */ |
| 4352 core.String commandLine; |
| 4353 |
| 4354 /** |
| 4355 * The user specified locally unique ID of the program. Used along with |
| 4356 * prevProgramId to define an ordering between programs. |
| 4357 */ |
3464 core.String id; | 4358 core.String id; |
3465 | 4359 |
3466 /** | 4360 /** The name of the program. */ |
3467 * (KS) The array of nucleotide bases that correspond to the key sequence of | 4361 core.String name; |
3468 * each read. | 4362 |
3469 */ | 4363 /** The ID of the program run before this one. */ |
3470 core.String keySequence; | 4364 core.String prevProgramId; |
3471 | 4365 |
3472 /** (LS) Library. */ | 4366 /** The version of the program run. */ |
3473 core.String library; | 4367 core.String version; |
3474 | 4368 |
3475 /** (PU) Platform unit. */ | 4369 |
3476 core.String platformUnit; | 4370 ReadGroupProgram(); |
3477 | 4371 |
3478 /** (PI) Predicted median insert size. */ | 4372 ReadGroupProgram.fromJson(core.Map _json) { |
3479 core.int predictedInsertSize; | 4373 if (_json.containsKey("commandLine")) { |
3480 | 4374 commandLine = _json["commandLine"]; |
3481 /** (PG) Programs used for processing the read group. */ | |
3482 core.String processingProgram; | |
3483 | |
3484 /** (SM) Sample. */ | |
3485 core.String sample; | |
3486 | |
3487 /** (CN) Name of sequencing center producing the read. */ | |
3488 core.String sequencingCenterName; | |
3489 | |
3490 /** (PL) Platform/technology used to produce the reads. */ | |
3491 core.String sequencingTechnology; | |
3492 | |
3493 | |
3494 ReadGroup(); | |
3495 | |
3496 ReadGroup.fromJson(core.Map _json) { | |
3497 if (_json.containsKey("date")) { | |
3498 date = _json["date"]; | |
3499 } | |
3500 if (_json.containsKey("description")) { | |
3501 description = _json["description"]; | |
3502 } | |
3503 if (_json.containsKey("flowOrder")) { | |
3504 flowOrder = _json["flowOrder"]; | |
3505 } | 4375 } |
3506 if (_json.containsKey("id")) { | 4376 if (_json.containsKey("id")) { |
3507 id = _json["id"]; | 4377 id = _json["id"]; |
3508 } | 4378 } |
3509 if (_json.containsKey("keySequence")) { | 4379 if (_json.containsKey("name")) { |
3510 keySequence = _json["keySequence"]; | 4380 name = _json["name"]; |
3511 } | 4381 } |
3512 if (_json.containsKey("library")) { | 4382 if (_json.containsKey("prevProgramId")) { |
3513 library = _json["library"]; | 4383 prevProgramId = _json["prevProgramId"]; |
3514 } | 4384 } |
3515 if (_json.containsKey("platformUnit")) { | 4385 if (_json.containsKey("version")) { |
3516 platformUnit = _json["platformUnit"]; | 4386 version = _json["version"]; |
3517 } | |
3518 if (_json.containsKey("predictedInsertSize")) { | |
3519 predictedInsertSize = _json["predictedInsertSize"]; | |
3520 } | |
3521 if (_json.containsKey("processingProgram")) { | |
3522 processingProgram = _json["processingProgram"]; | |
3523 } | |
3524 if (_json.containsKey("sample")) { | |
3525 sample = _json["sample"]; | |
3526 } | |
3527 if (_json.containsKey("sequencingCenterName")) { | |
3528 sequencingCenterName = _json["sequencingCenterName"]; | |
3529 } | |
3530 if (_json.containsKey("sequencingTechnology")) { | |
3531 sequencingTechnology = _json["sequencingTechnology"]; | |
3532 } | 4387 } |
3533 } | 4388 } |
3534 | 4389 |
3535 core.Map toJson() { | 4390 core.Map toJson() { |
3536 var _json = new core.Map(); | 4391 var _json = new core.Map(); |
3537 if (date != null) { | 4392 if (commandLine != null) { |
3538 _json["date"] = date; | 4393 _json["commandLine"] = commandLine; |
3539 } | |
3540 if (description != null) { | |
3541 _json["description"] = description; | |
3542 } | |
3543 if (flowOrder != null) { | |
3544 _json["flowOrder"] = flowOrder; | |
3545 } | 4394 } |
3546 if (id != null) { | 4395 if (id != null) { |
3547 _json["id"] = id; | 4396 _json["id"] = id; |
3548 } | 4397 } |
3549 if (keySequence != null) { | 4398 if (name != null) { |
3550 _json["keySequence"] = keySequence; | 4399 _json["name"] = name; |
3551 } | 4400 } |
3552 if (library != null) { | 4401 if (prevProgramId != null) { |
3553 _json["library"] = library; | 4402 _json["prevProgramId"] = prevProgramId; |
3554 } | 4403 } |
3555 if (platformUnit != null) { | 4404 if (version != null) { |
3556 _json["platformUnit"] = platformUnit; | 4405 _json["version"] = version; |
3557 } | |
3558 if (predictedInsertSize != null) { | |
3559 _json["predictedInsertSize"] = predictedInsertSize; | |
3560 } | |
3561 if (processingProgram != null) { | |
3562 _json["processingProgram"] = processingProgram; | |
3563 } | |
3564 if (sample != null) { | |
3565 _json["sample"] = sample; | |
3566 } | |
3567 if (sequencingCenterName != null) { | |
3568 _json["sequencingCenterName"] = sequencingCenterName; | |
3569 } | |
3570 if (sequencingTechnology != null) { | |
3571 _json["sequencingTechnology"] = sequencingTechnology; | |
3572 } | 4406 } |
3573 return _json; | 4407 return _json; |
3574 } | 4408 } |
3575 } | 4409 } |
3576 | 4410 |
3577 | 4411 |
3578 /** A Readset is a collection of Reads. */ | 4412 /** |
3579 class Readset { | 4413 * A read group set is a logical collection of read groups, which are |
3580 /** The ID of the dataset this readset belongs to. */ | 4414 * collections of reads produced by a sequencer. A read group set typically |
| 4415 * models reads corresponding to one sample, sequenced one way, and aligned one |
| 4416 * way. |
| 4417 * - A read group set belongs to one dataset. |
| 4418 * - A read group belongs to one read group set. |
| 4419 * - A read belongs to one read group. |
| 4420 */ |
| 4421 class ReadGroupSet { |
| 4422 /** The dataset ID. */ |
3581 core.String datasetId; | 4423 core.String datasetId; |
3582 | 4424 |
3583 /** | 4425 /** |
3584 * File information from the original BAM import. See the BAM format | 4426 * The filename of the original source file for this read group set, if any. |
3585 * specification for additional information on each field. | 4427 */ |
3586 */ | 4428 core.String filename; |
3587 core.List<HeaderSection> fileData; | 4429 |
3588 | 4430 /** The read group set ID. */ |
3589 /** The Google generated ID of the readset, immutable. */ | |
3590 core.String id; | 4431 core.String id; |
3591 | 4432 |
3592 /** The readset name, typically this is the sample name. */ | 4433 /** |
| 4434 * The read group set name. By default this will be initialized to the sample |
| 4435 * name of the sequenced data contained in this set. |
| 4436 */ |
3593 core.String name; | 4437 core.String name; |
3594 | 4438 |
3595 | 4439 /** |
3596 Readset(); | 4440 * The read groups in this set. There are typically 1-10 read groups in a read |
3597 | 4441 * group set. |
3598 Readset.fromJson(core.Map _json) { | 4442 */ |
| 4443 core.List<ReadGroup> readGroups; |
| 4444 |
| 4445 /** The reference set the reads in this read group set are aligned to. */ |
| 4446 core.String referenceSetId; |
| 4447 |
| 4448 |
| 4449 ReadGroupSet(); |
| 4450 |
| 4451 ReadGroupSet.fromJson(core.Map _json) { |
3599 if (_json.containsKey("datasetId")) { | 4452 if (_json.containsKey("datasetId")) { |
3600 datasetId = _json["datasetId"]; | 4453 datasetId = _json["datasetId"]; |
3601 } | 4454 } |
3602 if (_json.containsKey("fileData")) { | 4455 if (_json.containsKey("filename")) { |
3603 fileData = _json["fileData"].map((value) => new HeaderSection.fromJson(val
ue)).toList(); | 4456 filename = _json["filename"]; |
3604 } | 4457 } |
3605 if (_json.containsKey("id")) { | 4458 if (_json.containsKey("id")) { |
3606 id = _json["id"]; | 4459 id = _json["id"]; |
3607 } | 4460 } |
3608 if (_json.containsKey("name")) { | 4461 if (_json.containsKey("name")) { |
3609 name = _json["name"]; | 4462 name = _json["name"]; |
3610 } | 4463 } |
| 4464 if (_json.containsKey("readGroups")) { |
| 4465 readGroups = _json["readGroups"].map((value) => new ReadGroup.fromJson(val
ue)).toList(); |
| 4466 } |
| 4467 if (_json.containsKey("referenceSetId")) { |
| 4468 referenceSetId = _json["referenceSetId"]; |
| 4469 } |
3611 } | 4470 } |
3612 | 4471 |
3613 core.Map toJson() { | 4472 core.Map toJson() { |
3614 var _json = new core.Map(); | 4473 var _json = new core.Map(); |
3615 if (datasetId != null) { | 4474 if (datasetId != null) { |
3616 _json["datasetId"] = datasetId; | 4475 _json["datasetId"] = datasetId; |
3617 } | 4476 } |
3618 if (fileData != null) { | 4477 if (filename != null) { |
3619 _json["fileData"] = fileData.map((value) => (value).toJson()).toList(); | 4478 _json["filename"] = filename; |
3620 } | 4479 } |
3621 if (id != null) { | 4480 if (id != null) { |
3622 _json["id"] = id; | 4481 _json["id"] = id; |
3623 } | 4482 } |
3624 if (name != null) { | 4483 if (name != null) { |
3625 _json["name"] = name; | 4484 _json["name"] = name; |
3626 } | 4485 } |
| 4486 if (readGroups != null) { |
| 4487 _json["readGroups"] = readGroups.map((value) => (value).toJson()).toList()
; |
| 4488 } |
| 4489 if (referenceSetId != null) { |
| 4490 _json["referenceSetId"] = referenceSetId; |
| 4491 } |
3627 return _json; | 4492 return _json; |
3628 } | 4493 } |
3629 } | 4494 } |
| 4495 |
| 4496 |
| 4497 /** |
| 4498 * A reference is a canonical assembled DNA sequence, intended to act as a |
| 4499 * reference coordinate space for other genomic annotations. A single reference |
| 4500 * might represent the human chromosome 1 or mitochandrial DNA, for instance. A |
| 4501 * reference belongs to one or more reference sets. |
| 4502 */ |
| 4503 class Reference { |
| 4504 /** The Google generated immutable ID of the reference. */ |
| 4505 core.String id; |
| 4506 |
| 4507 /** The length of this reference's sequence. */ |
| 4508 core.String length; |
| 4509 |
| 4510 /** |
| 4511 * MD5 of the upper-case sequence excluding all whitespace characters (this is |
| 4512 * equivalent to SQ:M5 in SAM). This value is represented in lower case |
| 4513 * hexadecimal format. |
| 4514 */ |
| 4515 core.String md5checksum; |
| 4516 |
| 4517 /** The name of this reference, for example 22. */ |
| 4518 core.String name; |
| 4519 |
| 4520 /** |
| 4521 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not |
| 4522 * specified by the containing reference set. |
| 4523 */ |
| 4524 core.int ncbiTaxonId; |
| 4525 |
| 4526 /** |
| 4527 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally |
| 4528 * with a version number, for example GCF_000001405.26. |
| 4529 */ |
| 4530 core.List<core.String> sourceAccessions; |
| 4531 |
| 4532 /** |
| 4533 * The URI from which the sequence was obtained. Specifies a FASTA format |
| 4534 * file/string with one name, sequence pair. |
| 4535 */ |
| 4536 core.String sourceURI; |
| 4537 |
| 4538 |
| 4539 Reference(); |
| 4540 |
| 4541 Reference.fromJson(core.Map _json) { |
| 4542 if (_json.containsKey("id")) { |
| 4543 id = _json["id"]; |
| 4544 } |
| 4545 if (_json.containsKey("length")) { |
| 4546 length = _json["length"]; |
| 4547 } |
| 4548 if (_json.containsKey("md5checksum")) { |
| 4549 md5checksum = _json["md5checksum"]; |
| 4550 } |
| 4551 if (_json.containsKey("name")) { |
| 4552 name = _json["name"]; |
| 4553 } |
| 4554 if (_json.containsKey("ncbiTaxonId")) { |
| 4555 ncbiTaxonId = _json["ncbiTaxonId"]; |
| 4556 } |
| 4557 if (_json.containsKey("sourceAccessions")) { |
| 4558 sourceAccessions = _json["sourceAccessions"]; |
| 4559 } |
| 4560 if (_json.containsKey("sourceURI")) { |
| 4561 sourceURI = _json["sourceURI"]; |
| 4562 } |
| 4563 } |
| 4564 |
| 4565 core.Map toJson() { |
| 4566 var _json = new core.Map(); |
| 4567 if (id != null) { |
| 4568 _json["id"] = id; |
| 4569 } |
| 4570 if (length != null) { |
| 4571 _json["length"] = length; |
| 4572 } |
| 4573 if (md5checksum != null) { |
| 4574 _json["md5checksum"] = md5checksum; |
| 4575 } |
| 4576 if (name != null) { |
| 4577 _json["name"] = name; |
| 4578 } |
| 4579 if (ncbiTaxonId != null) { |
| 4580 _json["ncbiTaxonId"] = ncbiTaxonId; |
| 4581 } |
| 4582 if (sourceAccessions != null) { |
| 4583 _json["sourceAccessions"] = sourceAccessions; |
| 4584 } |
| 4585 if (sourceURI != null) { |
| 4586 _json["sourceURI"] = sourceURI; |
| 4587 } |
| 4588 return _json; |
| 4589 } |
| 4590 } |
3630 | 4591 |
3631 | 4592 |
3632 /** | 4593 /** |
3633 * ReferenceBound records an upper bound for the starting coordinate of variants | 4594 * ReferenceBound records an upper bound for the starting coordinate of variants |
3634 * in a particular reference. | 4595 * in a particular reference. |
3635 */ | 4596 */ |
3636 class ReferenceBound { | 4597 class ReferenceBound { |
3637 /** The reference the bound is associate with. */ | 4598 /** The reference the bound is associate with. */ |
3638 core.String referenceName; | 4599 core.String referenceName; |
3639 | 4600 |
(...skipping 21 matching lines...) Expand all Loading... |
3661 _json["referenceName"] = referenceName; | 4622 _json["referenceName"] = referenceName; |
3662 } | 4623 } |
3663 if (upperBound != null) { | 4624 if (upperBound != null) { |
3664 _json["upperBound"] = upperBound; | 4625 _json["upperBound"] = upperBound; |
3665 } | 4626 } |
3666 return _json; | 4627 return _json; |
3667 } | 4628 } |
3668 } | 4629 } |
3669 | 4630 |
3670 | 4631 |
3671 /** Not documented yet. */ | 4632 /** |
3672 class ReferenceSequence { | 4633 * A reference set is a set of references which typically comprise a reference |
3673 /** (AS) Genome assembly identifier. */ | 4634 * assembly for a species, such as GRCh38 which is representative of the human |
| 4635 * genome. A reference set defines a common coordinate space for comparing |
| 4636 * reference-aligned experimental data. A reference set contains 1 or more |
| 4637 * references. |
| 4638 */ |
| 4639 class ReferenceSet { |
| 4640 /** Public id of this reference set, such as GRCh37. */ |
3674 core.String assemblyId; | 4641 core.String assemblyId; |
3675 | 4642 |
3676 /** (LN) Reference sequence length. */ | 4643 /** Optional free text description of this reference set. */ |
3677 core.int length; | 4644 core.String description; |
| 4645 |
| 4646 /** The Google generated immutable ID of the reference set. */ |
| 4647 core.String id; |
3678 | 4648 |
3679 /** | 4649 /** |
3680 * (M5) MD5 checksum of the sequence in the uppercase, excluding spaces but | 4650 * Order-independent MD5 checksum which identifies this reference set. The |
3681 * including pads as *. | 4651 * checksum is computed by sorting all lower case hexidecimal string |
| 4652 * reference.md5checksum (for all reference in this set) in ascending |
| 4653 * lexicographic order, concatenating, and taking the MD5 of that value. The |
| 4654 * resulting value is represented in lower case hexadecimal format. |
3682 */ | 4655 */ |
3683 core.String md5Checksum; | 4656 core.String md5checksum; |
3684 | 4657 |
3685 /** (SN) Reference sequence name. */ | 4658 /** |
3686 core.String name; | 4659 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating |
| 4660 * the species which this assembly is intended to model. Note that contained |
| 4661 * references may specify a different ncbiTaxonId, as assemblies may contain |
| 4662 * reference sequences which do not belong to the modeled species, e.g. EBV in |
| 4663 * a human reference genome. |
| 4664 */ |
| 4665 core.int ncbiTaxonId; |
3687 | 4666 |
3688 /** (SP) Species. */ | 4667 /** |
3689 core.String species; | 4668 * The IDs of the reference objects that are part of this set. |
| 4669 * Reference.md5checksum must be unique within this set. |
| 4670 */ |
| 4671 core.List<core.String> referenceIds; |
3690 | 4672 |
3691 /** (UR) URI of the sequence. */ | 4673 /** |
3692 core.String uri; | 4674 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally |
| 4675 * with a version number, for example NC_000001.11. |
| 4676 */ |
| 4677 core.List<core.String> sourceAccessions; |
| 4678 |
| 4679 /** The URI from which the references were obtained. */ |
| 4680 core.String sourceURI; |
3693 | 4681 |
3694 | 4682 |
3695 ReferenceSequence(); | 4683 ReferenceSet(); |
3696 | 4684 |
3697 ReferenceSequence.fromJson(core.Map _json) { | 4685 ReferenceSet.fromJson(core.Map _json) { |
3698 if (_json.containsKey("assemblyId")) { | 4686 if (_json.containsKey("assemblyId")) { |
3699 assemblyId = _json["assemblyId"]; | 4687 assemblyId = _json["assemblyId"]; |
3700 } | 4688 } |
3701 if (_json.containsKey("length")) { | 4689 if (_json.containsKey("description")) { |
3702 length = _json["length"]; | 4690 description = _json["description"]; |
3703 } | 4691 } |
3704 if (_json.containsKey("md5Checksum")) { | 4692 if (_json.containsKey("id")) { |
3705 md5Checksum = _json["md5Checksum"]; | 4693 id = _json["id"]; |
3706 } | 4694 } |
3707 if (_json.containsKey("name")) { | 4695 if (_json.containsKey("md5checksum")) { |
3708 name = _json["name"]; | 4696 md5checksum = _json["md5checksum"]; |
3709 } | 4697 } |
3710 if (_json.containsKey("species")) { | 4698 if (_json.containsKey("ncbiTaxonId")) { |
3711 species = _json["species"]; | 4699 ncbiTaxonId = _json["ncbiTaxonId"]; |
3712 } | 4700 } |
3713 if (_json.containsKey("uri")) { | 4701 if (_json.containsKey("referenceIds")) { |
3714 uri = _json["uri"]; | 4702 referenceIds = _json["referenceIds"]; |
| 4703 } |
| 4704 if (_json.containsKey("sourceAccessions")) { |
| 4705 sourceAccessions = _json["sourceAccessions"]; |
| 4706 } |
| 4707 if (_json.containsKey("sourceURI")) { |
| 4708 sourceURI = _json["sourceURI"]; |
3715 } | 4709 } |
3716 } | 4710 } |
3717 | 4711 |
3718 core.Map toJson() { | 4712 core.Map toJson() { |
3719 var _json = new core.Map(); | 4713 var _json = new core.Map(); |
3720 if (assemblyId != null) { | 4714 if (assemblyId != null) { |
3721 _json["assemblyId"] = assemblyId; | 4715 _json["assemblyId"] = assemblyId; |
3722 } | 4716 } |
3723 if (length != null) { | 4717 if (description != null) { |
3724 _json["length"] = length; | 4718 _json["description"] = description; |
3725 } | 4719 } |
3726 if (md5Checksum != null) { | 4720 if (id != null) { |
3727 _json["md5Checksum"] = md5Checksum; | 4721 _json["id"] = id; |
3728 } | 4722 } |
3729 if (name != null) { | 4723 if (md5checksum != null) { |
3730 _json["name"] = name; | 4724 _json["md5checksum"] = md5checksum; |
3731 } | 4725 } |
3732 if (species != null) { | 4726 if (ncbiTaxonId != null) { |
3733 _json["species"] = species; | 4727 _json["ncbiTaxonId"] = ncbiTaxonId; |
3734 } | 4728 } |
3735 if (uri != null) { | 4729 if (referenceIds != null) { |
3736 _json["uri"] = uri; | 4730 _json["referenceIds"] = referenceIds; |
| 4731 } |
| 4732 if (sourceAccessions != null) { |
| 4733 _json["sourceAccessions"] = sourceAccessions; |
| 4734 } |
| 4735 if (sourceURI != null) { |
| 4736 _json["sourceURI"] = sourceURI; |
3737 } | 4737 } |
3738 return _json; | 4738 return _json; |
3739 } | 4739 } |
3740 } | 4740 } |
3741 | 4741 |
3742 | 4742 |
3743 /** The call set search request. */ | 4743 /** The call set search request. */ |
3744 class SearchCallSetsRequest { | 4744 class SearchCallSetsRequest { |
3745 /** | 4745 /** |
3746 * Only return call sets for which a substring of the name matches this | 4746 * Only return call sets for which a substring of the name matches this |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3849 /** | 4849 /** |
3850 * If specified, only jobs created prior to this date, given in milliseconds | 4850 * If specified, only jobs created prior to this date, given in milliseconds |
3851 * since Unix epoch, will be returned. | 4851 * since Unix epoch, will be returned. |
3852 */ | 4852 */ |
3853 core.String createdBefore; | 4853 core.String createdBefore; |
3854 | 4854 |
3855 /** | 4855 /** |
3856 * Specifies the number of results to return in a single page. Defaults to | 4856 * Specifies the number of results to return in a single page. Defaults to |
3857 * 128. The maximum value is 256. | 4857 * 128. The maximum value is 256. |
3858 */ | 4858 */ |
3859 core.String maxResults; | 4859 core.int pageSize; |
3860 | 4860 |
3861 /** | 4861 /** |
3862 * The continuation token which is used to page through large result sets. To | 4862 * The continuation token which is used to page through large result sets. To |
3863 * get the next page of results, set this parameter to the value of the | 4863 * get the next page of results, set this parameter to the value of the |
3864 * nextPageToken from the previous response. | 4864 * nextPageToken from the previous response. |
3865 */ | 4865 */ |
3866 core.String pageToken; | 4866 core.String pageToken; |
3867 | 4867 |
3868 /** Required. Only return jobs which belong to this Google Developers */ | 4868 /** Required. Only return jobs which belong to this Google Developers */ |
3869 core.String projectId; | 4869 core.String projectNumber; |
3870 | 4870 |
3871 /** Only return jobs which have a matching status. */ | 4871 /** Only return jobs which have a matching status. */ |
3872 core.List<core.String> status; | 4872 core.List<core.String> status; |
3873 | 4873 |
3874 | 4874 |
3875 SearchJobsRequest(); | 4875 SearchJobsRequest(); |
3876 | 4876 |
3877 SearchJobsRequest.fromJson(core.Map _json) { | 4877 SearchJobsRequest.fromJson(core.Map _json) { |
3878 if (_json.containsKey("createdAfter")) { | 4878 if (_json.containsKey("createdAfter")) { |
3879 createdAfter = _json["createdAfter"]; | 4879 createdAfter = _json["createdAfter"]; |
3880 } | 4880 } |
3881 if (_json.containsKey("createdBefore")) { | 4881 if (_json.containsKey("createdBefore")) { |
3882 createdBefore = _json["createdBefore"]; | 4882 createdBefore = _json["createdBefore"]; |
3883 } | 4883 } |
3884 if (_json.containsKey("maxResults")) { | 4884 if (_json.containsKey("pageSize")) { |
3885 maxResults = _json["maxResults"]; | 4885 pageSize = _json["pageSize"]; |
3886 } | 4886 } |
3887 if (_json.containsKey("pageToken")) { | 4887 if (_json.containsKey("pageToken")) { |
3888 pageToken = _json["pageToken"]; | 4888 pageToken = _json["pageToken"]; |
3889 } | 4889 } |
3890 if (_json.containsKey("projectId")) { | 4890 if (_json.containsKey("projectNumber")) { |
3891 projectId = _json["projectId"]; | 4891 projectNumber = _json["projectNumber"]; |
3892 } | 4892 } |
3893 if (_json.containsKey("status")) { | 4893 if (_json.containsKey("status")) { |
3894 status = _json["status"]; | 4894 status = _json["status"]; |
3895 } | 4895 } |
3896 } | 4896 } |
3897 | 4897 |
3898 core.Map toJson() { | 4898 core.Map toJson() { |
3899 var _json = new core.Map(); | 4899 var _json = new core.Map(); |
3900 if (createdAfter != null) { | 4900 if (createdAfter != null) { |
3901 _json["createdAfter"] = createdAfter; | 4901 _json["createdAfter"] = createdAfter; |
3902 } | 4902 } |
3903 if (createdBefore != null) { | 4903 if (createdBefore != null) { |
3904 _json["createdBefore"] = createdBefore; | 4904 _json["createdBefore"] = createdBefore; |
3905 } | 4905 } |
3906 if (maxResults != null) { | 4906 if (pageSize != null) { |
3907 _json["maxResults"] = maxResults; | 4907 _json["pageSize"] = pageSize; |
3908 } | 4908 } |
3909 if (pageToken != null) { | 4909 if (pageToken != null) { |
3910 _json["pageToken"] = pageToken; | 4910 _json["pageToken"] = pageToken; |
3911 } | 4911 } |
3912 if (projectId != null) { | 4912 if (projectNumber != null) { |
3913 _json["projectId"] = projectId; | 4913 _json["projectNumber"] = projectNumber; |
3914 } | 4914 } |
3915 if (status != null) { | 4915 if (status != null) { |
3916 _json["status"] = status; | 4916 _json["status"] = status; |
3917 } | 4917 } |
3918 return _json; | 4918 return _json; |
3919 } | 4919 } |
3920 } | 4920 } |
3921 | 4921 |
3922 | 4922 |
3923 /** The job search response. */ | 4923 /** The job search response. */ |
(...skipping 26 matching lines...) Expand all Loading... |
3950 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 4950 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); |
3951 } | 4951 } |
3952 if (nextPageToken != null) { | 4952 if (nextPageToken != null) { |
3953 _json["nextPageToken"] = nextPageToken; | 4953 _json["nextPageToken"] = nextPageToken; |
3954 } | 4954 } |
3955 return _json; | 4955 return _json; |
3956 } | 4956 } |
3957 } | 4957 } |
3958 | 4958 |
3959 | 4959 |
| 4960 /** The read group set search request. */ |
| 4961 class SearchReadGroupSetsRequest { |
| 4962 /** |
| 4963 * Restricts this query to read group sets within the given datasets. At least |
| 4964 * one ID must be provided. |
| 4965 */ |
| 4966 core.List<core.String> datasetIds; |
| 4967 |
| 4968 /** |
| 4969 * Only return read group sets for which a substring of the name matches this |
| 4970 * string. |
| 4971 */ |
| 4972 core.String name; |
| 4973 |
| 4974 /** |
| 4975 * Specifies number of results to return in a single page. If unspecified, it |
| 4976 * will default to 128. The maximum value is 1024. |
| 4977 */ |
| 4978 core.int pageSize; |
| 4979 |
| 4980 /** |
| 4981 * The continuation token, which is used to page through large result sets. To |
| 4982 * get the next page of results, set this parameter to the value of |
| 4983 * nextPageToken from the previous response. |
| 4984 */ |
| 4985 core.String pageToken; |
| 4986 |
| 4987 |
| 4988 SearchReadGroupSetsRequest(); |
| 4989 |
| 4990 SearchReadGroupSetsRequest.fromJson(core.Map _json) { |
| 4991 if (_json.containsKey("datasetIds")) { |
| 4992 datasetIds = _json["datasetIds"]; |
| 4993 } |
| 4994 if (_json.containsKey("name")) { |
| 4995 name = _json["name"]; |
| 4996 } |
| 4997 if (_json.containsKey("pageSize")) { |
| 4998 pageSize = _json["pageSize"]; |
| 4999 } |
| 5000 if (_json.containsKey("pageToken")) { |
| 5001 pageToken = _json["pageToken"]; |
| 5002 } |
| 5003 } |
| 5004 |
| 5005 core.Map toJson() { |
| 5006 var _json = new core.Map(); |
| 5007 if (datasetIds != null) { |
| 5008 _json["datasetIds"] = datasetIds; |
| 5009 } |
| 5010 if (name != null) { |
| 5011 _json["name"] = name; |
| 5012 } |
| 5013 if (pageSize != null) { |
| 5014 _json["pageSize"] = pageSize; |
| 5015 } |
| 5016 if (pageToken != null) { |
| 5017 _json["pageToken"] = pageToken; |
| 5018 } |
| 5019 return _json; |
| 5020 } |
| 5021 } |
| 5022 |
| 5023 |
| 5024 /** The read group set search response. */ |
| 5025 class SearchReadGroupSetsResponse { |
| 5026 /** |
| 5027 * The continuation token, which is used to page through large result sets. |
| 5028 * Provide this value in a subsequent request to return the next page of |
| 5029 * results. This field will be empty if there aren't any additional results. |
| 5030 */ |
| 5031 core.String nextPageToken; |
| 5032 |
| 5033 /** The list of matching read group sets. */ |
| 5034 core.List<ReadGroupSet> readGroupSets; |
| 5035 |
| 5036 |
| 5037 SearchReadGroupSetsResponse(); |
| 5038 |
| 5039 SearchReadGroupSetsResponse.fromJson(core.Map _json) { |
| 5040 if (_json.containsKey("nextPageToken")) { |
| 5041 nextPageToken = _json["nextPageToken"]; |
| 5042 } |
| 5043 if (_json.containsKey("readGroupSets")) { |
| 5044 readGroupSets = _json["readGroupSets"].map((value) => new ReadGroupSet.fro
mJson(value)).toList(); |
| 5045 } |
| 5046 } |
| 5047 |
| 5048 core.Map toJson() { |
| 5049 var _json = new core.Map(); |
| 5050 if (nextPageToken != null) { |
| 5051 _json["nextPageToken"] = nextPageToken; |
| 5052 } |
| 5053 if (readGroupSets != null) { |
| 5054 _json["readGroupSets"] = readGroupSets.map((value) => (value).toJson()).to
List(); |
| 5055 } |
| 5056 return _json; |
| 5057 } |
| 5058 } |
| 5059 |
| 5060 |
3960 /** The read search request. */ | 5061 /** The read search request. */ |
3961 class SearchReadsRequest { | 5062 class SearchReadsRequest { |
3962 /** | 5063 /** |
| 5064 * The end position of the range on the reference, 0-based exclusive. If |
| 5065 * specified, referenceName must also be specified. |
| 5066 */ |
| 5067 core.String end; |
| 5068 |
| 5069 /** |
3963 * Specifies number of results to return in a single page. If unspecified, it | 5070 * Specifies number of results to return in a single page. If unspecified, it |
3964 * will default to 256. The maximum value is 2048. | 5071 * will default to 256. The maximum value is 2048. |
3965 */ | 5072 */ |
3966 core.String maxResults; | 5073 core.int pageSize; |
3967 | 5074 |
3968 /** | 5075 /** |
3969 * The continuation token, which is used to page through large result sets. To | 5076 * The continuation token, which is used to page through large result sets. To |
3970 * get the next page of results, set this parameter to the value of | 5077 * get the next page of results, set this parameter to the value of |
3971 * nextPageToken from the previous response. | 5078 * nextPageToken from the previous response. |
3972 */ | 5079 */ |
3973 core.String pageToken; | 5080 core.String pageToken; |
3974 | 5081 |
3975 /** | 5082 /** |
3976 * The readsets within which to search for reads. At least one readset ID must | 5083 * The IDs of the read groups within which to search for reads. All specified |
3977 * be provided. All specified readsets must be aligned against a common set of | 5084 * read groups must belong to the same read group sets. Must specify one of |
3978 * reference sequences; this defines the genomic coordinates for the query. | 5085 * readGroupSetIds or readGroupIds. |
3979 */ | 5086 */ |
3980 core.List<core.String> readsetIds; | 5087 core.List<core.String> readGroupIds; |
3981 | 5088 |
3982 /** | 5089 /** |
3983 * The end position (1-based, inclusive) of the target range. If specified, | 5090 * The IDs of the read groups sets within which to search for reads. All |
3984 * sequenceName must also be specified. Defaults to the end of the target | 5091 * specified read group sets must be aligned against a common set of reference |
3985 * reference sequence, if any. | 5092 * sequences; this defines the genomic coordinates for the query. Must specify |
| 5093 * one of readGroupSetIds or readGroupIds. |
3986 */ | 5094 */ |
3987 core.String sequenceEnd; | 5095 core.List<core.String> readGroupSetIds; |
3988 | 5096 |
3989 /** | 5097 /** |
3990 * Restricts the results to a particular reference sequence such as 1, chr1, | 5098 * The reference sequence name, for example chr1, 1, or chrX. If set to *, |
3991 * or X. The set of valid references sequences depends on the readsets | 5099 * only unmapped reads are returned. |
3992 * specified. If set to *, only unmapped Reads are returned. | |
3993 */ | 5100 */ |
3994 core.String sequenceName; | 5101 core.String referenceName; |
3995 | 5102 |
3996 /** | 5103 /** |
3997 * The start position (1-based, inclusive) of the target range. If specified, | 5104 * The start position of the range on the reference, 0-based inclusive. If |
3998 * sequenceName must also be specified. Defaults to the start of the target | 5105 * specified, referenceName must also be specified. |
3999 * reference sequence, if any. | |
4000 */ | 5106 */ |
4001 core.String sequenceStart; | 5107 core.String start; |
4002 | 5108 |
4003 | 5109 |
4004 SearchReadsRequest(); | 5110 SearchReadsRequest(); |
4005 | 5111 |
4006 SearchReadsRequest.fromJson(core.Map _json) { | 5112 SearchReadsRequest.fromJson(core.Map _json) { |
4007 if (_json.containsKey("maxResults")) { | 5113 if (_json.containsKey("end")) { |
4008 maxResults = _json["maxResults"]; | 5114 end = _json["end"]; |
| 5115 } |
| 5116 if (_json.containsKey("pageSize")) { |
| 5117 pageSize = _json["pageSize"]; |
4009 } | 5118 } |
4010 if (_json.containsKey("pageToken")) { | 5119 if (_json.containsKey("pageToken")) { |
4011 pageToken = _json["pageToken"]; | 5120 pageToken = _json["pageToken"]; |
4012 } | 5121 } |
4013 if (_json.containsKey("readsetIds")) { | 5122 if (_json.containsKey("readGroupIds")) { |
4014 readsetIds = _json["readsetIds"]; | 5123 readGroupIds = _json["readGroupIds"]; |
4015 } | 5124 } |
4016 if (_json.containsKey("sequenceEnd")) { | 5125 if (_json.containsKey("readGroupSetIds")) { |
4017 sequenceEnd = _json["sequenceEnd"]; | 5126 readGroupSetIds = _json["readGroupSetIds"]; |
4018 } | 5127 } |
4019 if (_json.containsKey("sequenceName")) { | 5128 if (_json.containsKey("referenceName")) { |
4020 sequenceName = _json["sequenceName"]; | 5129 referenceName = _json["referenceName"]; |
4021 } | 5130 } |
4022 if (_json.containsKey("sequenceStart")) { | 5131 if (_json.containsKey("start")) { |
4023 sequenceStart = _json["sequenceStart"]; | 5132 start = _json["start"]; |
4024 } | 5133 } |
4025 } | 5134 } |
4026 | 5135 |
4027 core.Map toJson() { | 5136 core.Map toJson() { |
4028 var _json = new core.Map(); | 5137 var _json = new core.Map(); |
4029 if (maxResults != null) { | 5138 if (end != null) { |
4030 _json["maxResults"] = maxResults; | 5139 _json["end"] = end; |
| 5140 } |
| 5141 if (pageSize != null) { |
| 5142 _json["pageSize"] = pageSize; |
4031 } | 5143 } |
4032 if (pageToken != null) { | 5144 if (pageToken != null) { |
4033 _json["pageToken"] = pageToken; | 5145 _json["pageToken"] = pageToken; |
4034 } | 5146 } |
4035 if (readsetIds != null) { | 5147 if (readGroupIds != null) { |
4036 _json["readsetIds"] = readsetIds; | 5148 _json["readGroupIds"] = readGroupIds; |
4037 } | 5149 } |
4038 if (sequenceEnd != null) { | 5150 if (readGroupSetIds != null) { |
4039 _json["sequenceEnd"] = sequenceEnd; | 5151 _json["readGroupSetIds"] = readGroupSetIds; |
4040 } | 5152 } |
4041 if (sequenceName != null) { | 5153 if (referenceName != null) { |
4042 _json["sequenceName"] = sequenceName; | 5154 _json["referenceName"] = referenceName; |
4043 } | 5155 } |
4044 if (sequenceStart != null) { | 5156 if (start != null) { |
4045 _json["sequenceStart"] = sequenceStart; | 5157 _json["start"] = start; |
4046 } | 5158 } |
4047 return _json; | 5159 return _json; |
4048 } | 5160 } |
4049 } | 5161 } |
4050 | 5162 |
4051 | 5163 |
4052 /** The read search response. */ | 5164 /** The read search response. */ |
4053 class SearchReadsResponse { | 5165 class SearchReadsResponse { |
4054 /** | 5166 /** |
| 5167 * The list of matching alignments sorted by mapped genomic coordinate, if |
| 5168 * any, ascending in position within the same reference. Unmapped reads, which |
| 5169 * have no position, are returned last and are further sorted in ascending |
| 5170 * lexicographic order by fragment name. |
| 5171 */ |
| 5172 core.List<Read> alignments; |
| 5173 |
| 5174 /** |
4055 * The continuation token, which is used to page through large result sets. | 5175 * The continuation token, which is used to page through large result sets. |
4056 * Provide this value in a subsequent request to return the next page of | 5176 * Provide this value in a subsequent request to return the next page of |
4057 * results. This field will be empty if there aren't any additional results. | 5177 * results. This field will be empty if there aren't any additional results. |
4058 */ | 5178 */ |
4059 core.String nextPageToken; | 5179 core.String nextPageToken; |
4060 | 5180 |
4061 /** | |
4062 * The list of matching Reads. The resulting Reads are sorted by position; the | |
4063 * smallest positions are returned first. Unmapped reads, which have no | |
4064 * position, are returned last and are further sorted alphabetically by name. | |
4065 */ | |
4066 core.List<Read> reads; | |
4067 | |
4068 | 5181 |
4069 SearchReadsResponse(); | 5182 SearchReadsResponse(); |
4070 | 5183 |
4071 SearchReadsResponse.fromJson(core.Map _json) { | 5184 SearchReadsResponse.fromJson(core.Map _json) { |
| 5185 if (_json.containsKey("alignments")) { |
| 5186 alignments = _json["alignments"].map((value) => new Read.fromJson(value)).
toList(); |
| 5187 } |
4072 if (_json.containsKey("nextPageToken")) { | 5188 if (_json.containsKey("nextPageToken")) { |
4073 nextPageToken = _json["nextPageToken"]; | 5189 nextPageToken = _json["nextPageToken"]; |
4074 } | 5190 } |
4075 if (_json.containsKey("reads")) { | 5191 } |
4076 reads = _json["reads"].map((value) => new Read.fromJson(value)).toList(); | 5192 |
| 5193 core.Map toJson() { |
| 5194 var _json = new core.Map(); |
| 5195 if (alignments != null) { |
| 5196 _json["alignments"] = alignments.map((value) => (value).toJson()).toList()
; |
| 5197 } |
| 5198 if (nextPageToken != null) { |
| 5199 _json["nextPageToken"] = nextPageToken; |
| 5200 } |
| 5201 return _json; |
| 5202 } |
| 5203 } |
| 5204 |
| 5205 |
| 5206 /** Not documented yet. */ |
| 5207 class SearchReferenceSetsRequest { |
| 5208 /** |
| 5209 * If present, return references for which the accession matches any of these |
| 5210 * strings. Best to give a version number, for example GCF_000001405.26. If |
| 5211 * only the main accession number is given then all records with that main |
| 5212 * accession will be returned, whichever version. Note that different versions |
| 5213 * will have different sequences. |
| 5214 */ |
| 5215 core.List<core.String> accessions; |
| 5216 |
| 5217 /** |
| 5218 * If present, return references for which the md5checksum matches. See |
| 5219 * ReferenceSet.md5checksum for details. |
| 5220 */ |
| 5221 core.List<core.String> md5checksums; |
| 5222 |
| 5223 /** Specifies the maximum number of results to return in a single page. */ |
| 5224 core.int pageSize; |
| 5225 |
| 5226 /** |
| 5227 * The continuation token, which is used to page through large result sets. To |
| 5228 * get the next page of results, set this parameter to the value of |
| 5229 * nextPageToken from the previous response. |
| 5230 */ |
| 5231 core.String pageToken; |
| 5232 |
| 5233 |
| 5234 SearchReferenceSetsRequest(); |
| 5235 |
| 5236 SearchReferenceSetsRequest.fromJson(core.Map _json) { |
| 5237 if (_json.containsKey("accessions")) { |
| 5238 accessions = _json["accessions"]; |
| 5239 } |
| 5240 if (_json.containsKey("md5checksums")) { |
| 5241 md5checksums = _json["md5checksums"]; |
| 5242 } |
| 5243 if (_json.containsKey("pageSize")) { |
| 5244 pageSize = _json["pageSize"]; |
| 5245 } |
| 5246 if (_json.containsKey("pageToken")) { |
| 5247 pageToken = _json["pageToken"]; |
| 5248 } |
| 5249 } |
| 5250 |
| 5251 core.Map toJson() { |
| 5252 var _json = new core.Map(); |
| 5253 if (accessions != null) { |
| 5254 _json["accessions"] = accessions; |
| 5255 } |
| 5256 if (md5checksums != null) { |
| 5257 _json["md5checksums"] = md5checksums; |
| 5258 } |
| 5259 if (pageSize != null) { |
| 5260 _json["pageSize"] = pageSize; |
| 5261 } |
| 5262 if (pageToken != null) { |
| 5263 _json["pageToken"] = pageToken; |
| 5264 } |
| 5265 return _json; |
| 5266 } |
| 5267 } |
| 5268 |
| 5269 |
| 5270 /** Not documented yet. */ |
| 5271 class SearchReferenceSetsResponse { |
| 5272 /** |
| 5273 * The continuation token, which is used to page through large result sets. |
| 5274 * Provide this value in a subsequent request to return the next page of |
| 5275 * results. This field will be empty if there aren't any additional results. |
| 5276 */ |
| 5277 core.String nextPageToken; |
| 5278 |
| 5279 /** The matching references sets. */ |
| 5280 core.List<ReferenceSet> referenceSets; |
| 5281 |
| 5282 |
| 5283 SearchReferenceSetsResponse(); |
| 5284 |
| 5285 SearchReferenceSetsResponse.fromJson(core.Map _json) { |
| 5286 if (_json.containsKey("nextPageToken")) { |
| 5287 nextPageToken = _json["nextPageToken"]; |
| 5288 } |
| 5289 if (_json.containsKey("referenceSets")) { |
| 5290 referenceSets = _json["referenceSets"].map((value) => new ReferenceSet.fro
mJson(value)).toList(); |
4077 } | 5291 } |
4078 } | 5292 } |
4079 | 5293 |
4080 core.Map toJson() { | 5294 core.Map toJson() { |
4081 var _json = new core.Map(); | 5295 var _json = new core.Map(); |
4082 if (nextPageToken != null) { | 5296 if (nextPageToken != null) { |
4083 _json["nextPageToken"] = nextPageToken; | 5297 _json["nextPageToken"] = nextPageToken; |
4084 } | 5298 } |
4085 if (reads != null) { | 5299 if (referenceSets != null) { |
4086 _json["reads"] = reads.map((value) => (value).toJson()).toList(); | 5300 _json["referenceSets"] = referenceSets.map((value) => (value).toJson()).to
List(); |
4087 } | 5301 } |
4088 return _json; | 5302 return _json; |
4089 } | 5303 } |
4090 } | 5304 } |
4091 | 5305 |
4092 | 5306 |
4093 /** The readset search request. */ | 5307 /** Not documented yet. */ |
4094 class SearchReadsetsRequest { | 5308 class SearchReferencesRequest { |
4095 /** | 5309 /** |
4096 * Restricts this query to readsets within the given datasets. At least one ID | 5310 * If present, return references for which the accession matches this string. |
4097 * must be provided. | 5311 * Best to give a version number, for example GCF_000001405.26. If only the |
| 5312 * main accession number is given then all records with that main accession |
| 5313 * will be returned, whichever version. Note that different versions will have |
| 5314 * different sequences. |
4098 */ | 5315 */ |
4099 core.List<core.String> datasetIds; | 5316 core.List<core.String> accessions; |
4100 | 5317 |
4101 /** | 5318 /** |
4102 * Specifies number of results to return in a single page. If unspecified, it | 5319 * If present, return references for which the md5checksum matches. See |
4103 * will default to 128. The maximum value is 1024. | 5320 * Reference.md5checksum for construction details. |
4104 */ | 5321 */ |
4105 core.String maxResults; | 5322 core.List<core.String> md5checksums; |
4106 | 5323 |
4107 /** | 5324 /** Specifies the maximum number of results to return in a single page. */ |
4108 * Only return readsets for which a substring of the name matches this string. | 5325 core.int pageSize; |
4109 */ | |
4110 core.String name; | |
4111 | 5326 |
4112 /** | 5327 /** |
4113 * The continuation token, which is used to page through large result sets. To | 5328 * The continuation token, which is used to page through large result sets. To |
4114 * get the next page of results, set this parameter to the value of | 5329 * get the next page of results, set this parameter to the value of |
4115 * nextPageToken from the previous response. | 5330 * nextPageToken from the previous response. |
4116 */ | 5331 */ |
4117 core.String pageToken; | 5332 core.String pageToken; |
4118 | 5333 |
| 5334 /** If present, return only references which belong to this reference set. */ |
| 5335 core.String referenceSetId; |
4119 | 5336 |
4120 SearchReadsetsRequest(); | |
4121 | 5337 |
4122 SearchReadsetsRequest.fromJson(core.Map _json) { | 5338 SearchReferencesRequest(); |
4123 if (_json.containsKey("datasetIds")) { | 5339 |
4124 datasetIds = _json["datasetIds"]; | 5340 SearchReferencesRequest.fromJson(core.Map _json) { |
| 5341 if (_json.containsKey("accessions")) { |
| 5342 accessions = _json["accessions"]; |
4125 } | 5343 } |
4126 if (_json.containsKey("maxResults")) { | 5344 if (_json.containsKey("md5checksums")) { |
4127 maxResults = _json["maxResults"]; | 5345 md5checksums = _json["md5checksums"]; |
4128 } | 5346 } |
4129 if (_json.containsKey("name")) { | 5347 if (_json.containsKey("pageSize")) { |
4130 name = _json["name"]; | 5348 pageSize = _json["pageSize"]; |
4131 } | 5349 } |
4132 if (_json.containsKey("pageToken")) { | 5350 if (_json.containsKey("pageToken")) { |
4133 pageToken = _json["pageToken"]; | 5351 pageToken = _json["pageToken"]; |
4134 } | 5352 } |
| 5353 if (_json.containsKey("referenceSetId")) { |
| 5354 referenceSetId = _json["referenceSetId"]; |
| 5355 } |
4135 } | 5356 } |
4136 | 5357 |
4137 core.Map toJson() { | 5358 core.Map toJson() { |
4138 var _json = new core.Map(); | 5359 var _json = new core.Map(); |
4139 if (datasetIds != null) { | 5360 if (accessions != null) { |
4140 _json["datasetIds"] = datasetIds; | 5361 _json["accessions"] = accessions; |
4141 } | 5362 } |
4142 if (maxResults != null) { | 5363 if (md5checksums != null) { |
4143 _json["maxResults"] = maxResults; | 5364 _json["md5checksums"] = md5checksums; |
4144 } | 5365 } |
4145 if (name != null) { | 5366 if (pageSize != null) { |
4146 _json["name"] = name; | 5367 _json["pageSize"] = pageSize; |
4147 } | 5368 } |
4148 if (pageToken != null) { | 5369 if (pageToken != null) { |
4149 _json["pageToken"] = pageToken; | 5370 _json["pageToken"] = pageToken; |
4150 } | 5371 } |
| 5372 if (referenceSetId != null) { |
| 5373 _json["referenceSetId"] = referenceSetId; |
| 5374 } |
4151 return _json; | 5375 return _json; |
4152 } | 5376 } |
4153 } | 5377 } |
4154 | 5378 |
4155 | 5379 |
4156 /** The readset search response. */ | 5380 /** Not documented yet. */ |
4157 class SearchReadsetsResponse { | 5381 class SearchReferencesResponse { |
4158 /** | 5382 /** |
4159 * The continuation token, which is used to page through large result sets. | 5383 * The continuation token, which is used to page through large result sets. |
4160 * Provide this value in a subsequent request to return the next page of | 5384 * Provide this value in a subsequent request to return the next page of |
4161 * results. This field will be empty if there aren't any additional results. | 5385 * results. This field will be empty if there aren't any additional results. |
4162 */ | 5386 */ |
4163 core.String nextPageToken; | 5387 core.String nextPageToken; |
4164 | 5388 |
4165 /** The list of matching Readsets. */ | 5389 /** The matching references. */ |
4166 core.List<Readset> readsets; | 5390 core.List<Reference> references; |
4167 | 5391 |
4168 | 5392 |
4169 SearchReadsetsResponse(); | 5393 SearchReferencesResponse(); |
4170 | 5394 |
4171 SearchReadsetsResponse.fromJson(core.Map _json) { | 5395 SearchReferencesResponse.fromJson(core.Map _json) { |
4172 if (_json.containsKey("nextPageToken")) { | 5396 if (_json.containsKey("nextPageToken")) { |
4173 nextPageToken = _json["nextPageToken"]; | 5397 nextPageToken = _json["nextPageToken"]; |
4174 } | 5398 } |
4175 if (_json.containsKey("readsets")) { | 5399 if (_json.containsKey("references")) { |
4176 readsets = _json["readsets"].map((value) => new Readset.fromJson(value)).t
oList(); | 5400 references = _json["references"].map((value) => new Reference.fromJson(val
ue)).toList(); |
4177 } | 5401 } |
4178 } | 5402 } |
4179 | 5403 |
4180 core.Map toJson() { | 5404 core.Map toJson() { |
4181 var _json = new core.Map(); | 5405 var _json = new core.Map(); |
4182 if (nextPageToken != null) { | 5406 if (nextPageToken != null) { |
4183 _json["nextPageToken"] = nextPageToken; | 5407 _json["nextPageToken"] = nextPageToken; |
4184 } | 5408 } |
4185 if (readsets != null) { | 5409 if (references != null) { |
4186 _json["readsets"] = readsets.map((value) => (value).toJson()).toList(); | 5410 _json["references"] = references.map((value) => (value).toJson()).toList()
; |
4187 } | 5411 } |
4188 return _json; | 5412 return _json; |
4189 } | 5413 } |
4190 } | 5414 } |
4191 | 5415 |
4192 | 5416 |
4193 /** The search variant sets request. */ | 5417 /** The search variant sets request. */ |
4194 class SearchVariantSetsRequest { | 5418 class SearchVariantSetsRequest { |
4195 /** | 5419 /** |
4196 * Exactly one dataset ID must be provided here. Only variant sets which | 5420 * Exactly one dataset ID must be provided here. Only variant sets which |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4424 } | 5648 } |
4425 if (variants != null) { | 5649 if (variants != null) { |
4426 _json["variants"] = variants.map((value) => (value).toJson()).toList(); | 5650 _json["variants"] = variants.map((value) => (value).toJson()).toList(); |
4427 } | 5651 } |
4428 return _json; | 5652 return _json; |
4429 } | 5653 } |
4430 } | 5654 } |
4431 | 5655 |
4432 | 5656 |
4433 /** | 5657 /** |
4434 * A Variant represents a change in DNA sequence relative to some reference. For | 5658 * A variant represents a change in DNA sequence relative to a reference |
4435 * example, a Variant could represent a SNP or an insertion. Variants belong to | 5659 * sequence. For example, a variant could represent a SNP or an insertion. |
4436 * a variant set. | 5660 * Variants belong to a variant set. Each of the calls on a variant represent a |
| 5661 * determination of genotype with respect to that variant. For example, a call |
| 5662 * might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a |
| 5663 * sample named NA12345. A call belongs to a call set, which contains related |
| 5664 * calls typically from one sample. |
4437 */ | 5665 */ |
4438 class Variant { | 5666 class Variant { |
4439 /** The bases that appear instead of the reference bases. */ | 5667 /** The bases that appear instead of the reference bases. */ |
4440 core.List<core.String> alternateBases; | 5668 core.List<core.String> alternateBases; |
4441 | 5669 |
4442 /** | 5670 /** |
4443 * The variant calls for this particular variant. Each one represents the | 5671 * The variant calls for this particular variant. Each one represents the |
4444 * determination of genotype with respect to this variant. | 5672 * determination of genotype with respect to this variant. |
4445 */ | 5673 */ |
4446 core.List<Call> calls; | 5674 core.List<Call> calls; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4579 } | 5807 } |
4580 if (variantSetId != null) { | 5808 if (variantSetId != null) { |
4581 _json["variantSetId"] = variantSetId; | 5809 _json["variantSetId"] = variantSetId; |
4582 } | 5810 } |
4583 return _json; | 5811 return _json; |
4584 } | 5812 } |
4585 } | 5813 } |
4586 | 5814 |
4587 | 5815 |
4588 /** | 5816 /** |
4589 * A VariantSet represents a collection of Variants and their summary | 5817 * A variant set is a collection of call sets and variants. It contains summary |
4590 * statistics. | 5818 * statistics of those contents. A variant set belongs to a dataset. |
4591 */ | 5819 */ |
4592 class VariantSet { | 5820 class VariantSet { |
4593 /** The dataset to which this variant set belongs. Immutable. */ | 5821 /** The dataset to which this variant set belongs. Immutable. */ |
4594 core.String datasetId; | 5822 core.String datasetId; |
4595 | 5823 |
4596 /** The Google-generated ID of the variant set. Immutable. */ | 5824 /** The Google-generated ID of the variant set. Immutable. */ |
4597 core.String id; | 5825 core.String id; |
4598 | 5826 |
4599 /** The metadata associated with this variant set. */ | 5827 /** The metadata associated with this variant set. */ |
4600 core.List<Metadata> metadata; | 5828 core.List<Metadata> metadata; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4635 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 5863 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
4636 } | 5864 } |
4637 if (referenceBounds != null) { | 5865 if (referenceBounds != null) { |
4638 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 5866 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
4639 } | 5867 } |
4640 return _json; | 5868 return _json; |
4641 } | 5869 } |
4642 } | 5870 } |
4643 | 5871 |
4644 | 5872 |
OLD | NEW |