| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.genomics.v1beta2; | 3 library googleapis.genomics.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client genomics/v1beta2'; | 15 const core.String USER_AGENT = 'dart-api-client genomics/v1'; |
| 16 | 16 |
| 17 /** Provides access to Genomics data. */ | 17 /** |
| 18 * An API to store, process, explore, and share DNA sequence reads, |
| 19 * reference-based alignments, and variant calls. |
| 20 */ |
| 18 class GenomicsApi { | 21 class GenomicsApi { |
| 19 /** View and manage your data in Google BigQuery */ | 22 /** View and manage your data in Google BigQuery */ |
| 20 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; | 23 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; |
| 21 | 24 |
| 22 /** View and manage your data across Google Cloud Platform services */ | 25 /** View and manage your data across Google Cloud Platform services */ |
| 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 26 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 24 | 27 |
| 25 /** Manage your data in Google Cloud Storage */ | 28 /** Manage your data in Google Cloud Storage */ |
| 26 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; | 29 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; |
| 27 | 30 |
| 28 /** View and manage Genomics data */ | 31 /** View and manage Genomics data */ |
| 29 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; | 32 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; |
| 30 | 33 |
| 31 /** View Genomics data */ | 34 /** View Genomics data */ |
| 32 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; | 35 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; |
| 33 | 36 |
| 34 | 37 |
| 35 final commons.ApiRequester _requester; | 38 final commons.ApiRequester _requester; |
| 36 | 39 |
| 37 AnnotationSetsResourceApi get annotationSets => new AnnotationSetsResourceApi(
_requester); | |
| 38 AnnotationsResourceApi get annotations => new AnnotationsResourceApi(_requeste
r); | |
| 39 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); | 40 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); |
| 40 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); | 41 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); |
| 41 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); | 42 OperationsResourceApi get operations => new OperationsResourceApi(_requester); |
| 42 JobsResourceApi get jobs => new JobsResourceApi(_requester); | |
| 43 ReadgroupsetsResourceApi get readgroupsets => new ReadgroupsetsResourceApi(_re
quester); | 43 ReadgroupsetsResourceApi get readgroupsets => new ReadgroupsetsResourceApi(_re
quester); |
| 44 ReadsResourceApi get reads => new ReadsResourceApi(_requester); | 44 ReadsResourceApi get reads => new ReadsResourceApi(_requester); |
| 45 ReferencesResourceApi get references => new ReferencesResourceApi(_requester); | 45 ReferencesResourceApi get references => new ReferencesResourceApi(_requester); |
| 46 ReferencesetsResourceApi get referencesets => new ReferencesetsResourceApi(_re
quester); | 46 ReferencesetsResourceApi get referencesets => new ReferencesetsResourceApi(_re
quester); |
| 47 VariantsResourceApi get variants => new VariantsResourceApi(_requester); | 47 VariantsResourceApi get variants => new VariantsResourceApi(_requester); |
| 48 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); | 48 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); |
| 49 | 49 |
| 50 GenomicsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "genomics/v1beta2/"}) : | 50 GenomicsApi(http.Client client, {core.String rootUrl: "https://genomics.google
apis.com/", core.String servicePath: ""}) : |
| 51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 52 } | 52 } |
| 53 | 53 |
| 54 | 54 |
| 55 class AnnotationSetsResourceApi { | 55 class CallsetsResourceApi { |
| 56 final commons.ApiRequester _requester; | 56 final commons.ApiRequester _requester; |
| 57 | 57 |
| 58 AnnotationSetsResourceApi(commons.ApiRequester client) : | 58 CallsetsResourceApi(commons.ApiRequester client) : |
| 59 _requester = client; | 59 _requester = client; |
| 60 | 60 |
| 61 /** | 61 /** |
| 62 * Creates a new annotation set. Caller must have WRITE permission for the | 62 * Creates a new call set. |
| 63 * associated dataset. | |
| 64 * | 63 * |
| 65 * [request] - The metadata request object. | 64 * [request] - The metadata request object. |
| 66 * | 65 * |
| 67 * Request parameters: | 66 * Request parameters: |
| 68 * | 67 * |
| 69 * Completes with a [AnnotationSet]. | 68 * Completes with a [CallSet]. |
| 70 * | 69 * |
| 71 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 72 * error. | 71 * error. |
| 73 * | 72 * |
| 74 * If the used [http.Client] completes with an error when making a REST call, | 73 * If the used [http.Client] completes with an error when making a REST call, |
| 75 * this method will complete with the same error. | 74 * this method will complete with the same error. |
| 76 */ | 75 */ |
| 77 async.Future<AnnotationSet> create(AnnotationSet request) { | 76 async.Future<CallSet> create(CallSet request) { |
| 78 var _url = null; | 77 var _url = null; |
| 79 var _queryParams = new core.Map(); | 78 var _queryParams = new core.Map(); |
| 80 var _uploadMedia = null; | 79 var _uploadMedia = null; |
| 81 var _uploadOptions = null; | 80 var _uploadOptions = null; |
| 82 var _downloadOptions = commons.DownloadOptions.Metadata; | 81 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 83 var _body = null; | 82 var _body = null; |
| 84 | 83 |
| 85 if (request != null) { | 84 if (request != null) { |
| 86 _body = convert.JSON.encode((request).toJson()); | 85 _body = convert.JSON.encode((request).toJson()); |
| 87 } | 86 } |
| 88 | 87 |
| 89 _url = 'annotationSets'; | 88 _url = 'v1/callsets'; |
| 90 | 89 |
| 91 var _response = _requester.request(_url, | 90 var _response = _requester.request(_url, |
| 92 "POST", | 91 "POST", |
| 93 body: _body, | 92 body: _body, |
| 94 queryParams: _queryParams, | 93 queryParams: _queryParams, |
| 95 uploadOptions: _uploadOptions, | 94 uploadOptions: _uploadOptions, |
| 96 uploadMedia: _uploadMedia, | 95 uploadMedia: _uploadMedia, |
| 97 downloadOptions: _downloadOptions); | 96 downloadOptions: _downloadOptions); |
| 98 return _response.then((data) => new AnnotationSet.fromJson(data)); | 97 return _response.then((data) => new CallSet.fromJson(data)); |
| 99 } | 98 } |
| 100 | 99 |
| 101 /** | 100 /** |
| 102 * Deletes an annotation set. Caller must have WRITE permission for the | 101 * Deletes a call set. |
| 103 * associated annotation set. | |
| 104 * | 102 * |
| 105 * Request parameters: | 103 * Request parameters: |
| 106 * | 104 * |
| 107 * [annotationSetId] - The ID of the annotation set to be deleted. | 105 * [callSetId] - The ID of the call set to be deleted. |
| 106 * |
| 107 * Completes with a [Empty]. |
| 108 * | 108 * |
| 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 109 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 110 * error. | 110 * error. |
| 111 * | 111 * |
| 112 * If the used [http.Client] completes with an error when making a REST call, | 112 * If the used [http.Client] completes with an error when making a REST call, |
| 113 * this method will complete with the same error. | 113 * this method will complete with the same error. |
| 114 */ | 114 */ |
| 115 async.Future delete(core.String annotationSetId) { | 115 async.Future<Empty> delete(core.String callSetId) { |
| 116 var _url = null; | 116 var _url = null; |
| 117 var _queryParams = new core.Map(); | 117 var _queryParams = new core.Map(); |
| 118 var _uploadMedia = null; | 118 var _uploadMedia = null; |
| 119 var _uploadOptions = null; | 119 var _uploadOptions = null; |
| 120 var _downloadOptions = commons.DownloadOptions.Metadata; | 120 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 121 var _body = null; | 121 var _body = null; |
| 122 | 122 |
| 123 if (annotationSetId == null) { | 123 if (callSetId == null) { |
| 124 throw new core.ArgumentError("Parameter annotationSetId is required."); | 124 throw new core.ArgumentError("Parameter callSetId is required."); |
| 125 } | 125 } |
| 126 | 126 |
| 127 _downloadOptions = null; | 127 _url = 'v1/callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 128 | |
| 129 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; | |
| 130 | 128 |
| 131 var _response = _requester.request(_url, | 129 var _response = _requester.request(_url, |
| 132 "DELETE", | 130 "DELETE", |
| 133 body: _body, | 131 body: _body, |
| 134 queryParams: _queryParams, | 132 queryParams: _queryParams, |
| 135 uploadOptions: _uploadOptions, | 133 uploadOptions: _uploadOptions, |
| 136 uploadMedia: _uploadMedia, | 134 uploadMedia: _uploadMedia, |
| 137 downloadOptions: _downloadOptions); | 135 downloadOptions: _downloadOptions); |
| 138 return _response.then((data) => null); | 136 return _response.then((data) => new Empty.fromJson(data)); |
| 139 } | 137 } |
| 140 | 138 |
| 141 /** | 139 /** |
| 142 * Gets an annotation set. Caller must have READ permission for the associated | 140 * Gets a call set by ID. |
| 143 * dataset. | |
| 144 * | 141 * |
| 145 * Request parameters: | 142 * Request parameters: |
| 146 * | 143 * |
| 147 * [annotationSetId] - The ID of the annotation set to be retrieved. | 144 * [callSetId] - The ID of the call set. |
| 148 * | 145 * |
| 149 * Completes with a [AnnotationSet]. | 146 * Completes with a [CallSet]. |
| 150 * | 147 * |
| 151 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 148 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 152 * error. | 149 * error. |
| 153 * | 150 * |
| 154 * If the used [http.Client] completes with an error when making a REST call, | 151 * If the used [http.Client] completes with an error when making a REST call, |
| 155 * this method will complete with the same error. | 152 * this method will complete with the same error. |
| 156 */ | 153 */ |
| 157 async.Future<AnnotationSet> get(core.String annotationSetId) { | 154 async.Future<CallSet> get(core.String callSetId) { |
| 158 var _url = null; | 155 var _url = null; |
| 159 var _queryParams = new core.Map(); | 156 var _queryParams = new core.Map(); |
| 160 var _uploadMedia = null; | 157 var _uploadMedia = null; |
| 161 var _uploadOptions = null; | 158 var _uploadOptions = null; |
| 162 var _downloadOptions = commons.DownloadOptions.Metadata; | 159 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 163 var _body = null; | 160 var _body = null; |
| 164 | 161 |
| 165 if (annotationSetId == null) { | 162 if (callSetId == null) { |
| 166 throw new core.ArgumentError("Parameter annotationSetId is required."); | 163 throw new core.ArgumentError("Parameter callSetId is required."); |
| 167 } | 164 } |
| 168 | 165 |
| 169 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; | 166 _url = 'v1/callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 170 | 167 |
| 171 var _response = _requester.request(_url, | 168 var _response = _requester.request(_url, |
| 172 "GET", | 169 "GET", |
| 173 body: _body, | 170 body: _body, |
| 174 queryParams: _queryParams, | 171 queryParams: _queryParams, |
| 175 uploadOptions: _uploadOptions, | 172 uploadOptions: _uploadOptions, |
| 176 uploadMedia: _uploadMedia, | 173 uploadMedia: _uploadMedia, |
| 177 downloadOptions: _downloadOptions); | 174 downloadOptions: _downloadOptions); |
| 178 return _response.then((data) => new AnnotationSet.fromJson(data)); | 175 return _response.then((data) => new CallSet.fromJson(data)); |
| 179 } | 176 } |
| 180 | 177 |
| 181 /** | 178 /** |
| 182 * Updates an annotation set. The update must respect all mutability | 179 * Updates a call set. This method supports patch semantics. |
| 183 * restrictions and other invariants described on the annotation set resource. | |
| 184 * Caller must have WRITE permission for the associated dataset. This method | |
| 185 * supports patch semantics. | |
| 186 * | 180 * |
| 187 * [request] - The metadata request object. | 181 * [request] - The metadata request object. |
| 188 * | 182 * |
| 189 * Request parameters: | 183 * Request parameters: |
| 190 * | 184 * |
| 191 * [annotationSetId] - The ID of the annotation set to be updated. | 185 * [callSetId] - The ID of the call set to be updated. |
| 192 * | 186 * |
| 193 * Completes with a [AnnotationSet]. | 187 * [updateMask] - An optional mask specifying which fields to update. At this |
| 188 * time, the only mutable field is [name][google.genomics.v1.CallSet.name]. |
| 189 * The only acceptable value is "name". If unspecified, all mutable fields |
| 190 * will be updated. |
| 191 * |
| 192 * Completes with a [CallSet]. |
| 194 * | 193 * |
| 195 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 194 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 196 * error. | 195 * error. |
| 197 * | 196 * |
| 198 * If the used [http.Client] completes with an error when making a REST call, | 197 * If the used [http.Client] completes with an error when making a REST call, |
| 199 * this method will complete with the same error. | 198 * this method will complete with the same error. |
| 200 */ | 199 */ |
| 201 async.Future<AnnotationSet> patch(AnnotationSet request, core.String annotatio
nSetId) { | 200 async.Future<CallSet> patch(CallSet request, core.String callSetId, {core.Stri
ng updateMask}) { |
| 202 var _url = null; | 201 var _url = null; |
| 203 var _queryParams = new core.Map(); | 202 var _queryParams = new core.Map(); |
| 204 var _uploadMedia = null; | 203 var _uploadMedia = null; |
| 205 var _uploadOptions = null; | 204 var _uploadOptions = null; |
| 206 var _downloadOptions = commons.DownloadOptions.Metadata; | 205 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 207 var _body = null; | 206 var _body = null; |
| 208 | 207 |
| 209 if (request != null) { | 208 if (request != null) { |
| 210 _body = convert.JSON.encode((request).toJson()); | 209 _body = convert.JSON.encode((request).toJson()); |
| 211 } | 210 } |
| 212 if (annotationSetId == null) { | 211 if (callSetId == null) { |
| 213 throw new core.ArgumentError("Parameter annotationSetId is required."); | 212 throw new core.ArgumentError("Parameter callSetId is required."); |
| 213 } |
| 214 if (updateMask != null) { |
| 215 _queryParams["updateMask"] = [updateMask]; |
| 214 } | 216 } |
| 215 | 217 |
| 216 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; | 218 _url = 'v1/callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 217 | 219 |
| 218 var _response = _requester.request(_url, | 220 var _response = _requester.request(_url, |
| 219 "PATCH", | 221 "PATCH", |
| 220 body: _body, | 222 body: _body, |
| 221 queryParams: _queryParams, | 223 queryParams: _queryParams, |
| 222 uploadOptions: _uploadOptions, | 224 uploadOptions: _uploadOptions, |
| 223 uploadMedia: _uploadMedia, | 225 uploadMedia: _uploadMedia, |
| 224 downloadOptions: _downloadOptions); | 226 downloadOptions: _downloadOptions); |
| 225 return _response.then((data) => new AnnotationSet.fromJson(data)); | 227 return _response.then((data) => new CallSet.fromJson(data)); |
| 226 } | 228 } |
| 227 | 229 |
| 228 /** | 230 /** |
| 229 * Searches for annotation sets that match the given criteria. Results are | 231 * Gets a list of call sets matching the criteria. Implements |
| 230 * returned in a deterministic order. Caller must have READ permission for the | 232 * [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0
.5.1/src/main/resources/avro/variantmethods.avdl#L178). |
| 231 * queried datasets. | |
| 232 * | 233 * |
| 233 * [request] - The metadata request object. | 234 * [request] - The metadata request object. |
| 234 * | 235 * |
| 235 * Request parameters: | 236 * Request parameters: |
| 236 * | 237 * |
| 237 * Completes with a [SearchAnnotationSetsResponse]. | 238 * Completes with a [SearchCallSetsResponse]. |
| 238 * | 239 * |
| 239 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 240 * error. | 241 * error. |
| 241 * | 242 * |
| 242 * If the used [http.Client] completes with an error when making a REST call, | 243 * If the used [http.Client] completes with an error when making a REST call, |
| 243 * this method will complete with the same error. | 244 * this method will complete with the same error. |
| 244 */ | 245 */ |
| 245 async.Future<SearchAnnotationSetsResponse> search(SearchAnnotationSetsRequest
request) { | 246 async.Future<SearchCallSetsResponse> search(SearchCallSetsRequest request) { |
| 246 var _url = null; | 247 var _url = null; |
| 247 var _queryParams = new core.Map(); | 248 var _queryParams = new core.Map(); |
| 248 var _uploadMedia = null; | 249 var _uploadMedia = null; |
| 249 var _uploadOptions = null; | 250 var _uploadOptions = null; |
| 250 var _downloadOptions = commons.DownloadOptions.Metadata; | 251 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 251 var _body = null; | 252 var _body = null; |
| 252 | 253 |
| 253 if (request != null) { | 254 if (request != null) { |
| 254 _body = convert.JSON.encode((request).toJson()); | 255 _body = convert.JSON.encode((request).toJson()); |
| 255 } | 256 } |
| 256 | 257 |
| 257 _url = 'annotationSets/search'; | 258 _url = 'v1/callsets/search'; |
| 258 | 259 |
| 259 var _response = _requester.request(_url, | 260 var _response = _requester.request(_url, |
| 260 "POST", | 261 "POST", |
| 261 body: _body, | 262 body: _body, |
| 262 queryParams: _queryParams, | 263 queryParams: _queryParams, |
| 263 uploadOptions: _uploadOptions, | 264 uploadOptions: _uploadOptions, |
| 264 uploadMedia: _uploadMedia, | 265 uploadMedia: _uploadMedia, |
| 265 downloadOptions: _downloadOptions); | 266 downloadOptions: _downloadOptions); |
| 266 return _response.then((data) => new SearchAnnotationSetsResponse.fromJson(da
ta)); | 267 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); |
| 267 } | 268 } |
| 268 | 269 |
| 270 } |
| 271 |
| 272 |
| 273 class DatasetsResourceApi { |
| 274 final commons.ApiRequester _requester; |
| 275 |
| 276 DatasetsResourceApi(commons.ApiRequester client) : |
| 277 _requester = client; |
| 278 |
| 269 /** | 279 /** |
| 270 * Updates an annotation set. The update must respect all mutability | 280 * Creates a new dataset. |
| 271 * restrictions and other invariants described on the annotation set resource. | |
| 272 * Caller must have WRITE permission for the associated dataset. | |
| 273 * | 281 * |
| 274 * [request] - The metadata request object. | 282 * [request] - The metadata request object. |
| 275 * | 283 * |
| 276 * Request parameters: | 284 * Request parameters: |
| 277 * | 285 * |
| 278 * [annotationSetId] - The ID of the annotation set to be updated. | 286 * Completes with a [Dataset]. |
| 279 * | |
| 280 * Completes with a [AnnotationSet]. | |
| 281 * | 287 * |
| 282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 283 * error. | 289 * error. |
| 284 * | |
| 285 * If the used [http.Client] completes with an error when making a REST call, | |
| 286 * this method will complete with the same error. | |
| 287 */ | |
| 288 async.Future<AnnotationSet> update(AnnotationSet request, core.String annotati
onSetId) { | |
| 289 var _url = null; | |
| 290 var _queryParams = new core.Map(); | |
| 291 var _uploadMedia = null; | |
| 292 var _uploadOptions = null; | |
| 293 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 294 var _body = null; | |
| 295 | |
| 296 if (request != null) { | |
| 297 _body = convert.JSON.encode((request).toJson()); | |
| 298 } | |
| 299 if (annotationSetId == null) { | |
| 300 throw new core.ArgumentError("Parameter annotationSetId is required."); | |
| 301 } | |
| 302 | |
| 303 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; | |
| 304 | |
| 305 var _response = _requester.request(_url, | |
| 306 "PUT", | |
| 307 body: _body, | |
| 308 queryParams: _queryParams, | |
| 309 uploadOptions: _uploadOptions, | |
| 310 uploadMedia: _uploadMedia, | |
| 311 downloadOptions: _downloadOptions); | |
| 312 return _response.then((data) => new AnnotationSet.fromJson(data)); | |
| 313 } | |
| 314 | |
| 315 } | |
| 316 | |
| 317 | |
| 318 class AnnotationsResourceApi { | |
| 319 final commons.ApiRequester _requester; | |
| 320 | |
| 321 AnnotationsResourceApi(commons.ApiRequester client) : | |
| 322 _requester = client; | |
| 323 | |
| 324 /** | |
| 325 * Creates one or more new annotations atomically. All annotations must belong | |
| 326 * to the same annotation set. Caller must have WRITE permission for this | |
| 327 * annotation set. For optimal performance, batch positionally adjacent | |
| 328 * annotations together. | |
| 329 * | |
| 330 * | |
| 331 * If the request has a systemic issue, such as an attempt to write to an | |
| 332 * inaccessible annotation set, the entire RPC will fail accordingly. For | |
| 333 * lesser data issues, when possible an error will be isolated to the | |
| 334 * corresponding batch entry in the response; the remaining well formed | |
| 335 * annotations will be created normally. | |
| 336 * | |
| 337 * [request] - The metadata request object. | |
| 338 * | |
| 339 * Request parameters: | |
| 340 * | |
| 341 * Completes with a [BatchAnnotationsResponse]. | |
| 342 * | |
| 343 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 344 * error. | |
| 345 * | 290 * |
| 346 * If the used [http.Client] completes with an error when making a REST call, | 291 * If the used [http.Client] completes with an error when making a REST call, |
| 347 * this method will complete with the same error. | 292 * this method will complete with the same error. |
| 348 */ | 293 */ |
| 349 async.Future<BatchAnnotationsResponse> batchCreate(BatchCreateAnnotationsReque
st request) { | 294 async.Future<Dataset> create(Dataset request) { |
| 350 var _url = null; | 295 var _url = null; |
| 351 var _queryParams = new core.Map(); | 296 var _queryParams = new core.Map(); |
| 352 var _uploadMedia = null; | 297 var _uploadMedia = null; |
| 353 var _uploadOptions = null; | 298 var _uploadOptions = null; |
| 354 var _downloadOptions = commons.DownloadOptions.Metadata; | 299 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 355 var _body = null; | 300 var _body = null; |
| 356 | 301 |
| 357 if (request != null) { | 302 if (request != null) { |
| 358 _body = convert.JSON.encode((request).toJson()); | 303 _body = convert.JSON.encode((request).toJson()); |
| 359 } | 304 } |
| 360 | 305 |
| 361 _url = 'annotations:batchCreate'; | 306 _url = 'v1/datasets'; |
| 362 | 307 |
| 363 var _response = _requester.request(_url, | 308 var _response = _requester.request(_url, |
| 364 "POST", | 309 "POST", |
| 365 body: _body, | 310 body: _body, |
| 366 queryParams: _queryParams, | 311 queryParams: _queryParams, |
| 367 uploadOptions: _uploadOptions, | 312 uploadOptions: _uploadOptions, |
| 368 uploadMedia: _uploadMedia, | 313 uploadMedia: _uploadMedia, |
| 369 downloadOptions: _downloadOptions); | 314 downloadOptions: _downloadOptions); |
| 370 return _response.then((data) => new BatchAnnotationsResponse.fromJson(data))
; | 315 return _response.then((data) => new Dataset.fromJson(data)); |
| 371 } | 316 } |
| 372 | 317 |
| 373 /** | 318 /** |
| 374 * Creates a new annotation. Caller must have WRITE permission for the | 319 * Deletes a dataset. |
| 375 * associated annotation set. | |
| 376 * | |
| 377 * [request] - The metadata request object. | |
| 378 * | 320 * |
| 379 * Request parameters: | 321 * Request parameters: |
| 380 * | 322 * |
| 381 * Completes with a [Annotation]. | 323 * [datasetId] - The ID of the dataset to be deleted. |
| 324 * |
| 325 * Completes with a [Empty]. |
| 382 * | 326 * |
| 383 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 384 * error. | 328 * error. |
| 385 * | 329 * |
| 386 * If the used [http.Client] completes with an error when making a REST call, | 330 * If the used [http.Client] completes with an error when making a REST call, |
| 387 * this method will complete with the same error. | 331 * this method will complete with the same error. |
| 388 */ | 332 */ |
| 389 async.Future<Annotation> create(Annotation request) { | 333 async.Future<Empty> delete(core.String datasetId) { |
| 390 var _url = null; | 334 var _url = null; |
| 391 var _queryParams = new core.Map(); | 335 var _queryParams = new core.Map(); |
| 392 var _uploadMedia = null; | 336 var _uploadMedia = null; |
| 393 var _uploadOptions = null; | 337 var _uploadOptions = null; |
| 394 var _downloadOptions = commons.DownloadOptions.Metadata; | 338 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 395 var _body = null; | 339 var _body = null; |
| 396 | 340 |
| 397 if (request != null) { | 341 if (datasetId == null) { |
| 398 _body = convert.JSON.encode((request).toJson()); | 342 throw new core.ArgumentError("Parameter datasetId is required."); |
| 399 } | 343 } |
| 400 | 344 |
| 401 _url = 'annotations'; | 345 _url = 'v1/datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 402 | 346 |
| 403 var _response = _requester.request(_url, | 347 var _response = _requester.request(_url, |
| 404 "POST", | 348 "DELETE", |
| 405 body: _body, | 349 body: _body, |
| 406 queryParams: _queryParams, | 350 queryParams: _queryParams, |
| 407 uploadOptions: _uploadOptions, | 351 uploadOptions: _uploadOptions, |
| 408 uploadMedia: _uploadMedia, | 352 uploadMedia: _uploadMedia, |
| 409 downloadOptions: _downloadOptions); | 353 downloadOptions: _downloadOptions); |
| 410 return _response.then((data) => new Annotation.fromJson(data)); | 354 return _response.then((data) => new Empty.fromJson(data)); |
| 411 } | 355 } |
| 412 | 356 |
| 413 /** | 357 /** |
| 414 * Deletes an annotation. Caller must have WRITE permission for the associated | 358 * Gets a dataset by ID. |
| 415 * annotation set. | |
| 416 * | 359 * |
| 417 * Request parameters: | 360 * Request parameters: |
| 418 * | 361 * |
| 419 * [annotationId] - The ID of the annotation set to be deleted. | 362 * [datasetId] - The ID of the dataset. |
| 363 * |
| 364 * Completes with a [Dataset]. |
| 420 * | 365 * |
| 421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 366 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 422 * error. | 367 * error. |
| 423 * | 368 * |
| 424 * If the used [http.Client] completes with an error when making a REST call, | 369 * If the used [http.Client] completes with an error when making a REST call, |
| 425 * this method will complete with the same error. | 370 * this method will complete with the same error. |
| 426 */ | 371 */ |
| 427 async.Future delete(core.String annotationId) { | 372 async.Future<Dataset> get(core.String datasetId) { |
| 428 var _url = null; | 373 var _url = null; |
| 429 var _queryParams = new core.Map(); | 374 var _queryParams = new core.Map(); |
| 430 var _uploadMedia = null; | 375 var _uploadMedia = null; |
| 431 var _uploadOptions = null; | 376 var _uploadOptions = null; |
| 432 var _downloadOptions = commons.DownloadOptions.Metadata; | 377 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 433 var _body = null; | 378 var _body = null; |
| 434 | 379 |
| 435 if (annotationId == null) { | 380 if (datasetId == null) { |
| 436 throw new core.ArgumentError("Parameter annotationId is required."); | 381 throw new core.ArgumentError("Parameter datasetId is required."); |
| 437 } | 382 } |
| 438 | 383 |
| 439 _downloadOptions = null; | 384 _url = 'v1/datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 440 | |
| 441 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); | |
| 442 | 385 |
| 443 var _response = _requester.request(_url, | 386 var _response = _requester.request(_url, |
| 444 "DELETE", | 387 "GET", |
| 445 body: _body, | 388 body: _body, |
| 446 queryParams: _queryParams, | 389 queryParams: _queryParams, |
| 447 uploadOptions: _uploadOptions, | 390 uploadOptions: _uploadOptions, |
| 448 uploadMedia: _uploadMedia, | 391 uploadMedia: _uploadMedia, |
| 449 downloadOptions: _downloadOptions); | 392 downloadOptions: _downloadOptions); |
| 450 return _response.then((data) => null); | 393 return _response.then((data) => new Dataset.fromJson(data)); |
| 451 } | 394 } |
| 452 | 395 |
| 453 /** | 396 /** |
| 454 * Gets an annotation. Caller must have READ permission for the associated | 397 * Lists datasets within a project. |
| 455 * annotation set. | |
| 456 * | 398 * |
| 457 * Request parameters: | 399 * Request parameters: |
| 458 * | 400 * |
| 459 * [annotationId] - The ID of the annotation set to be retrieved. | 401 * [projectId] - Required. The project to list datasets for. |
| 460 * | 402 * |
| 461 * Completes with a [Annotation]. | 403 * [pageSize] - The maximum number of results returned by this request. If |
| 404 * unspecified, defaults to 50. The maximum value is 1024. |
| 405 * |
| 406 * [pageToken] - The continuation token, which is used to page through large |
| 407 * result sets. To get the next page of results, set this parameter to the |
| 408 * value of `nextPageToken` from the previous response. |
| 409 * |
| 410 * Completes with a [ListDatasetsResponse]. |
| 462 * | 411 * |
| 463 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 412 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 464 * error. | 413 * error. |
| 465 * | 414 * |
| 466 * If the used [http.Client] completes with an error when making a REST call, | 415 * If the used [http.Client] completes with an error when making a REST call, |
| 467 * this method will complete with the same error. | 416 * this method will complete with the same error. |
| 468 */ | 417 */ |
| 469 async.Future<Annotation> get(core.String annotationId) { | 418 async.Future<ListDatasetsResponse> list({core.String projectId, core.int pageS
ize, core.String pageToken}) { |
| 470 var _url = null; | 419 var _url = null; |
| 471 var _queryParams = new core.Map(); | 420 var _queryParams = new core.Map(); |
| 472 var _uploadMedia = null; | 421 var _uploadMedia = null; |
| 473 var _uploadOptions = null; | 422 var _uploadOptions = null; |
| 474 var _downloadOptions = commons.DownloadOptions.Metadata; | 423 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 475 var _body = null; | 424 var _body = null; |
| 476 | 425 |
| 477 if (annotationId == null) { | 426 if (projectId != null) { |
| 478 throw new core.ArgumentError("Parameter annotationId is required."); | 427 _queryParams["projectId"] = [projectId]; |
| 428 } |
| 429 if (pageSize != null) { |
| 430 _queryParams["pageSize"] = ["${pageSize}"]; |
| 431 } |
| 432 if (pageToken != null) { |
| 433 _queryParams["pageToken"] = [pageToken]; |
| 479 } | 434 } |
| 480 | 435 |
| 481 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); | 436 _url = 'v1/datasets'; |
| 482 | 437 |
| 483 var _response = _requester.request(_url, | 438 var _response = _requester.request(_url, |
| 484 "GET", | 439 "GET", |
| 485 body: _body, | 440 body: _body, |
| 486 queryParams: _queryParams, | 441 queryParams: _queryParams, |
| 487 uploadOptions: _uploadOptions, | 442 uploadOptions: _uploadOptions, |
| 488 uploadMedia: _uploadMedia, | 443 uploadMedia: _uploadMedia, |
| 489 downloadOptions: _downloadOptions); | 444 downloadOptions: _downloadOptions); |
| 490 return _response.then((data) => new Annotation.fromJson(data)); | 445 return _response.then((data) => new ListDatasetsResponse.fromJson(data)); |
| 491 } | 446 } |
| 492 | 447 |
| 493 /** | 448 /** |
| 494 * Updates an annotation. The update must respect all mutability restrictions | 449 * Updates a dataset. This method supports patch semantics. |
| 495 * and other invariants described on the annotation resource. Caller must have | |
| 496 * WRITE permission for the associated dataset. This method supports patch | |
| 497 * semantics. | |
| 498 * | 450 * |
| 499 * [request] - The metadata request object. | 451 * [request] - The metadata request object. |
| 500 * | 452 * |
| 501 * Request parameters: | 453 * Request parameters: |
| 502 * | 454 * |
| 503 * [annotationId] - The ID of the annotation set to be updated. | 455 * [datasetId] - The ID of the dataset to be updated. |
| 504 * | 456 * |
| 505 * Completes with a [Annotation]. | 457 * [updateMask] - An optional mask specifying which fields to update. At this |
| 458 * time, the only mutable field is [name][google.genomics.v1.Dataset.name]. |
| 459 * The only acceptable value is "name". If unspecified, all mutable fields |
| 460 * will be updated. |
| 461 * |
| 462 * Completes with a [Dataset]. |
| 506 * | 463 * |
| 507 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 464 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 508 * error. | 465 * error. |
| 509 * | 466 * |
| 510 * If the used [http.Client] completes with an error when making a REST call, | 467 * If the used [http.Client] completes with an error when making a REST call, |
| 511 * this method will complete with the same error. | 468 * this method will complete with the same error. |
| 512 */ | 469 */ |
| 513 async.Future<Annotation> patch(Annotation request, core.String annotationId) { | 470 async.Future<Dataset> patch(Dataset request, core.String datasetId, {core.Stri
ng updateMask}) { |
| 514 var _url = null; | 471 var _url = null; |
| 515 var _queryParams = new core.Map(); | 472 var _queryParams = new core.Map(); |
| 516 var _uploadMedia = null; | 473 var _uploadMedia = null; |
| 517 var _uploadOptions = null; | 474 var _uploadOptions = null; |
| 518 var _downloadOptions = commons.DownloadOptions.Metadata; | 475 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 519 var _body = null; | 476 var _body = null; |
| 520 | 477 |
| 521 if (request != null) { | 478 if (request != null) { |
| 522 _body = convert.JSON.encode((request).toJson()); | 479 _body = convert.JSON.encode((request).toJson()); |
| 523 } | 480 } |
| 524 if (annotationId == null) { | 481 if (datasetId == null) { |
| 525 throw new core.ArgumentError("Parameter annotationId is required."); | 482 throw new core.ArgumentError("Parameter datasetId is required."); |
| 483 } |
| 484 if (updateMask != null) { |
| 485 _queryParams["updateMask"] = [updateMask]; |
| 526 } | 486 } |
| 527 | 487 |
| 528 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); | 488 _url = 'v1/datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 529 | 489 |
| 530 var _response = _requester.request(_url, | 490 var _response = _requester.request(_url, |
| 531 "PATCH", | 491 "PATCH", |
| 532 body: _body, | 492 body: _body, |
| 533 queryParams: _queryParams, | 493 queryParams: _queryParams, |
| 534 uploadOptions: _uploadOptions, | 494 uploadOptions: _uploadOptions, |
| 535 uploadMedia: _uploadMedia, | 495 uploadMedia: _uploadMedia, |
| 536 downloadOptions: _downloadOptions); | 496 downloadOptions: _downloadOptions); |
| 537 return _response.then((data) => new Annotation.fromJson(data)); | 497 return _response.then((data) => new Dataset.fromJson(data)); |
| 538 } | 498 } |
| 539 | 499 |
| 540 /** | 500 /** |
| 541 * Searches for annotations that match the given criteria. Results are | 501 * Undeletes a dataset by restoring a dataset which was deleted via this API. |
| 542 * returned ordered by start position. Annotations that have matching start | 502 * This operation is only possible for a week after the deletion occurred. |
| 543 * positions are ordered deterministically. Caller must have READ permission | |
| 544 * for the queried annotation sets. | |
| 545 * | 503 * |
| 546 * [request] - The metadata request object. | 504 * [request] - The metadata request object. |
| 547 * | 505 * |
| 548 * Request parameters: | 506 * Request parameters: |
| 549 * | 507 * |
| 550 * Completes with a [SearchAnnotationsResponse]. | 508 * [datasetId] - The ID of the dataset to be undeleted. |
| 509 * |
| 510 * Completes with a [Dataset]. |
| 551 * | 511 * |
| 552 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 512 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 553 * error. | 513 * error. |
| 554 * | 514 * |
| 555 * If the used [http.Client] completes with an error when making a REST call, | 515 * If the used [http.Client] completes with an error when making a REST call, |
| 556 * this method will complete with the same error. | 516 * this method will complete with the same error. |
| 557 */ | 517 */ |
| 558 async.Future<SearchAnnotationsResponse> search(SearchAnnotationsRequest reques
t) { | 518 async.Future<Dataset> undelete(UndeleteDatasetRequest request, core.String dat
asetId) { |
| 559 var _url = null; | 519 var _url = null; |
| 560 var _queryParams = new core.Map(); | 520 var _queryParams = new core.Map(); |
| 561 var _uploadMedia = null; | 521 var _uploadMedia = null; |
| 562 var _uploadOptions = null; | 522 var _uploadOptions = null; |
| 563 var _downloadOptions = commons.DownloadOptions.Metadata; | 523 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 564 var _body = null; | 524 var _body = null; |
| 565 | 525 |
| 566 if (request != null) { | 526 if (request != null) { |
| 567 _body = convert.JSON.encode((request).toJson()); | 527 _body = convert.JSON.encode((request).toJson()); |
| 568 } | 528 } |
| 529 if (datasetId == null) { |
| 530 throw new core.ArgumentError("Parameter datasetId is required."); |
| 531 } |
| 569 | 532 |
| 570 _url = 'annotations/search'; | 533 _url = 'v1/datasets/' + commons.Escaper.ecapeVariable('$datasetId') + ':unde
lete'; |
| 571 | 534 |
| 572 var _response = _requester.request(_url, | 535 var _response = _requester.request(_url, |
| 573 "POST", | 536 "POST", |
| 574 body: _body, | 537 body: _body, |
| 575 queryParams: _queryParams, | 538 queryParams: _queryParams, |
| 576 uploadOptions: _uploadOptions, | 539 uploadOptions: _uploadOptions, |
| 577 uploadMedia: _uploadMedia, | 540 uploadMedia: _uploadMedia, |
| 578 downloadOptions: _downloadOptions); | 541 downloadOptions: _downloadOptions); |
| 579 return _response.then((data) => new SearchAnnotationsResponse.fromJson(data)
); | 542 return _response.then((data) => new Dataset.fromJson(data)); |
| 580 } | 543 } |
| 581 | 544 |
| 545 } |
| 546 |
| 547 |
| 548 class OperationsResourceApi { |
| 549 final commons.ApiRequester _requester; |
| 550 |
| 551 OperationsResourceApi(commons.ApiRequester client) : |
| 552 _requester = client; |
| 553 |
| 582 /** | 554 /** |
| 583 * Updates an annotation. The update must respect all mutability restrictions | 555 * Starts asynchronous cancellation on a long-running operation. The server |
| 584 * and other invariants described on the annotation resource. Caller must have | 556 * makes a best effort to cancel the operation, but success is not guaranteed. |
| 585 * WRITE permission for the associated dataset. | 557 * Clients may use |
| 558 * [Operations.GetOperation][google.longrunning.Operations.GetOperation] or |
| 559 * [Operations.ListOperations][google.longrunning.Operations.ListOperations] |
| 560 * to check whether the cancellation succeeded or the operation completed |
| 561 * despite cancellation. |
| 586 * | 562 * |
| 587 * [request] - The metadata request object. | 563 * [request] - The metadata request object. |
| 588 * | 564 * |
| 589 * Request parameters: | 565 * Request parameters: |
| 590 * | 566 * |
| 591 * [annotationId] - The ID of the annotation set to be updated. | 567 * [name] - The name of the operation resource to be cancelled. |
| 568 * Value must have pattern "^operations/.*$". |
| 592 * | 569 * |
| 593 * Completes with a [Annotation]. | 570 * Completes with a [Empty]. |
| 594 * | 571 * |
| 595 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 572 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 596 * error. | 573 * error. |
| 597 * | 574 * |
| 598 * If the used [http.Client] completes with an error when making a REST call, | 575 * If the used [http.Client] completes with an error when making a REST call, |
| 599 * this method will complete with the same error. | 576 * this method will complete with the same error. |
| 600 */ | 577 */ |
| 601 async.Future<Annotation> update(Annotation request, core.String annotationId)
{ | 578 async.Future<Empty> cancel(CancelOperationRequest request, core.String name) { |
| 602 var _url = null; | 579 var _url = null; |
| 603 var _queryParams = new core.Map(); | 580 var _queryParams = new core.Map(); |
| 604 var _uploadMedia = null; | 581 var _uploadMedia = null; |
| 605 var _uploadOptions = null; | 582 var _uploadOptions = null; |
| 606 var _downloadOptions = commons.DownloadOptions.Metadata; | 583 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 607 var _body = null; | 584 var _body = null; |
| 608 | 585 |
| 609 if (request != null) { | 586 if (request != null) { |
| 610 _body = convert.JSON.encode((request).toJson()); | 587 _body = convert.JSON.encode((request).toJson()); |
| 611 } | 588 } |
| 612 if (annotationId == null) { | 589 if (name == null) { |
| 613 throw new core.ArgumentError("Parameter annotationId is required."); | 590 throw new core.ArgumentError("Parameter name is required."); |
| 614 } | 591 } |
| 615 | 592 |
| 616 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); | 593 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel'; |
| 617 | 594 |
| 618 var _response = _requester.request(_url, | 595 var _response = _requester.request(_url, |
| 619 "PUT", | 596 "POST", |
| 620 body: _body, | 597 body: _body, |
| 621 queryParams: _queryParams, | 598 queryParams: _queryParams, |
| 622 uploadOptions: _uploadOptions, | 599 uploadOptions: _uploadOptions, |
| 623 uploadMedia: _uploadMedia, | 600 uploadMedia: _uploadMedia, |
| 624 downloadOptions: _downloadOptions); | 601 downloadOptions: _downloadOptions); |
| 625 return _response.then((data) => new Annotation.fromJson(data)); | 602 return _response.then((data) => new Empty.fromJson(data)); |
| 626 } | 603 } |
| 627 | 604 |
| 628 } | |
| 629 | |
| 630 | |
| 631 class CallsetsResourceApi { | |
| 632 final commons.ApiRequester _requester; | |
| 633 | |
| 634 CallsetsResourceApi(commons.ApiRequester client) : | |
| 635 _requester = client; | |
| 636 | |
| 637 /** | 605 /** |
| 638 * Creates a new call set. | 606 * This method is not implemented. To cancel an operation, please use |
| 639 * | 607 * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
. |
| 640 * [request] - The metadata request object. | |
| 641 * | 608 * |
| 642 * Request parameters: | 609 * Request parameters: |
| 643 * | 610 * |
| 644 * Completes with a [CallSet]. | 611 * [name] - The name of the operation resource to be deleted. |
| 612 * Value must have pattern "^operations/.*$". |
| 613 * |
| 614 * Completes with a [Empty]. |
| 645 * | 615 * |
| 646 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 616 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 647 * error. | 617 * error. |
| 648 * | 618 * |
| 649 * If the used [http.Client] completes with an error when making a REST call, | 619 * If the used [http.Client] completes with an error when making a REST call, |
| 650 * this method will complete with the same error. | 620 * this method will complete with the same error. |
| 651 */ | 621 */ |
| 652 async.Future<CallSet> create(CallSet request) { | 622 async.Future<Empty> delete(core.String name) { |
| 653 var _url = null; | 623 var _url = null; |
| 654 var _queryParams = new core.Map(); | 624 var _queryParams = new core.Map(); |
| 655 var _uploadMedia = null; | 625 var _uploadMedia = null; |
| 656 var _uploadOptions = null; | 626 var _uploadOptions = null; |
| 657 var _downloadOptions = commons.DownloadOptions.Metadata; | 627 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 658 var _body = null; | 628 var _body = null; |
| 659 | 629 |
| 660 if (request != null) { | 630 if (name == null) { |
| 661 _body = convert.JSON.encode((request).toJson()); | 631 throw new core.ArgumentError("Parameter name is required."); |
| 662 } | 632 } |
| 663 | 633 |
| 664 _url = 'callsets'; | 634 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 665 | 635 |
| 666 var _response = _requester.request(_url, | 636 var _response = _requester.request(_url, |
| 667 "POST", | 637 "DELETE", |
| 668 body: _body, | 638 body: _body, |
| 669 queryParams: _queryParams, | 639 queryParams: _queryParams, |
| 670 uploadOptions: _uploadOptions, | 640 uploadOptions: _uploadOptions, |
| 671 uploadMedia: _uploadMedia, | 641 uploadMedia: _uploadMedia, |
| 672 downloadOptions: _downloadOptions); | 642 downloadOptions: _downloadOptions); |
| 673 return _response.then((data) => new CallSet.fromJson(data)); | 643 return _response.then((data) => new Empty.fromJson(data)); |
| 674 } | 644 } |
| 675 | 645 |
| 676 /** | 646 /** |
| 677 * Deletes a call set. | 647 * Gets the latest state of a long-running operation. Clients can use this |
| 648 * method to poll the operation result at intervals as recommended by the API |
| 649 * service. |
| 678 * | 650 * |
| 679 * Request parameters: | 651 * Request parameters: |
| 680 * | 652 * |
| 681 * [callSetId] - The ID of the call set to be deleted. | 653 * [name] - The name of the operation resource. |
| 654 * Value must have pattern "^operations/.*$". |
| 655 * |
| 656 * Completes with a [Operation]. |
| 682 * | 657 * |
| 683 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 658 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 684 * error. | 659 * error. |
| 685 * | 660 * |
| 686 * If the used [http.Client] completes with an error when making a REST call, | 661 * If the used [http.Client] completes with an error when making a REST call, |
| 687 * this method will complete with the same error. | 662 * this method will complete with the same error. |
| 688 */ | 663 */ |
| 689 async.Future delete(core.String callSetId) { | 664 async.Future<Operation> get(core.String name) { |
| 690 var _url = null; | 665 var _url = null; |
| 691 var _queryParams = new core.Map(); | 666 var _queryParams = new core.Map(); |
| 692 var _uploadMedia = null; | 667 var _uploadMedia = null; |
| 693 var _uploadOptions = null; | 668 var _uploadOptions = null; |
| 694 var _downloadOptions = commons.DownloadOptions.Metadata; | 669 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 695 var _body = null; | 670 var _body = null; |
| 696 | 671 |
| 697 if (callSetId == null) { | 672 if (name == null) { |
| 698 throw new core.ArgumentError("Parameter callSetId is required."); | 673 throw new core.ArgumentError("Parameter name is required."); |
| 699 } | 674 } |
| 700 | 675 |
| 701 _downloadOptions = null; | 676 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 702 | |
| 703 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); | |
| 704 | 677 |
| 705 var _response = _requester.request(_url, | 678 var _response = _requester.request(_url, |
| 706 "DELETE", | 679 "GET", |
| 707 body: _body, | 680 body: _body, |
| 708 queryParams: _queryParams, | 681 queryParams: _queryParams, |
| 709 uploadOptions: _uploadOptions, | 682 uploadOptions: _uploadOptions, |
| 710 uploadMedia: _uploadMedia, | 683 uploadMedia: _uploadMedia, |
| 711 downloadOptions: _downloadOptions); | 684 downloadOptions: _downloadOptions); |
| 712 return _response.then((data) => null); | 685 return _response.then((data) => new Operation.fromJson(data)); |
| 713 } | 686 } |
| 714 | 687 |
| 715 /** | 688 /** |
| 716 * Gets a call set by ID. | 689 * Lists operations that match the specified filter in the request. |
| 717 * | 690 * |
| 718 * Request parameters: | 691 * Request parameters: |
| 719 * | 692 * |
| 720 * [callSetId] - The ID of the call set. | 693 * [name] - The name of the operation collection. |
| 694 * Value must have pattern "^operations$". |
| 721 * | 695 * |
| 722 * Completes with a [CallSet]. | 696 * [filter] - A string for filtering |
| 697 * [Operations][google.longrunning.Operation]. The following filter fields are |
| 698 * supported: * projectId: Required. Corresponds to |
| 699 * [OperationMetadata.projectId][google.genomics.v1.OperationMetadata.project_
id]. |
| 700 * * createTime: The time this job was created, in seconds from the |
| 701 * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= |
| 702 * 1432140000` * `projectId = my-project AND createTime >= 1432140000 AND |
| 703 * createTime <= 1432150000 AND status = RUNNING` |
| 704 * |
| 705 * [pageSize] - The maximum number of results to return. If unspecified, |
| 706 * defaults to 256. The maximum value is 2048. |
| 707 * |
| 708 * [pageToken] - The standard list page token. |
| 709 * |
| 710 * Completes with a [ListOperationsResponse]. |
| 723 * | 711 * |
| 724 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 712 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 725 * error. | 713 * error. |
| 726 * | 714 * |
| 727 * If the used [http.Client] completes with an error when making a REST call, | 715 * If the used [http.Client] completes with an error when making a REST call, |
| 728 * this method will complete with the same error. | 716 * this method will complete with the same error. |
| 729 */ | 717 */ |
| 730 async.Future<CallSet> get(core.String callSetId) { | 718 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.int pageSize, core.String pageToken}) { |
| 731 var _url = null; | 719 var _url = null; |
| 732 var _queryParams = new core.Map(); | 720 var _queryParams = new core.Map(); |
| 733 var _uploadMedia = null; | 721 var _uploadMedia = null; |
| 734 var _uploadOptions = null; | 722 var _uploadOptions = null; |
| 735 var _downloadOptions = commons.DownloadOptions.Metadata; | 723 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 736 var _body = null; | 724 var _body = null; |
| 737 | 725 |
| 738 if (callSetId == null) { | 726 if (name == null) { |
| 739 throw new core.ArgumentError("Parameter callSetId is required."); | 727 throw new core.ArgumentError("Parameter name is required."); |
| 728 } |
| 729 if (filter != null) { |
| 730 _queryParams["filter"] = [filter]; |
| 731 } |
| 732 if (pageSize != null) { |
| 733 _queryParams["pageSize"] = ["${pageSize}"]; |
| 734 } |
| 735 if (pageToken != null) { |
| 736 _queryParams["pageToken"] = [pageToken]; |
| 740 } | 737 } |
| 741 | 738 |
| 742 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); | 739 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 743 | 740 |
| 744 var _response = _requester.request(_url, | 741 var _response = _requester.request(_url, |
| 745 "GET", | 742 "GET", |
| 746 body: _body, | 743 body: _body, |
| 747 queryParams: _queryParams, | 744 queryParams: _queryParams, |
| 748 uploadOptions: _uploadOptions, | 745 uploadOptions: _uploadOptions, |
| 749 uploadMedia: _uploadMedia, | 746 uploadMedia: _uploadMedia, |
| 750 downloadOptions: _downloadOptions); | 747 downloadOptions: _downloadOptions); |
| 751 return _response.then((data) => new CallSet.fromJson(data)); | 748 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 752 } | 749 } |
| 753 | 750 |
| 751 } |
| 752 |
| 753 |
| 754 class ReadgroupsetsResourceApi { |
| 755 final commons.ApiRequester _requester; |
| 756 |
| 757 ReadgroupsetsCoveragebucketsResourceApi get coveragebuckets => new Readgroupse
tsCoveragebucketsResourceApi(_requester); |
| 758 |
| 759 ReadgroupsetsResourceApi(commons.ApiRequester client) : |
| 760 _requester = client; |
| 761 |
| 754 /** | 762 /** |
| 755 * Updates a call set. This method supports patch semantics. | 763 * Deletes a read group set. |
| 756 * | |
| 757 * [request] - The metadata request object. | |
| 758 * | 764 * |
| 759 * Request parameters: | 765 * Request parameters: |
| 760 * | 766 * |
| 761 * [callSetId] - The ID of the call set to be updated. | 767 * [readGroupSetId] - The ID of the read group set to be deleted. The caller |
| 768 * must have WRITE permissions to the dataset associated with this read group |
| 769 * set. |
| 762 * | 770 * |
| 763 * Completes with a [CallSet]. | 771 * Completes with a [Empty]. |
| 764 * | 772 * |
| 765 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 773 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 766 * error. | 774 * error. |
| 767 * | 775 * |
| 768 * If the used [http.Client] completes with an error when making a REST call, | 776 * If the used [http.Client] completes with an error when making a REST call, |
| 769 * this method will complete with the same error. | 777 * this method will complete with the same error. |
| 770 */ | 778 */ |
| 771 async.Future<CallSet> patch(CallSet request, core.String callSetId) { | 779 async.Future<Empty> delete(core.String readGroupSetId) { |
| 772 var _url = null; | 780 var _url = null; |
| 773 var _queryParams = new core.Map(); | 781 var _queryParams = new core.Map(); |
| 774 var _uploadMedia = null; | 782 var _uploadMedia = null; |
| 775 var _uploadOptions = null; | 783 var _uploadOptions = null; |
| 776 var _downloadOptions = commons.DownloadOptions.Metadata; | 784 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 777 var _body = null; | 785 var _body = null; |
| 778 | 786 |
| 779 if (request != null) { | 787 if (readGroupSetId == null) { |
| 780 _body = convert.JSON.encode((request).toJson()); | 788 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 781 } | |
| 782 if (callSetId == null) { | |
| 783 throw new core.ArgumentError("Parameter callSetId is required."); | |
| 784 } | 789 } |
| 785 | 790 |
| 786 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); | 791 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
); |
| 787 | 792 |
| 788 var _response = _requester.request(_url, | 793 var _response = _requester.request(_url, |
| 789 "PATCH", | 794 "DELETE", |
| 790 body: _body, | 795 body: _body, |
| 791 queryParams: _queryParams, | 796 queryParams: _queryParams, |
| 792 uploadOptions: _uploadOptions, | 797 uploadOptions: _uploadOptions, |
| 793 uploadMedia: _uploadMedia, | 798 uploadMedia: _uploadMedia, |
| 794 downloadOptions: _downloadOptions); | 799 downloadOptions: _downloadOptions); |
| 795 return _response.then((data) => new CallSet.fromJson(data)); | 800 return _response.then((data) => new Empty.fromJson(data)); |
| 796 } | 801 } |
| 797 | 802 |
| 798 /** | 803 /** |
| 799 * Gets a list of call sets matching the criteria. | 804 * Exports a read group set to a BAM file in Google Cloud Storage. Note that |
| 800 * | 805 * currently there may be some differences between exported BAM files and the |
| 801 * Implements GlobalAllianceApi.searchCallSets. | 806 * original BAM file at the time of import. In particular, comments in the |
| 807 * input file header will not be preserved, some custom tags will be converted |
| 808 * to strings, and original reference sequence order is not necessarily |
| 809 * preserved. |
| 802 * | 810 * |
| 803 * [request] - The metadata request object. | 811 * [request] - The metadata request object. |
| 804 * | 812 * |
| 805 * Request parameters: | 813 * Request parameters: |
| 806 * | 814 * |
| 807 * Completes with a [SearchCallSetsResponse]. | 815 * [readGroupSetId] - Required. The ID of the read group set to export. |
| 816 * |
| 817 * Completes with a [Operation]. |
| 808 * | 818 * |
| 809 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 810 * error. | 820 * error. |
| 811 * | 821 * |
| 812 * If the used [http.Client] completes with an error when making a REST call, | 822 * If the used [http.Client] completes with an error when making a REST call, |
| 813 * this method will complete with the same error. | 823 * this method will complete with the same error. |
| 814 */ | 824 */ |
| 815 async.Future<SearchCallSetsResponse> search(SearchCallSetsRequest request) { | 825 async.Future<Operation> export(ExportReadGroupSetRequest request, core.String
readGroupSetId) { |
| 816 var _url = null; | 826 var _url = null; |
| 817 var _queryParams = new core.Map(); | 827 var _queryParams = new core.Map(); |
| 818 var _uploadMedia = null; | 828 var _uploadMedia = null; |
| 819 var _uploadOptions = null; | 829 var _uploadOptions = null; |
| 820 var _downloadOptions = commons.DownloadOptions.Metadata; | 830 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 821 var _body = null; | 831 var _body = null; |
| 822 | 832 |
| 823 if (request != null) { | 833 if (request != null) { |
| 824 _body = convert.JSON.encode((request).toJson()); | 834 _body = convert.JSON.encode((request).toJson()); |
| 825 } | 835 } |
| 836 if (readGroupSetId == null) { |
| 837 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 838 } |
| 826 | 839 |
| 827 _url = 'callsets/search'; | 840 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
) + ':export'; |
| 828 | 841 |
| 829 var _response = _requester.request(_url, | 842 var _response = _requester.request(_url, |
| 830 "POST", | 843 "POST", |
| 831 body: _body, | 844 body: _body, |
| 832 queryParams: _queryParams, | 845 queryParams: _queryParams, |
| 833 uploadOptions: _uploadOptions, | 846 uploadOptions: _uploadOptions, |
| 834 uploadMedia: _uploadMedia, | 847 uploadMedia: _uploadMedia, |
| 835 downloadOptions: _downloadOptions); | 848 downloadOptions: _downloadOptions); |
| 836 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); | 849 return _response.then((data) => new Operation.fromJson(data)); |
| 837 } | 850 } |
| 838 | 851 |
| 839 /** | 852 /** |
| 840 * Updates a call set. | 853 * Gets a read group set by ID. |
| 841 * | |
| 842 * [request] - The metadata request object. | |
| 843 * | 854 * |
| 844 * Request parameters: | 855 * Request parameters: |
| 845 * | 856 * |
| 846 * [callSetId] - The ID of the call set to be updated. | 857 * [readGroupSetId] - The ID of the read group set. |
| 847 * | 858 * |
| 848 * Completes with a [CallSet]. | 859 * Completes with a [ReadGroupSet]. |
| 849 * | 860 * |
| 850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 851 * error. | 862 * error. |
| 852 * | 863 * |
| 853 * If the used [http.Client] completes with an error when making a REST call, | 864 * If the used [http.Client] completes with an error when making a REST call, |
| 854 * this method will complete with the same error. | 865 * this method will complete with the same error. |
| 855 */ | 866 */ |
| 856 async.Future<CallSet> update(CallSet request, core.String callSetId) { | 867 async.Future<ReadGroupSet> get(core.String readGroupSetId) { |
| 857 var _url = null; | 868 var _url = null; |
| 858 var _queryParams = new core.Map(); | 869 var _queryParams = new core.Map(); |
| 859 var _uploadMedia = null; | 870 var _uploadMedia = null; |
| 860 var _uploadOptions = null; | 871 var _uploadOptions = null; |
| 861 var _downloadOptions = commons.DownloadOptions.Metadata; | 872 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 862 var _body = null; | 873 var _body = null; |
| 863 | 874 |
| 864 if (request != null) { | 875 if (readGroupSetId == null) { |
| 865 _body = convert.JSON.encode((request).toJson()); | 876 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 866 } | |
| 867 if (callSetId == null) { | |
| 868 throw new core.ArgumentError("Parameter callSetId is required."); | |
| 869 } | 877 } |
| 870 | 878 |
| 871 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); | 879 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
); |
| 872 | 880 |
| 873 var _response = _requester.request(_url, | 881 var _response = _requester.request(_url, |
| 874 "PUT", | 882 "GET", |
| 875 body: _body, | 883 body: _body, |
| 876 queryParams: _queryParams, | 884 queryParams: _queryParams, |
| 877 uploadOptions: _uploadOptions, | 885 uploadOptions: _uploadOptions, |
| 878 uploadMedia: _uploadMedia, | 886 uploadMedia: _uploadMedia, |
| 879 downloadOptions: _downloadOptions); | 887 downloadOptions: _downloadOptions); |
| 880 return _response.then((data) => new CallSet.fromJson(data)); | 888 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
| 881 } | 889 } |
| 882 | 890 |
| 883 } | |
| 884 | |
| 885 | |
| 886 class DatasetsResourceApi { | |
| 887 final commons.ApiRequester _requester; | |
| 888 | |
| 889 DatasetsResourceApi(commons.ApiRequester client) : | |
| 890 _requester = client; | |
| 891 | |
| 892 /** | 891 /** |
| 893 * Creates a new dataset. | 892 * Creates read group sets by asynchronously importing the provided |
| 893 * information. Note that currently comments in the input file header are |
| 894 * **not** imported and some custom tags will be converted to strings, rather |
| 895 * than preserving tag types. The caller must have WRITE permissions to the |
| 896 * dataset. |
| 894 * | 897 * |
| 895 * [request] - The metadata request object. | 898 * [request] - The metadata request object. |
| 896 * | 899 * |
| 897 * Request parameters: | 900 * Request parameters: |
| 898 * | 901 * |
| 899 * Completes with a [Dataset]. | 902 * Completes with a [Operation]. |
| 900 * | 903 * |
| 901 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 904 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 902 * error. | 905 * error. |
| 903 * | 906 * |
| 904 * If the used [http.Client] completes with an error when making a REST call, | 907 * If the used [http.Client] completes with an error when making a REST call, |
| 905 * this method will complete with the same error. | 908 * this method will complete with the same error. |
| 906 */ | 909 */ |
| 907 async.Future<Dataset> create(Dataset request) { | 910 async.Future<Operation> import(ImportReadGroupSetsRequest request) { |
| 908 var _url = null; | 911 var _url = null; |
| 909 var _queryParams = new core.Map(); | 912 var _queryParams = new core.Map(); |
| 910 var _uploadMedia = null; | 913 var _uploadMedia = null; |
| 911 var _uploadOptions = null; | 914 var _uploadOptions = null; |
| 912 var _downloadOptions = commons.DownloadOptions.Metadata; | 915 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 913 var _body = null; | 916 var _body = null; |
| 914 | 917 |
| 915 if (request != null) { | 918 if (request != null) { |
| 916 _body = convert.JSON.encode((request).toJson()); | 919 _body = convert.JSON.encode((request).toJson()); |
| 917 } | 920 } |
| 918 | 921 |
| 919 _url = 'datasets'; | 922 _url = 'v1/readgroupsets:import'; |
| 920 | 923 |
| 921 var _response = _requester.request(_url, | 924 var _response = _requester.request(_url, |
| 922 "POST", | 925 "POST", |
| 923 body: _body, | 926 body: _body, |
| 924 queryParams: _queryParams, | 927 queryParams: _queryParams, |
| 925 uploadOptions: _uploadOptions, | 928 uploadOptions: _uploadOptions, |
| 926 uploadMedia: _uploadMedia, | 929 uploadMedia: _uploadMedia, |
| 927 downloadOptions: _downloadOptions); | 930 downloadOptions: _downloadOptions); |
| 928 return _response.then((data) => new Dataset.fromJson(data)); | 931 return _response.then((data) => new Operation.fromJson(data)); |
| 929 } | 932 } |
| 930 | 933 |
| 931 /** | 934 /** |
| 932 * Deletes a dataset. | 935 * Updates a read group set. This method supports patch semantics. |
| 936 * |
| 937 * [request] - The metadata request object. |
| 933 * | 938 * |
| 934 * Request parameters: | 939 * Request parameters: |
| 935 * | 940 * |
| 936 * [datasetId] - The ID of the dataset to be deleted. | 941 * [readGroupSetId] - The ID of the read group set to be updated. The caller |
| 942 * must have WRITE permissions to the dataset associated with this read group |
| 943 * set. |
| 944 * |
| 945 * [updateMask] - An optional mask specifying which fields to update. At this |
| 946 * time, mutable fields are |
| 947 * [referenceSetId][google.genomics.v1.ReadGroupSet.reference_set_id] and |
| 948 * [name][google.genomics.v1.ReadGroupSet.name]. Acceptable values are |
| 949 * "referenceSetId" and "name". If unspecified, all mutable fields will be |
| 950 * updated. |
| 951 * |
| 952 * Completes with a [ReadGroupSet]. |
| 937 * | 953 * |
| 938 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 954 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 939 * error. | 955 * error. |
| 940 * | 956 * |
| 941 * If the used [http.Client] completes with an error when making a REST call, | 957 * If the used [http.Client] completes with an error when making a REST call, |
| 942 * this method will complete with the same error. | 958 * this method will complete with the same error. |
| 943 */ | 959 */ |
| 944 async.Future delete(core.String datasetId) { | 960 async.Future<ReadGroupSet> patch(ReadGroupSet request, core.String readGroupSe
tId, {core.String updateMask}) { |
| 945 var _url = null; | 961 var _url = null; |
| 946 var _queryParams = new core.Map(); | 962 var _queryParams = new core.Map(); |
| 947 var _uploadMedia = null; | 963 var _uploadMedia = null; |
| 948 var _uploadOptions = null; | 964 var _uploadOptions = null; |
| 949 var _downloadOptions = commons.DownloadOptions.Metadata; | 965 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 950 var _body = null; | 966 var _body = null; |
| 951 | 967 |
| 952 if (datasetId == null) { | 968 if (request != null) { |
| 953 throw new core.ArgumentError("Parameter datasetId is required."); | 969 _body = convert.JSON.encode((request).toJson()); |
| 970 } |
| 971 if (readGroupSetId == null) { |
| 972 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 973 } |
| 974 if (updateMask != null) { |
| 975 _queryParams["updateMask"] = [updateMask]; |
| 954 } | 976 } |
| 955 | 977 |
| 956 _downloadOptions = null; | 978 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
); |
| 957 | |
| 958 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); | |
| 959 | 979 |
| 960 var _response = _requester.request(_url, | 980 var _response = _requester.request(_url, |
| 961 "DELETE", | 981 "PATCH", |
| 962 body: _body, | 982 body: _body, |
| 963 queryParams: _queryParams, | 983 queryParams: _queryParams, |
| 964 uploadOptions: _uploadOptions, | 984 uploadOptions: _uploadOptions, |
| 965 uploadMedia: _uploadMedia, | 985 uploadMedia: _uploadMedia, |
| 966 downloadOptions: _downloadOptions); | 986 downloadOptions: _downloadOptions); |
| 967 return _response.then((data) => null); | 987 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
| 968 } | 988 } |
| 969 | 989 |
| 970 /** | 990 /** |
| 971 * Gets a dataset by ID. | 991 * Searches for read group sets matching the criteria. Implements |
| 992 * [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/bl
ob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135). |
| 993 * |
| 994 * [request] - The metadata request object. |
| 972 * | 995 * |
| 973 * Request parameters: | 996 * Request parameters: |
| 974 * | 997 * |
| 975 * [datasetId] - The ID of the dataset. | 998 * Completes with a [SearchReadGroupSetsResponse]. |
| 976 * | |
| 977 * Completes with a [Dataset]. | |
| 978 * | 999 * |
| 979 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1000 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 980 * error. | 1001 * error. |
| 981 * | 1002 * |
| 982 * If the used [http.Client] completes with an error when making a REST call, | 1003 * If the used [http.Client] completes with an error when making a REST call, |
| 983 * this method will complete with the same error. | 1004 * this method will complete with the same error. |
| 984 */ | 1005 */ |
| 985 async.Future<Dataset> get(core.String datasetId) { | 1006 async.Future<SearchReadGroupSetsResponse> search(SearchReadGroupSetsRequest re
quest) { |
| 986 var _url = null; | 1007 var _url = null; |
| 987 var _queryParams = new core.Map(); | 1008 var _queryParams = new core.Map(); |
| 988 var _uploadMedia = null; | 1009 var _uploadMedia = null; |
| 989 var _uploadOptions = null; | 1010 var _uploadOptions = null; |
| 990 var _downloadOptions = commons.DownloadOptions.Metadata; | 1011 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 991 var _body = null; | 1012 var _body = null; |
| 992 | 1013 |
| 993 if (datasetId == null) { | 1014 if (request != null) { |
| 994 throw new core.ArgumentError("Parameter datasetId is required."); | 1015 _body = convert.JSON.encode((request).toJson()); |
| 995 } | 1016 } |
| 996 | 1017 |
| 997 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); | 1018 _url = 'v1/readgroupsets/search'; |
| 998 | 1019 |
| 999 var _response = _requester.request(_url, | 1020 var _response = _requester.request(_url, |
| 1000 "GET", | 1021 "POST", |
| 1001 body: _body, | 1022 body: _body, |
| 1002 queryParams: _queryParams, | 1023 queryParams: _queryParams, |
| 1003 uploadOptions: _uploadOptions, | 1024 uploadOptions: _uploadOptions, |
| 1004 uploadMedia: _uploadMedia, | 1025 uploadMedia: _uploadMedia, |
| 1005 downloadOptions: _downloadOptions); | 1026 downloadOptions: _downloadOptions); |
| 1006 return _response.then((data) => new Dataset.fromJson(data)); | 1027 return _response.then((data) => new SearchReadGroupSetsResponse.fromJson(dat
a)); |
| 1007 } | 1028 } |
| 1008 | 1029 |
| 1030 } |
| 1031 |
| 1032 |
| 1033 class ReadgroupsetsCoveragebucketsResourceApi { |
| 1034 final commons.ApiRequester _requester; |
| 1035 |
| 1036 ReadgroupsetsCoveragebucketsResourceApi(commons.ApiRequester client) : |
| 1037 _requester = client; |
| 1038 |
| 1009 /** | 1039 /** |
| 1010 * Lists datasets within a project. | 1040 * Lists fixed width coverage buckets for a read group set, each of which |
| 1041 * correspond to a range of a reference sequence. Each bucket summarizes |
| 1042 * coverage information across its corresponding genomic range. Coverage is |
| 1043 * defined as the number of reads which are aligned to a given base in the |
| 1044 * reference sequence. Coverage buckets are available at several precomputed |
| 1045 * bucket widths, enabling retrieval of various coverage 'zoom levels'. The |
| 1046 * caller must have READ permissions for the target read group set. |
| 1011 * | 1047 * |
| 1012 * Request parameters: | 1048 * Request parameters: |
| 1013 * | 1049 * |
| 1014 * [pageSize] - The maximum number of results returned by this request. If | 1050 * [readGroupSetId] - Required. The ID of the read group set over which |
| 1015 * unspecified, defaults to 50. | 1051 * coverage is requested. |
| 1052 * |
| 1053 * [referenceName] - The name of the reference to query, within the reference |
| 1054 * set associated with this query. Optional. |
| 1055 * |
| 1056 * [start] - The start position of the range on the reference, 0-based |
| 1057 * inclusive. If specified, `referenceName` must also be specified. Defaults |
| 1058 * to 0. |
| 1059 * |
| 1060 * [end] - The end position of the range on the reference, 0-based exclusive. |
| 1061 * If specified, `referenceName` must also be specified. If unset or 0, |
| 1062 * defaults to the length of the reference. |
| 1063 * |
| 1064 * [targetBucketWidth] - The desired width of each reported coverage bucket in |
| 1065 * base pairs. This will be rounded down to the nearest precomputed bucket |
| 1066 * width; the value of which is returned as `bucketWidth` in the response. |
| 1067 * Defaults to infinity (each bucket spans an entire reference sequence) or |
| 1068 * the length of the target range, if specified. The smallest precomputed |
| 1069 * `bucketWidth` is currently 2048 base pairs; this is subject to change. |
| 1016 * | 1070 * |
| 1017 * [pageToken] - The continuation token, which is used to page through large | 1071 * [pageToken] - The continuation token, which is used to page through large |
| 1018 * result sets. To get the next page of results, set this parameter to the | 1072 * result sets. To get the next page of results, set this parameter to the |
| 1019 * value of nextPageToken from the previous response. | 1073 * value of `nextPageToken` from the previous response. |
| 1020 * | 1074 * |
| 1021 * [projectNumber] - Required. The project to list datasets for. | 1075 * [pageSize] - The maximum number of results to return in a single page. If |
| 1076 * unspecified, defaults to 1024. The maximum value is 2048. |
| 1022 * | 1077 * |
| 1023 * Completes with a [ListDatasetsResponse]. | 1078 * Completes with a [ListCoverageBucketsResponse]. |
| 1024 * | 1079 * |
| 1025 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1080 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1026 * error. | 1081 * error. |
| 1027 * | 1082 * |
| 1028 * If the used [http.Client] completes with an error when making a REST call, | 1083 * If the used [http.Client] completes with an error when making a REST call, |
| 1029 * this method will complete with the same error. | 1084 * this method will complete with the same error. |
| 1030 */ | 1085 */ |
| 1031 async.Future<ListDatasetsResponse> list({core.int pageSize, core.String pageTo
ken, core.String projectNumber}) { | 1086 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.String referenceName, core.String start, core.String end, core.String targetB
ucketWidth, core.String pageToken, core.int pageSize}) { |
| 1032 var _url = null; | 1087 var _url = null; |
| 1033 var _queryParams = new core.Map(); | 1088 var _queryParams = new core.Map(); |
| 1034 var _uploadMedia = null; | 1089 var _uploadMedia = null; |
| 1035 var _uploadOptions = null; | 1090 var _uploadOptions = null; |
| 1036 var _downloadOptions = commons.DownloadOptions.Metadata; | 1091 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1037 var _body = null; | 1092 var _body = null; |
| 1038 | 1093 |
| 1039 if (pageSize != null) { | 1094 if (readGroupSetId == null) { |
| 1040 _queryParams["pageSize"] = ["${pageSize}"]; | 1095 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1096 } |
| 1097 if (referenceName != null) { |
| 1098 _queryParams["referenceName"] = [referenceName]; |
| 1099 } |
| 1100 if (start != null) { |
| 1101 _queryParams["start"] = [start]; |
| 1102 } |
| 1103 if (end != null) { |
| 1104 _queryParams["end"] = [end]; |
| 1105 } |
| 1106 if (targetBucketWidth != null) { |
| 1107 _queryParams["targetBucketWidth"] = [targetBucketWidth]; |
| 1041 } | 1108 } |
| 1042 if (pageToken != null) { | 1109 if (pageToken != null) { |
| 1043 _queryParams["pageToken"] = [pageToken]; | 1110 _queryParams["pageToken"] = [pageToken]; |
| 1044 } | 1111 } |
| 1045 if (projectNumber != null) { | 1112 if (pageSize != null) { |
| 1046 _queryParams["projectNumber"] = [projectNumber]; | 1113 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1047 } | 1114 } |
| 1048 | 1115 |
| 1049 _url = 'datasets'; | 1116 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
) + '/coveragebuckets'; |
| 1050 | 1117 |
| 1051 var _response = _requester.request(_url, | 1118 var _response = _requester.request(_url, |
| 1052 "GET", | 1119 "GET", |
| 1053 body: _body, | 1120 body: _body, |
| 1054 queryParams: _queryParams, | 1121 queryParams: _queryParams, |
| 1055 uploadOptions: _uploadOptions, | 1122 uploadOptions: _uploadOptions, |
| 1056 uploadMedia: _uploadMedia, | 1123 uploadMedia: _uploadMedia, |
| 1057 downloadOptions: _downloadOptions); | 1124 downloadOptions: _downloadOptions); |
| 1058 return _response.then((data) => new ListDatasetsResponse.fromJson(data)); | 1125 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); |
| 1059 } | 1126 } |
| 1060 | 1127 |
| 1128 } |
| 1129 |
| 1130 |
| 1131 class ReadsResourceApi { |
| 1132 final commons.ApiRequester _requester; |
| 1133 |
| 1134 ReadsResourceApi(commons.ApiRequester client) : |
| 1135 _requester = client; |
| 1136 |
| 1061 /** | 1137 /** |
| 1062 * Updates a dataset. This method supports patch semantics. | 1138 * Gets a list of reads for one or more read group sets. Reads search operates |
| 1139 * over a genomic coordinate space of reference sequence & position defined |
| 1140 * over the reference sequences to which the requested read group sets are |
| 1141 * aligned. If a target positional range is specified, search returns all |
| 1142 * reads whose alignment to the reference genome overlap the range. A query |
| 1143 * which specifies only read group set IDs yields all reads in those read |
| 1144 * group sets, including unmapped reads. All reads returned (including reads |
| 1145 * on subsequent pages) are ordered by genomic coordinate (reference sequence |
| 1146 * & position). Reads with equivalent genomic coordinates are returned in a |
| 1147 * deterministic order. Implements |
| 1148 * [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.
1/src/main/resources/avro/readmethods.avdl#L85). |
| 1063 * | 1149 * |
| 1064 * [request] - The metadata request object. | 1150 * [request] - The metadata request object. |
| 1065 * | 1151 * |
| 1066 * Request parameters: | 1152 * Request parameters: |
| 1067 * | 1153 * |
| 1068 * [datasetId] - The ID of the dataset to be updated. | 1154 * Completes with a [SearchReadsResponse]. |
| 1069 * | |
| 1070 * Completes with a [Dataset]. | |
| 1071 * | 1155 * |
| 1072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1156 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1073 * error. | 1157 * error. |
| 1074 * | 1158 * |
| 1075 * If the used [http.Client] completes with an error when making a REST call, | 1159 * If the used [http.Client] completes with an error when making a REST call, |
| 1076 * this method will complete with the same error. | 1160 * this method will complete with the same error. |
| 1077 */ | 1161 */ |
| 1078 async.Future<Dataset> patch(Dataset request, core.String datasetId) { | 1162 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { |
| 1079 var _url = null; | 1163 var _url = null; |
| 1080 var _queryParams = new core.Map(); | 1164 var _queryParams = new core.Map(); |
| 1081 var _uploadMedia = null; | 1165 var _uploadMedia = null; |
| 1082 var _uploadOptions = null; | 1166 var _uploadOptions = null; |
| 1083 var _downloadOptions = commons.DownloadOptions.Metadata; | 1167 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1084 var _body = null; | 1168 var _body = null; |
| 1085 | 1169 |
| 1086 if (request != null) { | 1170 if (request != null) { |
| 1087 _body = convert.JSON.encode((request).toJson()); | 1171 _body = convert.JSON.encode((request).toJson()); |
| 1088 } | 1172 } |
| 1089 if (datasetId == null) { | |
| 1090 throw new core.ArgumentError("Parameter datasetId is required."); | |
| 1091 } | |
| 1092 | 1173 |
| 1093 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); | 1174 _url = 'v1/reads/search'; |
| 1094 | 1175 |
| 1095 var _response = _requester.request(_url, | 1176 var _response = _requester.request(_url, |
| 1096 "PATCH", | 1177 "POST", |
| 1097 body: _body, | 1178 body: _body, |
| 1098 queryParams: _queryParams, | 1179 queryParams: _queryParams, |
| 1099 uploadOptions: _uploadOptions, | 1180 uploadOptions: _uploadOptions, |
| 1100 uploadMedia: _uploadMedia, | 1181 uploadMedia: _uploadMedia, |
| 1101 downloadOptions: _downloadOptions); | 1182 downloadOptions: _downloadOptions); |
| 1102 return _response.then((data) => new Dataset.fromJson(data)); | 1183 return _response.then((data) => new SearchReadsResponse.fromJson(data)); |
| 1103 } | 1184 } |
| 1104 | 1185 |
| 1186 } |
| 1187 |
| 1188 |
| 1189 class ReferencesResourceApi { |
| 1190 final commons.ApiRequester _requester; |
| 1191 |
| 1192 ReferencesBasesResourceApi get bases => new ReferencesBasesResourceApi(_reques
ter); |
| 1193 |
| 1194 ReferencesResourceApi(commons.ApiRequester client) : |
| 1195 _requester = client; |
| 1196 |
| 1105 /** | 1197 /** |
| 1106 * Undeletes a dataset by restoring a dataset which was deleted via this API. | 1198 * Gets a reference. Implements |
| 1107 * This operation is only possible for a week after the deletion occurred. | 1199 * [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5
.1/src/main/resources/avro/referencemethods.avdl#L158). |
| 1108 * | 1200 * |
| 1109 * Request parameters: | 1201 * Request parameters: |
| 1110 * | 1202 * |
| 1111 * [datasetId] - The ID of the dataset to be undeleted. | 1203 * [referenceId] - The ID of the reference. |
| 1112 * | 1204 * |
| 1113 * Completes with a [Dataset]. | 1205 * Completes with a [Reference]. |
| 1114 * | 1206 * |
| 1115 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1207 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1116 * error. | 1208 * error. |
| 1117 * | 1209 * |
| 1118 * If the used [http.Client] completes with an error when making a REST call, | 1210 * If the used [http.Client] completes with an error when making a REST call, |
| 1119 * this method will complete with the same error. | 1211 * this method will complete with the same error. |
| 1120 */ | 1212 */ |
| 1121 async.Future<Dataset> undelete(core.String datasetId) { | 1213 async.Future<Reference> get(core.String referenceId) { |
| 1122 var _url = null; | 1214 var _url = null; |
| 1123 var _queryParams = new core.Map(); | 1215 var _queryParams = new core.Map(); |
| 1124 var _uploadMedia = null; | 1216 var _uploadMedia = null; |
| 1125 var _uploadOptions = null; | 1217 var _uploadOptions = null; |
| 1126 var _downloadOptions = commons.DownloadOptions.Metadata; | 1218 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1127 var _body = null; | 1219 var _body = null; |
| 1128 | 1220 |
| 1129 if (datasetId == null) { | 1221 if (referenceId == null) { |
| 1130 throw new core.ArgumentError("Parameter datasetId is required."); | 1222 throw new core.ArgumentError("Parameter referenceId is required."); |
| 1131 } | 1223 } |
| 1132 | 1224 |
| 1133 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId') + '/undelet
e'; | 1225 _url = 'v1/references/' + commons.Escaper.ecapeVariable('$referenceId'); |
| 1134 | 1226 |
| 1135 var _response = _requester.request(_url, | 1227 var _response = _requester.request(_url, |
| 1136 "POST", | 1228 "GET", |
| 1137 body: _body, | 1229 body: _body, |
| 1138 queryParams: _queryParams, | 1230 queryParams: _queryParams, |
| 1139 uploadOptions: _uploadOptions, | 1231 uploadOptions: _uploadOptions, |
| 1140 uploadMedia: _uploadMedia, | 1232 uploadMedia: _uploadMedia, |
| 1141 downloadOptions: _downloadOptions); | 1233 downloadOptions: _downloadOptions); |
| 1142 return _response.then((data) => new Dataset.fromJson(data)); | 1234 return _response.then((data) => new Reference.fromJson(data)); |
| 1143 } | 1235 } |
| 1144 | 1236 |
| 1145 /** | 1237 /** |
| 1146 * Updates a dataset. | 1238 * Searches for references which match the given criteria. Implements |
| 1239 * [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/
v0.5.1/src/main/resources/avro/referencemethods.avdl#L146). |
| 1147 * | 1240 * |
| 1148 * [request] - The metadata request object. | 1241 * [request] - The metadata request object. |
| 1149 * | 1242 * |
| 1150 * Request parameters: | 1243 * Request parameters: |
| 1151 * | 1244 * |
| 1152 * [datasetId] - The ID of the dataset to be updated. | 1245 * Completes with a [SearchReferencesResponse]. |
| 1153 * | |
| 1154 * Completes with a [Dataset]. | |
| 1155 * | 1246 * |
| 1156 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1157 * error. | 1248 * error. |
| 1158 * | 1249 * |
| 1159 * If the used [http.Client] completes with an error when making a REST call, | 1250 * If the used [http.Client] completes with an error when making a REST call, |
| 1160 * this method will complete with the same error. | 1251 * this method will complete with the same error. |
| 1161 */ | 1252 */ |
| 1162 async.Future<Dataset> update(Dataset request, core.String datasetId) { | 1253 async.Future<SearchReferencesResponse> search(SearchReferencesRequest request)
{ |
| 1163 var _url = null; | 1254 var _url = null; |
| 1164 var _queryParams = new core.Map(); | 1255 var _queryParams = new core.Map(); |
| 1165 var _uploadMedia = null; | 1256 var _uploadMedia = null; |
| 1166 var _uploadOptions = null; | 1257 var _uploadOptions = null; |
| 1167 var _downloadOptions = commons.DownloadOptions.Metadata; | 1258 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1168 var _body = null; | 1259 var _body = null; |
| 1169 | 1260 |
| 1170 if (request != null) { | 1261 if (request != null) { |
| 1171 _body = convert.JSON.encode((request).toJson()); | 1262 _body = convert.JSON.encode((request).toJson()); |
| 1172 } | 1263 } |
| 1173 if (datasetId == null) { | |
| 1174 throw new core.ArgumentError("Parameter datasetId is required."); | |
| 1175 } | |
| 1176 | 1264 |
| 1177 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); | 1265 _url = 'v1/references/search'; |
| 1178 | 1266 |
| 1179 var _response = _requester.request(_url, | 1267 var _response = _requester.request(_url, |
| 1180 "PUT", | 1268 "POST", |
| 1181 body: _body, | 1269 body: _body, |
| 1182 queryParams: _queryParams, | 1270 queryParams: _queryParams, |
| 1183 uploadOptions: _uploadOptions, | 1271 uploadOptions: _uploadOptions, |
| 1184 uploadMedia: _uploadMedia, | 1272 uploadMedia: _uploadMedia, |
| 1185 downloadOptions: _downloadOptions); | 1273 downloadOptions: _downloadOptions); |
| 1186 return _response.then((data) => new Dataset.fromJson(data)); | 1274 return _response.then((data) => new SearchReferencesResponse.fromJson(data))
; |
| 1187 } | 1275 } |
| 1188 | 1276 |
| 1189 } | 1277 } |
| 1190 | 1278 |
| 1191 | 1279 |
| 1192 class ExperimentalResourceApi { | 1280 class ReferencesBasesResourceApi { |
| 1193 final commons.ApiRequester _requester; | 1281 final commons.ApiRequester _requester; |
| 1194 | 1282 |
| 1195 ExperimentalJobsResourceApi get jobs => new ExperimentalJobsResourceApi(_reque
ster); | 1283 ReferencesBasesResourceApi(commons.ApiRequester client) : |
| 1196 | |
| 1197 ExperimentalResourceApi(commons.ApiRequester client) : | |
| 1198 _requester = client; | |
| 1199 } | |
| 1200 | |
| 1201 | |
| 1202 class ExperimentalJobsResourceApi { | |
| 1203 final commons.ApiRequester _requester; | |
| 1204 | |
| 1205 ExperimentalJobsResourceApi(commons.ApiRequester client) : | |
| 1206 _requester = client; | 1284 _requester = client; |
| 1207 | 1285 |
| 1208 /** | 1286 /** |
| 1209 * Creates and asynchronously runs an ad-hoc job. This is an experimental call | 1287 * Lists the bases in a reference, optionally restricted to a range. |
| 1210 * and may be removed or changed at any time. | 1288 * Implements |
| 1211 * | 1289 * [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob
/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221). |
| 1212 * [request] - The metadata request object. | |
| 1213 * | 1290 * |
| 1214 * Request parameters: | 1291 * Request parameters: |
| 1215 * | 1292 * |
| 1216 * Completes with a [ExperimentalCreateJobResponse]. | 1293 * [referenceId] - The ID of the reference. |
| 1294 * |
| 1295 * [start] - The start position (0-based) of this query. Defaults to 0. |
| 1296 * |
| 1297 * [end] - The end position (0-based, exclusive) of this query. Defaults to |
| 1298 * the length of this reference. |
| 1299 * |
| 1300 * [pageToken] - The continuation token, which is used to page through large |
| 1301 * result sets. To get the next page of results, set this parameter to the |
| 1302 * value of `nextPageToken` from the previous response. |
| 1303 * |
| 1304 * [pageSize] - Specifies the maximum number of bases to return in a single |
| 1305 * page. |
| 1306 * |
| 1307 * Completes with a [ListBasesResponse]. |
| 1217 * | 1308 * |
| 1218 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1219 * error. | 1310 * error. |
| 1220 * | 1311 * |
| 1221 * If the used [http.Client] completes with an error when making a REST call, | 1312 * If the used [http.Client] completes with an error when making a REST call, |
| 1222 * this method will complete with the same error. | 1313 * this method will complete with the same error. |
| 1223 */ | 1314 */ |
| 1224 async.Future<ExperimentalCreateJobResponse> create(ExperimentalCreateJobReques
t request) { | 1315 async.Future<ListBasesResponse> list(core.String referenceId, {core.String sta
rt, core.String end, core.String pageToken, core.int pageSize}) { |
| 1225 var _url = null; | 1316 var _url = null; |
| 1226 var _queryParams = new core.Map(); | 1317 var _queryParams = new core.Map(); |
| 1227 var _uploadMedia = null; | 1318 var _uploadMedia = null; |
| 1228 var _uploadOptions = null; | 1319 var _uploadOptions = null; |
| 1229 var _downloadOptions = commons.DownloadOptions.Metadata; | 1320 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1230 var _body = null; | 1321 var _body = null; |
| 1231 | 1322 |
| 1232 if (request != null) { | 1323 if (referenceId == null) { |
| 1233 _body = convert.JSON.encode((request).toJson()); | 1324 throw new core.ArgumentError("Parameter referenceId is required."); |
| 1325 } |
| 1326 if (start != null) { |
| 1327 _queryParams["start"] = [start]; |
| 1328 } |
| 1329 if (end != null) { |
| 1330 _queryParams["end"] = [end]; |
| 1331 } |
| 1332 if (pageToken != null) { |
| 1333 _queryParams["pageToken"] = [pageToken]; |
| 1334 } |
| 1335 if (pageSize != null) { |
| 1336 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1234 } | 1337 } |
| 1235 | 1338 |
| 1236 _url = 'experimental/jobs/create'; | 1339 _url = 'v1/references/' + commons.Escaper.ecapeVariable('$referenceId') + '/
bases'; |
| 1237 | 1340 |
| 1238 var _response = _requester.request(_url, | 1341 var _response = _requester.request(_url, |
| 1239 "POST", | 1342 "GET", |
| 1240 body: _body, | 1343 body: _body, |
| 1241 queryParams: _queryParams, | 1344 queryParams: _queryParams, |
| 1242 uploadOptions: _uploadOptions, | 1345 uploadOptions: _uploadOptions, |
| 1243 uploadMedia: _uploadMedia, | 1346 uploadMedia: _uploadMedia, |
| 1244 downloadOptions: _downloadOptions); | 1347 downloadOptions: _downloadOptions); |
| 1245 return _response.then((data) => new ExperimentalCreateJobResponse.fromJson(d
ata)); | 1348 return _response.then((data) => new ListBasesResponse.fromJson(data)); |
| 1246 } | 1349 } |
| 1247 | 1350 |
| 1248 } | 1351 } |
| 1249 | 1352 |
| 1250 | 1353 |
| 1251 class JobsResourceApi { | 1354 class ReferencesetsResourceApi { |
| 1252 final commons.ApiRequester _requester; | 1355 final commons.ApiRequester _requester; |
| 1253 | 1356 |
| 1254 JobsResourceApi(commons.ApiRequester client) : | 1357 ReferencesetsResourceApi(commons.ApiRequester client) : |
| 1255 _requester = client; | 1358 _requester = client; |
| 1256 | 1359 |
| 1257 /** | 1360 /** |
| 1258 * Cancels a job by ID. Note that it is possible for partial results to be | 1361 * Gets a reference set. Implements |
| 1259 * generated and stored for cancelled jobs. | 1362 * [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v
0.5.1/src/main/resources/avro/referencemethods.avdl#L83). |
| 1260 * | 1363 * |
| 1261 * Request parameters: | 1364 * Request parameters: |
| 1262 * | 1365 * |
| 1263 * [jobId] - Required. The ID of the job. | 1366 * [referenceSetId] - The ID of the reference set. |
| 1367 * |
| 1368 * Completes with a [ReferenceSet]. |
| 1264 * | 1369 * |
| 1265 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1370 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1266 * error. | 1371 * error. |
| 1267 * | |
| 1268 * If the used [http.Client] completes with an error when making a REST call, | |
| 1269 * this method will complete with the same error. | |
| 1270 */ | |
| 1271 async.Future cancel(core.String jobId) { | |
| 1272 var _url = null; | |
| 1273 var _queryParams = new core.Map(); | |
| 1274 var _uploadMedia = null; | |
| 1275 var _uploadOptions = null; | |
| 1276 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 1277 var _body = null; | |
| 1278 | |
| 1279 if (jobId == null) { | |
| 1280 throw new core.ArgumentError("Parameter jobId is required."); | |
| 1281 } | |
| 1282 | |
| 1283 _downloadOptions = null; | |
| 1284 | |
| 1285 _url = 'jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/cancel'; | |
| 1286 | |
| 1287 var _response = _requester.request(_url, | |
| 1288 "POST", | |
| 1289 body: _body, | |
| 1290 queryParams: _queryParams, | |
| 1291 uploadOptions: _uploadOptions, | |
| 1292 uploadMedia: _uploadMedia, | |
| 1293 downloadOptions: _downloadOptions); | |
| 1294 return _response.then((data) => null); | |
| 1295 } | |
| 1296 | |
| 1297 /** | |
| 1298 * Gets a job by ID. | |
| 1299 * | |
| 1300 * Request parameters: | |
| 1301 * | |
| 1302 * [jobId] - Required. The ID of the job. | |
| 1303 * | |
| 1304 * Completes with a [Job]. | |
| 1305 * | |
| 1306 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 1307 * error. | |
| 1308 * | 1372 * |
| 1309 * If the used [http.Client] completes with an error when making a REST call, | 1373 * If the used [http.Client] completes with an error when making a REST call, |
| 1310 * this method will complete with the same error. | 1374 * this method will complete with the same error. |
| 1311 */ | 1375 */ |
| 1312 async.Future<Job> get(core.String jobId) { | 1376 async.Future<ReferenceSet> get(core.String referenceSetId) { |
| 1313 var _url = null; | 1377 var _url = null; |
| 1314 var _queryParams = new core.Map(); | 1378 var _queryParams = new core.Map(); |
| 1315 var _uploadMedia = null; | 1379 var _uploadMedia = null; |
| 1316 var _uploadOptions = null; | 1380 var _uploadOptions = null; |
| 1317 var _downloadOptions = commons.DownloadOptions.Metadata; | 1381 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1318 var _body = null; | 1382 var _body = null; |
| 1319 | 1383 |
| 1320 if (jobId == null) { | 1384 if (referenceSetId == null) { |
| 1321 throw new core.ArgumentError("Parameter jobId is required."); | 1385 throw new core.ArgumentError("Parameter referenceSetId is required."); |
| 1322 } | 1386 } |
| 1323 | 1387 |
| 1324 _url = 'jobs/' + commons.Escaper.ecapeVariable('$jobId'); | 1388 _url = 'v1/referencesets/' + commons.Escaper.ecapeVariable('$referenceSetId'
); |
| 1325 | 1389 |
| 1326 var _response = _requester.request(_url, | 1390 var _response = _requester.request(_url, |
| 1327 "GET", | 1391 "GET", |
| 1328 body: _body, | 1392 body: _body, |
| 1329 queryParams: _queryParams, | 1393 queryParams: _queryParams, |
| 1330 uploadOptions: _uploadOptions, | 1394 uploadOptions: _uploadOptions, |
| 1331 uploadMedia: _uploadMedia, | 1395 uploadMedia: _uploadMedia, |
| 1332 downloadOptions: _downloadOptions); | 1396 downloadOptions: _downloadOptions); |
| 1333 return _response.then((data) => new Job.fromJson(data)); | 1397 return _response.then((data) => new ReferenceSet.fromJson(data)); |
| 1334 } | 1398 } |
| 1335 | 1399 |
| 1336 /** | 1400 /** |
| 1337 * Gets a list of jobs matching the criteria. | 1401 * Searches for reference sets which match the given criteria. Implements |
| 1402 * [GlobalAllianceApi.searchReferenceSets](http://ga4gh.org/documentation/api/
v0.5.1/ga4gh_api.html#/schema/org.ga4gh.searchReferenceSets). |
| 1338 * | 1403 * |
| 1339 * [request] - The metadata request object. | 1404 * [request] - The metadata request object. |
| 1340 * | 1405 * |
| 1341 * Request parameters: | 1406 * Request parameters: |
| 1342 * | 1407 * |
| 1343 * Completes with a [SearchJobsResponse]. | 1408 * Completes with a [SearchReferenceSetsResponse]. |
| 1344 * | 1409 * |
| 1345 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1410 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1346 * error. | 1411 * error. |
| 1347 * | 1412 * |
| 1348 * If the used [http.Client] completes with an error when making a REST call, | 1413 * If the used [http.Client] completes with an error when making a REST call, |
| 1349 * this method will complete with the same error. | 1414 * this method will complete with the same error. |
| 1350 */ | 1415 */ |
| 1351 async.Future<SearchJobsResponse> search(SearchJobsRequest request) { | 1416 async.Future<SearchReferenceSetsResponse> search(SearchReferenceSetsRequest re
quest) { |
| 1352 var _url = null; | 1417 var _url = null; |
| 1353 var _queryParams = new core.Map(); | 1418 var _queryParams = new core.Map(); |
| 1354 var _uploadMedia = null; | 1419 var _uploadMedia = null; |
| 1355 var _uploadOptions = null; | 1420 var _uploadOptions = null; |
| 1356 var _downloadOptions = commons.DownloadOptions.Metadata; | 1421 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1357 var _body = null; | 1422 var _body = null; |
| 1358 | 1423 |
| 1359 if (request != null) { | 1424 if (request != null) { |
| 1360 _body = convert.JSON.encode((request).toJson()); | 1425 _body = convert.JSON.encode((request).toJson()); |
| 1361 } | 1426 } |
| 1362 | 1427 |
| 1363 _url = 'jobs/search'; | 1428 _url = 'v1/referencesets/search'; |
| 1364 | 1429 |
| 1365 var _response = _requester.request(_url, | 1430 var _response = _requester.request(_url, |
| 1366 "POST", | 1431 "POST", |
| 1367 body: _body, | 1432 body: _body, |
| 1368 queryParams: _queryParams, | 1433 queryParams: _queryParams, |
| 1369 uploadOptions: _uploadOptions, | 1434 uploadOptions: _uploadOptions, |
| 1370 uploadMedia: _uploadMedia, | 1435 uploadMedia: _uploadMedia, |
| 1371 downloadOptions: _downloadOptions); | 1436 downloadOptions: _downloadOptions); |
| 1372 return _response.then((data) => new SearchJobsResponse.fromJson(data)); | 1437 return _response.then((data) => new SearchReferenceSetsResponse.fromJson(dat
a)); |
| 1373 } | 1438 } |
| 1374 | 1439 |
| 1375 } | 1440 } |
| 1376 | 1441 |
| 1377 | 1442 |
| 1378 class ReadgroupsetsResourceApi { | 1443 class VariantsResourceApi { |
| 1379 final commons.ApiRequester _requester; | 1444 final commons.ApiRequester _requester; |
| 1380 | 1445 |
| 1381 ReadgroupsetsCoveragebucketsResourceApi get coveragebuckets => new Readgroupse
tsCoveragebucketsResourceApi(_requester); | 1446 VariantsResourceApi(commons.ApiRequester client) : |
| 1382 | |
| 1383 ReadgroupsetsResourceApi(commons.ApiRequester client) : | |
| 1384 _requester = client; | 1447 _requester = client; |
| 1385 | 1448 |
| 1386 /** | 1449 /** |
| 1387 * Aligns read data from existing read group sets or files from Google Cloud | 1450 * Creates a new variant. |
| 1388 * Storage. See the alignment and variant calling documentation for more | |
| 1389 * details. | |
| 1390 * | 1451 * |
| 1391 * [request] - The metadata request object. | 1452 * [request] - The metadata request object. |
| 1392 * | 1453 * |
| 1393 * Request parameters: | 1454 * Request parameters: |
| 1394 * | 1455 * |
| 1395 * Completes with a [AlignReadGroupSetsResponse]. | 1456 * Completes with a [Variant]. |
| 1396 * | 1457 * |
| 1397 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1458 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1398 * error. | 1459 * error. |
| 1399 * | 1460 * |
| 1400 * If the used [http.Client] completes with an error when making a REST call, | 1461 * If the used [http.Client] completes with an error when making a REST call, |
| 1401 * this method will complete with the same error. | 1462 * this method will complete with the same error. |
| 1402 */ | 1463 */ |
| 1403 async.Future<AlignReadGroupSetsResponse> align(AlignReadGroupSetsRequest reque
st) { | 1464 async.Future<Variant> create(Variant request) { |
| 1404 var _url = null; | 1465 var _url = null; |
| 1405 var _queryParams = new core.Map(); | 1466 var _queryParams = new core.Map(); |
| 1406 var _uploadMedia = null; | 1467 var _uploadMedia = null; |
| 1407 var _uploadOptions = null; | 1468 var _uploadOptions = null; |
| 1408 var _downloadOptions = commons.DownloadOptions.Metadata; | 1469 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1409 var _body = null; | 1470 var _body = null; |
| 1410 | 1471 |
| 1411 if (request != null) { | 1472 if (request != null) { |
| 1412 _body = convert.JSON.encode((request).toJson()); | 1473 _body = convert.JSON.encode((request).toJson()); |
| 1413 } | 1474 } |
| 1414 | 1475 |
| 1415 _url = 'readgroupsets/align'; | 1476 _url = 'v1/variants'; |
| 1416 | 1477 |
| 1417 var _response = _requester.request(_url, | 1478 var _response = _requester.request(_url, |
| 1418 "POST", | 1479 "POST", |
| 1419 body: _body, | 1480 body: _body, |
| 1420 queryParams: _queryParams, | 1481 queryParams: _queryParams, |
| 1421 uploadOptions: _uploadOptions, | 1482 uploadOptions: _uploadOptions, |
| 1422 uploadMedia: _uploadMedia, | 1483 uploadMedia: _uploadMedia, |
| 1423 downloadOptions: _downloadOptions); | 1484 downloadOptions: _downloadOptions); |
| 1424 return _response.then((data) => new AlignReadGroupSetsResponse.fromJson(data
)); | 1485 return _response.then((data) => new Variant.fromJson(data)); |
| 1425 } | 1486 } |
| 1426 | 1487 |
| 1427 /** | 1488 /** |
| 1428 * Calls variants on read data from existing read group sets or files from | 1489 * Deletes a variant. |
| 1429 * Google Cloud Storage. See the alignment and variant calling documentation | |
| 1430 * for more details. | |
| 1431 * | |
| 1432 * [request] - The metadata request object. | |
| 1433 * | 1490 * |
| 1434 * Request parameters: | 1491 * Request parameters: |
| 1435 * | 1492 * |
| 1436 * Completes with a [CallReadGroupSetsResponse]. | 1493 * [variantId] - The ID of the variant to be deleted. |
| 1494 * |
| 1495 * Completes with a [Empty]. |
| 1437 * | 1496 * |
| 1438 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1439 * error. | 1498 * error. |
| 1440 * | 1499 * |
| 1441 * If the used [http.Client] completes with an error when making a REST call, | 1500 * If the used [http.Client] completes with an error when making a REST call, |
| 1442 * this method will complete with the same error. | 1501 * this method will complete with the same error. |
| 1443 */ | 1502 */ |
| 1444 async.Future<CallReadGroupSetsResponse> call(CallReadGroupSetsRequest request)
{ | 1503 async.Future<Empty> delete(core.String variantId) { |
| 1445 var _url = null; | 1504 var _url = null; |
| 1446 var _queryParams = new core.Map(); | 1505 var _queryParams = new core.Map(); |
| 1447 var _uploadMedia = null; | 1506 var _uploadMedia = null; |
| 1448 var _uploadOptions = null; | 1507 var _uploadOptions = null; |
| 1449 var _downloadOptions = commons.DownloadOptions.Metadata; | 1508 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1450 var _body = null; | 1509 var _body = null; |
| 1451 | 1510 |
| 1452 if (request != null) { | 1511 if (variantId == null) { |
| 1453 _body = convert.JSON.encode((request).toJson()); | 1512 throw new core.ArgumentError("Parameter variantId is required."); |
| 1454 } | 1513 } |
| 1455 | 1514 |
| 1456 _url = 'readgroupsets/call'; | 1515 _url = 'v1/variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 1457 | 1516 |
| 1458 var _response = _requester.request(_url, | 1517 var _response = _requester.request(_url, |
| 1459 "POST", | 1518 "DELETE", |
| 1460 body: _body, | 1519 body: _body, |
| 1461 queryParams: _queryParams, | 1520 queryParams: _queryParams, |
| 1462 uploadOptions: _uploadOptions, | 1521 uploadOptions: _uploadOptions, |
| 1463 uploadMedia: _uploadMedia, | 1522 uploadMedia: _uploadMedia, |
| 1464 downloadOptions: _downloadOptions); | 1523 downloadOptions: _downloadOptions); |
| 1465 return _response.then((data) => new CallReadGroupSetsResponse.fromJson(data)
); | 1524 return _response.then((data) => new Empty.fromJson(data)); |
| 1466 } | 1525 } |
| 1467 | 1526 |
| 1468 /** | 1527 /** |
| 1469 * Deletes a read group set. | 1528 * Gets a variant by ID. |
| 1470 * | 1529 * |
| 1471 * Request parameters: | 1530 * Request parameters: |
| 1472 * | 1531 * |
| 1473 * [readGroupSetId] - The ID of the read group set to be deleted. The caller | 1532 * [variantId] - The ID of the variant. |
| 1474 * must have WRITE permissions to the dataset associated with this read group | 1533 * |
| 1475 * set. | 1534 * Completes with a [Variant]. |
| 1476 * | 1535 * |
| 1477 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1536 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1478 * error. | 1537 * error. |
| 1479 * | 1538 * |
| 1480 * If the used [http.Client] completes with an error when making a REST call, | 1539 * If the used [http.Client] completes with an error when making a REST call, |
| 1481 * this method will complete with the same error. | 1540 * this method will complete with the same error. |
| 1482 */ | 1541 */ |
| 1483 async.Future delete(core.String readGroupSetId) { | 1542 async.Future<Variant> get(core.String variantId) { |
| 1484 var _url = null; | 1543 var _url = null; |
| 1485 var _queryParams = new core.Map(); | 1544 var _queryParams = new core.Map(); |
| 1486 var _uploadMedia = null; | 1545 var _uploadMedia = null; |
| 1487 var _uploadOptions = null; | 1546 var _uploadOptions = null; |
| 1488 var _downloadOptions = commons.DownloadOptions.Metadata; | 1547 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1489 var _body = null; | 1548 var _body = null; |
| 1490 | 1549 |
| 1491 if (readGroupSetId == null) { | 1550 if (variantId == null) { |
| 1492 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1551 throw new core.ArgumentError("Parameter variantId is required."); |
| 1493 } | 1552 } |
| 1494 | 1553 |
| 1495 _downloadOptions = null; | 1554 _url = 'v1/variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 1496 | |
| 1497 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); | |
| 1498 | 1555 |
| 1499 var _response = _requester.request(_url, | 1556 var _response = _requester.request(_url, |
| 1500 "DELETE", | 1557 "GET", |
| 1501 body: _body, | 1558 body: _body, |
| 1502 queryParams: _queryParams, | 1559 queryParams: _queryParams, |
| 1503 uploadOptions: _uploadOptions, | 1560 uploadOptions: _uploadOptions, |
| 1504 uploadMedia: _uploadMedia, | 1561 uploadMedia: _uploadMedia, |
| 1505 downloadOptions: _downloadOptions); | 1562 downloadOptions: _downloadOptions); |
| 1506 return _response.then((data) => null); | 1563 return _response.then((data) => new Variant.fromJson(data)); |
| 1507 } | 1564 } |
| 1508 | 1565 |
| 1509 /** | 1566 /** |
| 1510 * Exports read group sets to a BAM file in Google Cloud Storage. | 1567 * Creates variant data by asynchronously importing the provided information. |
| 1511 * | 1568 * The variants for import will be merged with any existing data and each |
| 1512 * Note that currently there may be some differences between exported BAM | 1569 * other according to the behavior of mergeVariants. In particular, this means |
| 1513 * files and the original BAM file at the time of import. In particular, | 1570 * for merged VCF variants that have conflicting INFO fields, some data will |
| 1514 * comments in the input file header will not be preserved, some custom tags | 1571 * be arbitrarily discarded. As a special case, for single-sample VCF files, |
| 1515 * will be converted to strings, and original reference sequence order is not | 1572 * QUAL and FILTER fields will be moved to the call level; these are sometimes |
| 1516 * necessarily preserved. | 1573 * interpreted in a call-specific context. Imported VCF headers are appended |
| 1574 * to the metadata already in a variant set. |
| 1517 * | 1575 * |
| 1518 * [request] - The metadata request object. | 1576 * [request] - The metadata request object. |
| 1519 * | 1577 * |
| 1520 * Request parameters: | 1578 * Request parameters: |
| 1521 * | 1579 * |
| 1522 * Completes with a [ExportReadGroupSetsResponse]. | 1580 * Completes with a [Operation]. |
| 1523 * | 1581 * |
| 1524 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1582 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1525 * error. | 1583 * error. |
| 1526 * | 1584 * |
| 1527 * If the used [http.Client] completes with an error when making a REST call, | 1585 * If the used [http.Client] completes with an error when making a REST call, |
| 1528 * this method will complete with the same error. | 1586 * this method will complete with the same error. |
| 1529 */ | 1587 */ |
| 1530 async.Future<ExportReadGroupSetsResponse> export(ExportReadGroupSetsRequest re
quest) { | 1588 async.Future<Operation> import(ImportVariantsRequest request) { |
| 1531 var _url = null; | 1589 var _url = null; |
| 1532 var _queryParams = new core.Map(); | 1590 var _queryParams = new core.Map(); |
| 1533 var _uploadMedia = null; | 1591 var _uploadMedia = null; |
| 1534 var _uploadOptions = null; | 1592 var _uploadOptions = null; |
| 1535 var _downloadOptions = commons.DownloadOptions.Metadata; | 1593 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1536 var _body = null; | 1594 var _body = null; |
| 1537 | 1595 |
| 1538 if (request != null) { | 1596 if (request != null) { |
| 1539 _body = convert.JSON.encode((request).toJson()); | 1597 _body = convert.JSON.encode((request).toJson()); |
| 1540 } | 1598 } |
| 1541 | 1599 |
| 1542 _url = 'readgroupsets/export'; | 1600 _url = 'v1/variants:import'; |
| 1543 | 1601 |
| 1544 var _response = _requester.request(_url, | 1602 var _response = _requester.request(_url, |
| 1545 "POST", | 1603 "POST", |
| 1546 body: _body, | 1604 body: _body, |
| 1547 queryParams: _queryParams, | 1605 queryParams: _queryParams, |
| 1548 uploadOptions: _uploadOptions, | 1606 uploadOptions: _uploadOptions, |
| 1549 uploadMedia: _uploadMedia, | 1607 uploadMedia: _uploadMedia, |
| 1550 downloadOptions: _downloadOptions); | 1608 downloadOptions: _downloadOptions); |
| 1551 return _response.then((data) => new ExportReadGroupSetsResponse.fromJson(dat
a)); | 1609 return _response.then((data) => new Operation.fromJson(data)); |
| 1552 } | 1610 } |
| 1553 | 1611 |
| 1554 /** | 1612 /** |
| 1555 * Gets a read group set by ID. | 1613 * Updates a variant. This method supports patch semantics. Returns the |
| 1614 * modified variant without its calls. |
| 1615 * |
| 1616 * [request] - The metadata request object. |
| 1556 * | 1617 * |
| 1557 * Request parameters: | 1618 * Request parameters: |
| 1558 * | 1619 * |
| 1559 * [readGroupSetId] - The ID of the read group set. | 1620 * [variantId] - The ID of the variant to be updated. |
| 1560 * | 1621 * |
| 1561 * Completes with a [ReadGroupSet]. | 1622 * [updateMask] - An optional mask specifying which fields to update. At this |
| 1623 * time, mutable fields are [names][google.genomics.v1.Variant.names] and |
| 1624 * [info][google.genomics.v1.Variant.info]. Acceptable values are "names" and |
| 1625 * "info". If unspecified, all mutable fields will be updated. |
| 1626 * |
| 1627 * Completes with a [Variant]. |
| 1562 * | 1628 * |
| 1563 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1629 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1564 * error. | 1630 * error. |
| 1565 * | 1631 * |
| 1566 * If the used [http.Client] completes with an error when making a REST call, | 1632 * If the used [http.Client] completes with an error when making a REST call, |
| 1567 * this method will complete with the same error. | 1633 * this method will complete with the same error. |
| 1568 */ | 1634 */ |
| 1569 async.Future<ReadGroupSet> get(core.String readGroupSetId) { | 1635 async.Future<Variant> patch(Variant request, core.String variantId, {core.Stri
ng updateMask}) { |
| 1570 var _url = null; | 1636 var _url = null; |
| 1571 var _queryParams = new core.Map(); | 1637 var _queryParams = new core.Map(); |
| 1572 var _uploadMedia = null; | 1638 var _uploadMedia = null; |
| 1573 var _uploadOptions = null; | 1639 var _uploadOptions = null; |
| 1574 var _downloadOptions = commons.DownloadOptions.Metadata; | 1640 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1575 var _body = null; | 1641 var _body = null; |
| 1576 | 1642 |
| 1577 if (readGroupSetId == null) { | 1643 if (request != null) { |
| 1578 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1644 _body = convert.JSON.encode((request).toJson()); |
| 1645 } |
| 1646 if (variantId == null) { |
| 1647 throw new core.ArgumentError("Parameter variantId is required."); |
| 1648 } |
| 1649 if (updateMask != null) { |
| 1650 _queryParams["updateMask"] = [updateMask]; |
| 1579 } | 1651 } |
| 1580 | 1652 |
| 1581 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); | 1653 _url = 'v1/variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 1582 | 1654 |
| 1583 var _response = _requester.request(_url, | 1655 var _response = _requester.request(_url, |
| 1584 "GET", | 1656 "PATCH", |
| 1585 body: _body, | 1657 body: _body, |
| 1586 queryParams: _queryParams, | 1658 queryParams: _queryParams, |
| 1587 uploadOptions: _uploadOptions, | 1659 uploadOptions: _uploadOptions, |
| 1588 uploadMedia: _uploadMedia, | 1660 uploadMedia: _uploadMedia, |
| 1589 downloadOptions: _downloadOptions); | 1661 downloadOptions: _downloadOptions); |
| 1590 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1662 return _response.then((data) => new Variant.fromJson(data)); |
| 1591 } | 1663 } |
| 1592 | 1664 |
| 1593 /** | 1665 /** |
| 1594 * Creates read group sets by asynchronously importing the provided | 1666 * Gets a list of variants matching the criteria. Implements |
| 1595 * information. | 1667 * [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0
.5.1/src/main/resources/avro/variantmethods.avdl#L126). |
| 1596 * | |
| 1597 * Note that currently comments in the input file header are not imported and | |
| 1598 * some custom tags will be converted to strings, rather than preserving tag | |
| 1599 * types. The caller must have WRITE permissions to the dataset. | |
| 1600 * | 1668 * |
| 1601 * [request] - The metadata request object. | 1669 * [request] - The metadata request object. |
| 1602 * | 1670 * |
| 1603 * Request parameters: | 1671 * Request parameters: |
| 1604 * | 1672 * |
| 1605 * Completes with a [ImportReadGroupSetsResponse]. | 1673 * Completes with a [SearchVariantsResponse]. |
| 1606 * | 1674 * |
| 1607 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1675 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1608 * error. | 1676 * error. |
| 1609 * | 1677 * |
| 1610 * If the used [http.Client] completes with an error when making a REST call, | 1678 * If the used [http.Client] completes with an error when making a REST call, |
| 1611 * this method will complete with the same error. | 1679 * this method will complete with the same error. |
| 1612 */ | 1680 */ |
| 1613 async.Future<ImportReadGroupSetsResponse> import(ImportReadGroupSetsRequest re
quest) { | 1681 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { |
| 1614 var _url = null; | 1682 var _url = null; |
| 1615 var _queryParams = new core.Map(); | 1683 var _queryParams = new core.Map(); |
| 1616 var _uploadMedia = null; | 1684 var _uploadMedia = null; |
| 1617 var _uploadOptions = null; | 1685 var _uploadOptions = null; |
| 1618 var _downloadOptions = commons.DownloadOptions.Metadata; | 1686 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1619 var _body = null; | 1687 var _body = null; |
| 1620 | 1688 |
| 1621 if (request != null) { | 1689 if (request != null) { |
| 1622 _body = convert.JSON.encode((request).toJson()); | 1690 _body = convert.JSON.encode((request).toJson()); |
| 1623 } | 1691 } |
| 1624 | 1692 |
| 1625 _url = 'readgroupsets/import'; | 1693 _url = 'v1/variants/search'; |
| 1626 | 1694 |
| 1627 var _response = _requester.request(_url, | 1695 var _response = _requester.request(_url, |
| 1628 "POST", | 1696 "POST", |
| 1629 body: _body, | 1697 body: _body, |
| 1630 queryParams: _queryParams, | 1698 queryParams: _queryParams, |
| 1631 uploadOptions: _uploadOptions, | 1699 uploadOptions: _uploadOptions, |
| 1632 uploadMedia: _uploadMedia, | 1700 uploadMedia: _uploadMedia, |
| 1633 downloadOptions: _downloadOptions); | 1701 downloadOptions: _downloadOptions); |
| 1634 return _response.then((data) => new ImportReadGroupSetsResponse.fromJson(dat
a)); | 1702 return _response.then((data) => new SearchVariantsResponse.fromJson(data)); |
| 1635 } | 1703 } |
| 1636 | 1704 |
| 1705 } |
| 1706 |
| 1707 |
| 1708 class VariantsetsResourceApi { |
| 1709 final commons.ApiRequester _requester; |
| 1710 |
| 1711 VariantsetsResourceApi(commons.ApiRequester client) : |
| 1712 _requester = client; |
| 1713 |
| 1637 /** | 1714 /** |
| 1638 * Updates a read group set. This method supports patch semantics. | 1715 * Creates a new variant set. |
| 1639 * | 1716 * |
| 1640 * [request] - The metadata request object. | 1717 * [request] - The metadata request object. |
| 1641 * | 1718 * |
| 1642 * Request parameters: | 1719 * Request parameters: |
| 1643 * | 1720 * |
| 1644 * [readGroupSetId] - The ID of the read group set to be updated. The caller | 1721 * Completes with a [VariantSet]. |
| 1645 * must have WRITE permissions to the dataset associated with this read group | |
| 1646 * set. | |
| 1647 * | |
| 1648 * Completes with a [ReadGroupSet]. | |
| 1649 * | 1722 * |
| 1650 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1651 * error. | 1724 * error. |
| 1652 * | 1725 * |
| 1653 * If the used [http.Client] completes with an error when making a REST call, | 1726 * If the used [http.Client] completes with an error when making a REST call, |
| 1654 * this method will complete with the same error. | 1727 * this method will complete with the same error. |
| 1655 */ | 1728 */ |
| 1656 async.Future<ReadGroupSet> patch(ReadGroupSet request, core.String readGroupSe
tId) { | 1729 async.Future<VariantSet> create(VariantSet request) { |
| 1657 var _url = null; | 1730 var _url = null; |
| 1658 var _queryParams = new core.Map(); | 1731 var _queryParams = new core.Map(); |
| 1659 var _uploadMedia = null; | 1732 var _uploadMedia = null; |
| 1660 var _uploadOptions = null; | 1733 var _uploadOptions = null; |
| 1661 var _downloadOptions = commons.DownloadOptions.Metadata; | 1734 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1662 var _body = null; | 1735 var _body = null; |
| 1663 | 1736 |
| 1664 if (request != null) { | 1737 if (request != null) { |
| 1665 _body = convert.JSON.encode((request).toJson()); | 1738 _body = convert.JSON.encode((request).toJson()); |
| 1666 } | 1739 } |
| 1667 if (readGroupSetId == null) { | |
| 1668 throw new core.ArgumentError("Parameter readGroupSetId is required."); | |
| 1669 } | |
| 1670 | 1740 |
| 1671 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); | 1741 _url = 'v1/variantsets'; |
| 1672 | 1742 |
| 1673 var _response = _requester.request(_url, | 1743 var _response = _requester.request(_url, |
| 1674 "PATCH", | 1744 "POST", |
| 1675 body: _body, | 1745 body: _body, |
| 1676 queryParams: _queryParams, | 1746 queryParams: _queryParams, |
| 1677 uploadOptions: _uploadOptions, | 1747 uploadOptions: _uploadOptions, |
| 1678 uploadMedia: _uploadMedia, | 1748 uploadMedia: _uploadMedia, |
| 1679 downloadOptions: _downloadOptions); | 1749 downloadOptions: _downloadOptions); |
| 1680 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1750 return _response.then((data) => new VariantSet.fromJson(data)); |
| 1681 } | 1751 } |
| 1682 | 1752 |
| 1683 /** | 1753 /** |
| 1684 * Searches for read group sets matching the criteria. | 1754 * Deletes the contents of a variant set. The variant set object is not |
| 1685 * | 1755 * deleted. |
| 1686 * Implements GlobalAllianceApi.searchReadGroupSets. | |
| 1687 * | |
| 1688 * [request] - The metadata request object. | |
| 1689 * | 1756 * |
| 1690 * Request parameters: | 1757 * Request parameters: |
| 1691 * | 1758 * |
| 1692 * Completes with a [SearchReadGroupSetsResponse]. | 1759 * [variantSetId] - The ID of the variant set to be deleted. |
| 1760 * |
| 1761 * Completes with a [Empty]. |
| 1693 * | 1762 * |
| 1694 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1763 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1695 * error. | 1764 * error. |
| 1696 * | 1765 * |
| 1697 * If the used [http.Client] completes with an error when making a REST call, | 1766 * If the used [http.Client] completes with an error when making a REST call, |
| 1698 * this method will complete with the same error. | 1767 * this method will complete with the same error. |
| 1699 */ | 1768 */ |
| 1700 async.Future<SearchReadGroupSetsResponse> search(SearchReadGroupSetsRequest re
quest) { | 1769 async.Future<Empty> delete(core.String variantSetId) { |
| 1701 var _url = null; | 1770 var _url = null; |
| 1702 var _queryParams = new core.Map(); | 1771 var _queryParams = new core.Map(); |
| 1703 var _uploadMedia = null; | 1772 var _uploadMedia = null; |
| 1704 var _uploadOptions = null; | 1773 var _uploadOptions = null; |
| 1705 var _downloadOptions = commons.DownloadOptions.Metadata; | 1774 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1706 var _body = null; | 1775 var _body = null; |
| 1707 | 1776 |
| 1708 if (request != null) { | 1777 if (variantSetId == null) { |
| 1709 _body = convert.JSON.encode((request).toJson()); | 1778 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1710 } | 1779 } |
| 1711 | 1780 |
| 1712 _url = 'readgroupsets/search'; | 1781 _url = 'v1/variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 1713 | 1782 |
| 1714 var _response = _requester.request(_url, | 1783 var _response = _requester.request(_url, |
| 1715 "POST", | 1784 "DELETE", |
| 1716 body: _body, | 1785 body: _body, |
| 1717 queryParams: _queryParams, | 1786 queryParams: _queryParams, |
| 1718 uploadOptions: _uploadOptions, | 1787 uploadOptions: _uploadOptions, |
| 1719 uploadMedia: _uploadMedia, | 1788 uploadMedia: _uploadMedia, |
| 1720 downloadOptions: _downloadOptions); | 1789 downloadOptions: _downloadOptions); |
| 1721 return _response.then((data) => new SearchReadGroupSetsResponse.fromJson(dat
a)); | 1790 return _response.then((data) => new Empty.fromJson(data)); |
| 1722 } | 1791 } |
| 1723 | 1792 |
| 1724 /** | 1793 /** |
| 1725 * Updates a read group set. | 1794 * Exports variant set data to an external destination. |
| 1726 * | 1795 * |
| 1727 * [request] - The metadata request object. | 1796 * [request] - The metadata request object. |
| 1728 * | 1797 * |
| 1729 * Request parameters: | 1798 * Request parameters: |
| 1730 * | 1799 * |
| 1731 * [readGroupSetId] - The ID of the read group set to be updated. The caller | 1800 * [variantSetId] - Required. The ID of the variant set that contains variant |
| 1732 * must have WRITE permissions to the dataset associated with this read group | 1801 * data which should be exported. The caller must have READ access to this |
| 1733 * set. | 1802 * variant set. |
| 1734 * | 1803 * |
| 1735 * Completes with a [ReadGroupSet]. | 1804 * Completes with a [Operation]. |
| 1736 * | 1805 * |
| 1737 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1806 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1738 * error. | 1807 * error. |
| 1739 * | 1808 * |
| 1740 * If the used [http.Client] completes with an error when making a REST call, | 1809 * If the used [http.Client] completes with an error when making a REST call, |
| 1741 * this method will complete with the same error. | 1810 * this method will complete with the same error. |
| 1742 */ | 1811 */ |
| 1743 async.Future<ReadGroupSet> update(ReadGroupSet request, core.String readGroupS
etId) { | 1812 async.Future<Operation> export(ExportVariantSetRequest request, core.String va
riantSetId) { |
| 1744 var _url = null; | 1813 var _url = null; |
| 1745 var _queryParams = new core.Map(); | 1814 var _queryParams = new core.Map(); |
| 1746 var _uploadMedia = null; | 1815 var _uploadMedia = null; |
| 1747 var _uploadOptions = null; | 1816 var _uploadOptions = null; |
| 1748 var _downloadOptions = commons.DownloadOptions.Metadata; | 1817 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1749 var _body = null; | 1818 var _body = null; |
| 1750 | 1819 |
| 1751 if (request != null) { | 1820 if (request != null) { |
| 1752 _body = convert.JSON.encode((request).toJson()); | 1821 _body = convert.JSON.encode((request).toJson()); |
| 1753 } | 1822 } |
| 1754 if (readGroupSetId == null) { | 1823 if (variantSetId == null) { |
| 1755 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1824 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1756 } | 1825 } |
| 1757 | 1826 |
| 1758 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); | 1827 _url = 'v1/variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') +
':export'; |
| 1759 | 1828 |
| 1760 var _response = _requester.request(_url, | 1829 var _response = _requester.request(_url, |
| 1761 "PUT", | 1830 "POST", |
| 1762 body: _body, | 1831 body: _body, |
| 1763 queryParams: _queryParams, | 1832 queryParams: _queryParams, |
| 1764 uploadOptions: _uploadOptions, | 1833 uploadOptions: _uploadOptions, |
| 1765 uploadMedia: _uploadMedia, | 1834 uploadMedia: _uploadMedia, |
| 1766 downloadOptions: _downloadOptions); | 1835 downloadOptions: _downloadOptions); |
| 1767 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1836 return _response.then((data) => new Operation.fromJson(data)); |
| 1768 } | 1837 } |
| 1769 | 1838 |
| 1770 } | |
| 1771 | |
| 1772 | |
| 1773 class ReadgroupsetsCoveragebucketsResourceApi { | |
| 1774 final commons.ApiRequester _requester; | |
| 1775 | |
| 1776 ReadgroupsetsCoveragebucketsResourceApi(commons.ApiRequester client) : | |
| 1777 _requester = client; | |
| 1778 | |
| 1779 /** | 1839 /** |
| 1780 * Lists fixed width coverage buckets for a read group set, each of which | 1840 * Gets a variant set by ID. |
| 1781 * correspond to a range of a reference sequence. Each bucket summarizes | |
| 1782 * coverage information across its corresponding genomic range. | |
| 1783 * | |
| 1784 * Coverage is defined as the number of reads which are aligned to a given | |
| 1785 * base in the reference sequence. Coverage buckets are available at several | |
| 1786 * precomputed bucket widths, enabling retrieval of various coverage 'zoom | |
| 1787 * levels'. The caller must have READ permissions for the target read group | |
| 1788 * set. | |
| 1789 * | 1841 * |
| 1790 * Request parameters: | 1842 * Request parameters: |
| 1791 * | 1843 * |
| 1792 * [readGroupSetId] - Required. The ID of the read group set over which | 1844 * [variantSetId] - Required. The ID of the variant set. |
| 1793 * coverage is requested. | |
| 1794 * | 1845 * |
| 1795 * [pageSize] - The maximum number of results to return in a single page. If | 1846 * Completes with a [VariantSet]. |
| 1796 * unspecified, defaults to 1024. The maximum value is 2048. | |
| 1797 * | |
| 1798 * [pageToken] - The continuation token, which is used to page through large | |
| 1799 * result sets. To get the next page of results, set this parameter to the | |
| 1800 * value of nextPageToken from the previous response. | |
| 1801 * | |
| 1802 * [range_end] - The end position of the range on the reference, 0-based | |
| 1803 * exclusive. If specified, referenceName must also be specified. | |
| 1804 * | |
| 1805 * [range_referenceName] - The reference sequence name, for example chr1, 1, | |
| 1806 * or chrX. | |
| 1807 * | |
| 1808 * [range_start] - The start position of the range on the reference, 0-based | |
| 1809 * inclusive. If specified, referenceName must also be specified. | |
| 1810 * | |
| 1811 * [targetBucketWidth] - The desired width of each reported coverage bucket in | |
| 1812 * base pairs. This will be rounded down to the nearest precomputed bucket | |
| 1813 * width; the value of which is returned as bucketWidth in the response. | |
| 1814 * Defaults to infinity (each bucket spans an entire reference sequence) or | |
| 1815 * the length of the target range, if specified. The smallest precomputed | |
| 1816 * bucketWidth is currently 2048 base pairs; this is subject to change. | |
| 1817 * | |
| 1818 * Completes with a [ListCoverageBucketsResponse]. | |
| 1819 * | 1847 * |
| 1820 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1848 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1821 * error. | 1849 * error. |
| 1822 * | 1850 * |
| 1823 * If the used [http.Client] completes with an error when making a REST call, | 1851 * If the used [http.Client] completes with an error when making a REST call, |
| 1824 * this method will complete with the same error. | 1852 * this method will complete with the same error. |
| 1825 */ | 1853 */ |
| 1826 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}) { | 1854 async.Future<VariantSet> get(core.String variantSetId) { |
| 1827 var _url = null; | 1855 var _url = null; |
| 1828 var _queryParams = new core.Map(); | 1856 var _queryParams = new core.Map(); |
| 1829 var _uploadMedia = null; | 1857 var _uploadMedia = null; |
| 1830 var _uploadOptions = null; | 1858 var _uploadOptions = null; |
| 1831 var _downloadOptions = commons.DownloadOptions.Metadata; | 1859 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1832 var _body = null; | 1860 var _body = null; |
| 1833 | 1861 |
| 1834 if (readGroupSetId == null) { | 1862 if (variantSetId == null) { |
| 1835 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1863 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1836 } | |
| 1837 if (pageSize != null) { | |
| 1838 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 1839 } | |
| 1840 if (pageToken != null) { | |
| 1841 _queryParams["pageToken"] = [pageToken]; | |
| 1842 } | |
| 1843 if (range_end != null) { | |
| 1844 _queryParams["range.end"] = [range_end]; | |
| 1845 } | |
| 1846 if (range_referenceName != null) { | |
| 1847 _queryParams["range.referenceName"] = [range_referenceName]; | |
| 1848 } | |
| 1849 if (range_start != null) { | |
| 1850 _queryParams["range.start"] = [range_start]; | |
| 1851 } | |
| 1852 if (targetBucketWidth != null) { | |
| 1853 _queryParams["targetBucketWidth"] = [targetBucketWidth]; | |
| 1854 } | 1864 } |
| 1855 | 1865 |
| 1856 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId') +
'/coveragebuckets'; | 1866 _url = 'v1/variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 1857 | 1867 |
| 1858 var _response = _requester.request(_url, | 1868 var _response = _requester.request(_url, |
| 1859 "GET", | 1869 "GET", |
| 1860 body: _body, | 1870 body: _body, |
| 1861 queryParams: _queryParams, | 1871 queryParams: _queryParams, |
| 1862 uploadOptions: _uploadOptions, | 1872 uploadOptions: _uploadOptions, |
| 1863 uploadMedia: _uploadMedia, | 1873 uploadMedia: _uploadMedia, |
| 1864 downloadOptions: _downloadOptions); | 1874 downloadOptions: _downloadOptions); |
| 1865 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); | 1875 return _response.then((data) => new VariantSet.fromJson(data)); |
| 1866 } | 1876 } |
| 1867 | 1877 |
| 1868 } | |
| 1869 | |
| 1870 | |
| 1871 class ReadsResourceApi { | |
| 1872 final commons.ApiRequester _requester; | |
| 1873 | |
| 1874 ReadsResourceApi(commons.ApiRequester client) : | |
| 1875 _requester = client; | |
| 1876 | |
| 1877 /** | 1878 /** |
| 1878 * Gets a list of reads for one or more read group sets. Reads search operates | 1879 * Updates a variant set. This method supports patch semantics. |
| 1879 * over a genomic coordinate space of reference sequence & position defined | |
| 1880 * over the reference sequences to which the requested read group sets are | |
| 1881 * aligned. | |
| 1882 * | |
| 1883 * If a target positional range is specified, search returns all reads whose | |
| 1884 * alignment to the reference genome overlap the range. A query which | |
| 1885 * specifies only read group set IDs yields all reads in those read group | |
| 1886 * sets, including unmapped reads. | |
| 1887 * | |
| 1888 * All reads returned (including reads on subsequent pages) are ordered by | |
| 1889 * genomic coordinate (reference sequence & position). Reads with equivalent | |
| 1890 * genomic coordinates are returned in a deterministic order. | |
| 1891 * | |
| 1892 * Implements GlobalAllianceApi.searchReads. | |
| 1893 * | 1880 * |
| 1894 * [request] - The metadata request object. | 1881 * [request] - The metadata request object. |
| 1895 * | 1882 * |
| 1896 * Request parameters: | 1883 * Request parameters: |
| 1897 * | 1884 * |
| 1898 * Completes with a [SearchReadsResponse]. | 1885 * [variantSetId] - The ID of the variant to be updated (must already exist). |
| 1886 * |
| 1887 * [updateMask] - An optional mask specifying which fields to update. At this |
| 1888 * time, the only mutable field is |
| 1889 * [metadata][google.genomics.v1.VariantSet.metadata]. The only acceptable |
| 1890 * value is "metadata". If unspecified, all mutable fields will be updated. |
| 1891 * |
| 1892 * Completes with a [VariantSet]. |
| 1899 * | 1893 * |
| 1900 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1894 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1901 * error. | 1895 * error. |
| 1902 * | 1896 * |
| 1903 * If the used [http.Client] completes with an error when making a REST call, | 1897 * If the used [http.Client] completes with an error when making a REST call, |
| 1904 * this method will complete with the same error. | 1898 * this method will complete with the same error. |
| 1905 */ | 1899 */ |
| 1906 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { | 1900 async.Future<VariantSet> patch(VariantSet request, core.String variantSetId, {
core.String updateMask}) { |
| 1907 var _url = null; | 1901 var _url = null; |
| 1908 var _queryParams = new core.Map(); | 1902 var _queryParams = new core.Map(); |
| 1909 var _uploadMedia = null; | 1903 var _uploadMedia = null; |
| 1910 var _uploadOptions = null; | 1904 var _uploadOptions = null; |
| 1911 var _downloadOptions = commons.DownloadOptions.Metadata; | 1905 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1912 var _body = null; | 1906 var _body = null; |
| 1913 | 1907 |
| 1914 if (request != null) { | 1908 if (request != null) { |
| 1915 _body = convert.JSON.encode((request).toJson()); | 1909 _body = convert.JSON.encode((request).toJson()); |
| 1916 } | 1910 } |
| 1911 if (variantSetId == null) { |
| 1912 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1913 } |
| 1914 if (updateMask != null) { |
| 1915 _queryParams["updateMask"] = [updateMask]; |
| 1916 } |
| 1917 | 1917 |
| 1918 _url = 'reads/search'; | 1918 _url = 'v1/variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 1919 | 1919 |
| 1920 var _response = _requester.request(_url, | 1920 var _response = _requester.request(_url, |
| 1921 "POST", | 1921 "PATCH", |
| 1922 body: _body, | 1922 body: _body, |
| 1923 queryParams: _queryParams, | 1923 queryParams: _queryParams, |
| 1924 uploadOptions: _uploadOptions, | 1924 uploadOptions: _uploadOptions, |
| 1925 uploadMedia: _uploadMedia, | 1925 uploadMedia: _uploadMedia, |
| 1926 downloadOptions: _downloadOptions); | 1926 downloadOptions: _downloadOptions); |
| 1927 return _response.then((data) => new SearchReadsResponse.fromJson(data)); | 1927 return _response.then((data) => new VariantSet.fromJson(data)); |
| 1928 } | |
| 1929 | |
| 1930 } | |
| 1931 | |
| 1932 | |
| 1933 class ReferencesResourceApi { | |
| 1934 final commons.ApiRequester _requester; | |
| 1935 | |
| 1936 ReferencesBasesResourceApi get bases => new ReferencesBasesResourceApi(_reques
ter); | |
| 1937 | |
| 1938 ReferencesResourceApi(commons.ApiRequester client) : | |
| 1939 _requester = client; | |
| 1940 | |
| 1941 /** | |
| 1942 * Gets a reference. | |
| 1943 * | |
| 1944 * Implements GlobalAllianceApi.getReference. | |
| 1945 * | |
| 1946 * Request parameters: | |
| 1947 * | |
| 1948 * [referenceId] - The ID of the reference. | |
| 1949 * | |
| 1950 * Completes with a [Reference]. | |
| 1951 * | |
| 1952 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 1953 * error. | |
| 1954 * | |
| 1955 * If the used [http.Client] completes with an error when making a REST call, | |
| 1956 * this method will complete with the same error. | |
| 1957 */ | |
| 1958 async.Future<Reference> get(core.String referenceId) { | |
| 1959 var _url = null; | |
| 1960 var _queryParams = new core.Map(); | |
| 1961 var _uploadMedia = null; | |
| 1962 var _uploadOptions = null; | |
| 1963 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 1964 var _body = null; | |
| 1965 | |
| 1966 if (referenceId == null) { | |
| 1967 throw new core.ArgumentError("Parameter referenceId is required."); | |
| 1968 } | |
| 1969 | |
| 1970 _url = 'references/' + commons.Escaper.ecapeVariable('$referenceId'); | |
| 1971 | |
| 1972 var _response = _requester.request(_url, | |
| 1973 "GET", | |
| 1974 body: _body, | |
| 1975 queryParams: _queryParams, | |
| 1976 uploadOptions: _uploadOptions, | |
| 1977 uploadMedia: _uploadMedia, | |
| 1978 downloadOptions: _downloadOptions); | |
| 1979 return _response.then((data) => new Reference.fromJson(data)); | |
| 1980 } | 1928 } |
| 1981 | 1929 |
| 1982 /** | 1930 /** |
| 1983 * Searches for references which match the given criteria. | 1931 * Returns a list of all variant sets matching search criteria. Implements |
| 1984 * | 1932 * [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob
/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49). |
| 1985 * Implements GlobalAllianceApi.searchReferences. | |
| 1986 * | 1933 * |
| 1987 * [request] - The metadata request object. | 1934 * [request] - The metadata request object. |
| 1988 * | 1935 * |
| 1989 * Request parameters: | 1936 * Request parameters: |
| 1990 * | 1937 * |
| 1991 * Completes with a [SearchReferencesResponse]. | 1938 * Completes with a [SearchVariantSetsResponse]. |
| 1992 * | 1939 * |
| 1993 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1940 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1994 * error. | 1941 * error. |
| 1995 * | 1942 * |
| 1996 * If the used [http.Client] completes with an error when making a REST call, | 1943 * If the used [http.Client] completes with an error when making a REST call, |
| 1997 * this method will complete with the same error. | 1944 * this method will complete with the same error. |
| 1998 */ | 1945 */ |
| 1999 async.Future<SearchReferencesResponse> search(SearchReferencesRequest request)
{ | 1946 async.Future<SearchVariantSetsResponse> search(SearchVariantSetsRequest reques
t) { |
| 2000 var _url = null; | 1947 var _url = null; |
| 2001 var _queryParams = new core.Map(); | 1948 var _queryParams = new core.Map(); |
| 2002 var _uploadMedia = null; | 1949 var _uploadMedia = null; |
| 2003 var _uploadOptions = null; | 1950 var _uploadOptions = null; |
| 2004 var _downloadOptions = commons.DownloadOptions.Metadata; | 1951 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2005 var _body = null; | 1952 var _body = null; |
| 2006 | 1953 |
| 2007 if (request != null) { | 1954 if (request != null) { |
| 2008 _body = convert.JSON.encode((request).toJson()); | 1955 _body = convert.JSON.encode((request).toJson()); |
| 2009 } | 1956 } |
| 2010 | 1957 |
| 2011 _url = 'references/search'; | 1958 _url = 'v1/variantsets/search'; |
| 2012 | 1959 |
| 2013 var _response = _requester.request(_url, | 1960 var _response = _requester.request(_url, |
| 2014 "POST", | 1961 "POST", |
| 2015 body: _body, | 1962 body: _body, |
| 2016 queryParams: _queryParams, | 1963 queryParams: _queryParams, |
| 2017 uploadOptions: _uploadOptions, | 1964 uploadOptions: _uploadOptions, |
| 2018 uploadMedia: _uploadMedia, | 1965 uploadMedia: _uploadMedia, |
| 2019 downloadOptions: _downloadOptions); | 1966 downloadOptions: _downloadOptions); |
| 2020 return _response.then((data) => new SearchReferencesResponse.fromJson(data))
; | |
| 2021 } | |
| 2022 | |
| 2023 } | |
| 2024 | |
| 2025 | |
| 2026 class ReferencesBasesResourceApi { | |
| 2027 final commons.ApiRequester _requester; | |
| 2028 | |
| 2029 ReferencesBasesResourceApi(commons.ApiRequester client) : | |
| 2030 _requester = client; | |
| 2031 | |
| 2032 /** | |
| 2033 * Lists the bases in a reference, optionally restricted to a range. | |
| 2034 * | |
| 2035 * Implements GlobalAllianceApi.getReferenceBases. | |
| 2036 * | |
| 2037 * Request parameters: | |
| 2038 * | |
| 2039 * [referenceId] - The ID of the reference. | |
| 2040 * | |
| 2041 * [end] - The end position (0-based, exclusive) of this query. Defaults to | |
| 2042 * the length of this reference. | |
| 2043 * | |
| 2044 * [pageSize] - Specifies the maximum number of bases to return in a single | |
| 2045 * page. | |
| 2046 * | |
| 2047 * [pageToken] - The continuation token, which is used to page through large | |
| 2048 * result sets. To get the next page of results, set this parameter to the | |
| 2049 * value of nextPageToken from the previous response. | |
| 2050 * | |
| 2051 * [start] - The start position (0-based) of this query. Defaults to 0. | |
| 2052 * | |
| 2053 * Completes with a [ListBasesResponse]. | |
| 2054 * | |
| 2055 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2056 * error. | |
| 2057 * | |
| 2058 * If the used [http.Client] completes with an error when making a REST call, | |
| 2059 * this method will complete with the same error. | |
| 2060 */ | |
| 2061 async.Future<ListBasesResponse> list(core.String referenceId, {core.String end
, core.int pageSize, core.String pageToken, core.String start}) { | |
| 2062 var _url = null; | |
| 2063 var _queryParams = new core.Map(); | |
| 2064 var _uploadMedia = null; | |
| 2065 var _uploadOptions = null; | |
| 2066 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2067 var _body = null; | |
| 2068 | |
| 2069 if (referenceId == null) { | |
| 2070 throw new core.ArgumentError("Parameter referenceId is required."); | |
| 2071 } | |
| 2072 if (end != null) { | |
| 2073 _queryParams["end"] = [end]; | |
| 2074 } | |
| 2075 if (pageSize != null) { | |
| 2076 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 2077 } | |
| 2078 if (pageToken != null) { | |
| 2079 _queryParams["pageToken"] = [pageToken]; | |
| 2080 } | |
| 2081 if (start != null) { | |
| 2082 _queryParams["start"] = [start]; | |
| 2083 } | |
| 2084 | |
| 2085 _url = 'references/' + commons.Escaper.ecapeVariable('$referenceId') + '/bas
es'; | |
| 2086 | |
| 2087 var _response = _requester.request(_url, | |
| 2088 "GET", | |
| 2089 body: _body, | |
| 2090 queryParams: _queryParams, | |
| 2091 uploadOptions: _uploadOptions, | |
| 2092 uploadMedia: _uploadMedia, | |
| 2093 downloadOptions: _downloadOptions); | |
| 2094 return _response.then((data) => new ListBasesResponse.fromJson(data)); | |
| 2095 } | |
| 2096 | |
| 2097 } | |
| 2098 | |
| 2099 | |
| 2100 class ReferencesetsResourceApi { | |
| 2101 final commons.ApiRequester _requester; | |
| 2102 | |
| 2103 ReferencesetsResourceApi(commons.ApiRequester client) : | |
| 2104 _requester = client; | |
| 2105 | |
| 2106 /** | |
| 2107 * Gets a reference set. | |
| 2108 * | |
| 2109 * Implements GlobalAllianceApi.getReferenceSet. | |
| 2110 * | |
| 2111 * Request parameters: | |
| 2112 * | |
| 2113 * [referenceSetId] - The ID of the reference set. | |
| 2114 * | |
| 2115 * Completes with a [ReferenceSet]. | |
| 2116 * | |
| 2117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2118 * error. | |
| 2119 * | |
| 2120 * If the used [http.Client] completes with an error when making a REST call, | |
| 2121 * this method will complete with the same error. | |
| 2122 */ | |
| 2123 async.Future<ReferenceSet> get(core.String referenceSetId) { | |
| 2124 var _url = null; | |
| 2125 var _queryParams = new core.Map(); | |
| 2126 var _uploadMedia = null; | |
| 2127 var _uploadOptions = null; | |
| 2128 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2129 var _body = null; | |
| 2130 | |
| 2131 if (referenceSetId == null) { | |
| 2132 throw new core.ArgumentError("Parameter referenceSetId is required."); | |
| 2133 } | |
| 2134 | |
| 2135 _url = 'referencesets/' + commons.Escaper.ecapeVariable('$referenceSetId'); | |
| 2136 | |
| 2137 var _response = _requester.request(_url, | |
| 2138 "GET", | |
| 2139 body: _body, | |
| 2140 queryParams: _queryParams, | |
| 2141 uploadOptions: _uploadOptions, | |
| 2142 uploadMedia: _uploadMedia, | |
| 2143 downloadOptions: _downloadOptions); | |
| 2144 return _response.then((data) => new ReferenceSet.fromJson(data)); | |
| 2145 } | |
| 2146 | |
| 2147 /** | |
| 2148 * Searches for reference sets which match the given criteria. | |
| 2149 * | |
| 2150 * Implements GlobalAllianceApi.searchReferenceSets. | |
| 2151 * | |
| 2152 * [request] - The metadata request object. | |
| 2153 * | |
| 2154 * Request parameters: | |
| 2155 * | |
| 2156 * Completes with a [SearchReferenceSetsResponse]. | |
| 2157 * | |
| 2158 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2159 * error. | |
| 2160 * | |
| 2161 * If the used [http.Client] completes with an error when making a REST call, | |
| 2162 * this method will complete with the same error. | |
| 2163 */ | |
| 2164 async.Future<SearchReferenceSetsResponse> search(SearchReferenceSetsRequest re
quest) { | |
| 2165 var _url = null; | |
| 2166 var _queryParams = new core.Map(); | |
| 2167 var _uploadMedia = null; | |
| 2168 var _uploadOptions = null; | |
| 2169 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2170 var _body = null; | |
| 2171 | |
| 2172 if (request != null) { | |
| 2173 _body = convert.JSON.encode((request).toJson()); | |
| 2174 } | |
| 2175 | |
| 2176 _url = 'referencesets/search'; | |
| 2177 | |
| 2178 var _response = _requester.request(_url, | |
| 2179 "POST", | |
| 2180 body: _body, | |
| 2181 queryParams: _queryParams, | |
| 2182 uploadOptions: _uploadOptions, | |
| 2183 uploadMedia: _uploadMedia, | |
| 2184 downloadOptions: _downloadOptions); | |
| 2185 return _response.then((data) => new SearchReferenceSetsResponse.fromJson(dat
a)); | |
| 2186 } | |
| 2187 | |
| 2188 } | |
| 2189 | |
| 2190 | |
| 2191 class VariantsResourceApi { | |
| 2192 final commons.ApiRequester _requester; | |
| 2193 | |
| 2194 VariantsResourceApi(commons.ApiRequester client) : | |
| 2195 _requester = client; | |
| 2196 | |
| 2197 /** | |
| 2198 * Creates a new variant. | |
| 2199 * | |
| 2200 * [request] - The metadata request object. | |
| 2201 * | |
| 2202 * Request parameters: | |
| 2203 * | |
| 2204 * Completes with a [Variant]. | |
| 2205 * | |
| 2206 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2207 * error. | |
| 2208 * | |
| 2209 * If the used [http.Client] completes with an error when making a REST call, | |
| 2210 * this method will complete with the same error. | |
| 2211 */ | |
| 2212 async.Future<Variant> create(Variant request) { | |
| 2213 var _url = null; | |
| 2214 var _queryParams = new core.Map(); | |
| 2215 var _uploadMedia = null; | |
| 2216 var _uploadOptions = null; | |
| 2217 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2218 var _body = null; | |
| 2219 | |
| 2220 if (request != null) { | |
| 2221 _body = convert.JSON.encode((request).toJson()); | |
| 2222 } | |
| 2223 | |
| 2224 _url = 'variants'; | |
| 2225 | |
| 2226 var _response = _requester.request(_url, | |
| 2227 "POST", | |
| 2228 body: _body, | |
| 2229 queryParams: _queryParams, | |
| 2230 uploadOptions: _uploadOptions, | |
| 2231 uploadMedia: _uploadMedia, | |
| 2232 downloadOptions: _downloadOptions); | |
| 2233 return _response.then((data) => new Variant.fromJson(data)); | |
| 2234 } | |
| 2235 | |
| 2236 /** | |
| 2237 * Deletes a variant. | |
| 2238 * | |
| 2239 * Request parameters: | |
| 2240 * | |
| 2241 * [variantId] - The ID of the variant to be deleted. | |
| 2242 * | |
| 2243 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2244 * error. | |
| 2245 * | |
| 2246 * If the used [http.Client] completes with an error when making a REST call, | |
| 2247 * this method will complete with the same error. | |
| 2248 */ | |
| 2249 async.Future delete(core.String variantId) { | |
| 2250 var _url = null; | |
| 2251 var _queryParams = new core.Map(); | |
| 2252 var _uploadMedia = null; | |
| 2253 var _uploadOptions = null; | |
| 2254 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2255 var _body = null; | |
| 2256 | |
| 2257 if (variantId == null) { | |
| 2258 throw new core.ArgumentError("Parameter variantId is required."); | |
| 2259 } | |
| 2260 | |
| 2261 _downloadOptions = null; | |
| 2262 | |
| 2263 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); | |
| 2264 | |
| 2265 var _response = _requester.request(_url, | |
| 2266 "DELETE", | |
| 2267 body: _body, | |
| 2268 queryParams: _queryParams, | |
| 2269 uploadOptions: _uploadOptions, | |
| 2270 uploadMedia: _uploadMedia, | |
| 2271 downloadOptions: _downloadOptions); | |
| 2272 return _response.then((data) => null); | |
| 2273 } | |
| 2274 | |
| 2275 /** | |
| 2276 * Gets a variant by ID. | |
| 2277 * | |
| 2278 * Request parameters: | |
| 2279 * | |
| 2280 * [variantId] - The ID of the variant. | |
| 2281 * | |
| 2282 * Completes with a [Variant]. | |
| 2283 * | |
| 2284 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2285 * error. | |
| 2286 * | |
| 2287 * If the used [http.Client] completes with an error when making a REST call, | |
| 2288 * this method will complete with the same error. | |
| 2289 */ | |
| 2290 async.Future<Variant> get(core.String variantId) { | |
| 2291 var _url = null; | |
| 2292 var _queryParams = new core.Map(); | |
| 2293 var _uploadMedia = null; | |
| 2294 var _uploadOptions = null; | |
| 2295 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2296 var _body = null; | |
| 2297 | |
| 2298 if (variantId == null) { | |
| 2299 throw new core.ArgumentError("Parameter variantId is required."); | |
| 2300 } | |
| 2301 | |
| 2302 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); | |
| 2303 | |
| 2304 var _response = _requester.request(_url, | |
| 2305 "GET", | |
| 2306 body: _body, | |
| 2307 queryParams: _queryParams, | |
| 2308 uploadOptions: _uploadOptions, | |
| 2309 uploadMedia: _uploadMedia, | |
| 2310 downloadOptions: _downloadOptions); | |
| 2311 return _response.then((data) => new Variant.fromJson(data)); | |
| 2312 } | |
| 2313 | |
| 2314 /** | |
| 2315 * Gets a list of variants matching the criteria. | |
| 2316 * | |
| 2317 * Implements GlobalAllianceApi.searchVariants. | |
| 2318 * | |
| 2319 * [request] - The metadata request object. | |
| 2320 * | |
| 2321 * Request parameters: | |
| 2322 * | |
| 2323 * Completes with a [SearchVariantsResponse]. | |
| 2324 * | |
| 2325 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2326 * error. | |
| 2327 * | |
| 2328 * If the used [http.Client] completes with an error when making a REST call, | |
| 2329 * this method will complete with the same error. | |
| 2330 */ | |
| 2331 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { | |
| 2332 var _url = null; | |
| 2333 var _queryParams = new core.Map(); | |
| 2334 var _uploadMedia = null; | |
| 2335 var _uploadOptions = null; | |
| 2336 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2337 var _body = null; | |
| 2338 | |
| 2339 if (request != null) { | |
| 2340 _body = convert.JSON.encode((request).toJson()); | |
| 2341 } | |
| 2342 | |
| 2343 _url = 'variants/search'; | |
| 2344 | |
| 2345 var _response = _requester.request(_url, | |
| 2346 "POST", | |
| 2347 body: _body, | |
| 2348 queryParams: _queryParams, | |
| 2349 uploadOptions: _uploadOptions, | |
| 2350 uploadMedia: _uploadMedia, | |
| 2351 downloadOptions: _downloadOptions); | |
| 2352 return _response.then((data) => new SearchVariantsResponse.fromJson(data)); | |
| 2353 } | |
| 2354 | |
| 2355 /** | |
| 2356 * Updates a variant's names and info fields. All other modifications are | |
| 2357 * silently ignored. Returns the modified variant without its calls. | |
| 2358 * | |
| 2359 * [request] - The metadata request object. | |
| 2360 * | |
| 2361 * Request parameters: | |
| 2362 * | |
| 2363 * [variantId] - The ID of the variant to be updated. | |
| 2364 * | |
| 2365 * Completes with a [Variant]. | |
| 2366 * | |
| 2367 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2368 * error. | |
| 2369 * | |
| 2370 * If the used [http.Client] completes with an error when making a REST call, | |
| 2371 * this method will complete with the same error. | |
| 2372 */ | |
| 2373 async.Future<Variant> update(Variant request, core.String variantId) { | |
| 2374 var _url = null; | |
| 2375 var _queryParams = new core.Map(); | |
| 2376 var _uploadMedia = null; | |
| 2377 var _uploadOptions = null; | |
| 2378 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2379 var _body = null; | |
| 2380 | |
| 2381 if (request != null) { | |
| 2382 _body = convert.JSON.encode((request).toJson()); | |
| 2383 } | |
| 2384 if (variantId == null) { | |
| 2385 throw new core.ArgumentError("Parameter variantId is required."); | |
| 2386 } | |
| 2387 | |
| 2388 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); | |
| 2389 | |
| 2390 var _response = _requester.request(_url, | |
| 2391 "PUT", | |
| 2392 body: _body, | |
| 2393 queryParams: _queryParams, | |
| 2394 uploadOptions: _uploadOptions, | |
| 2395 uploadMedia: _uploadMedia, | |
| 2396 downloadOptions: _downloadOptions); | |
| 2397 return _response.then((data) => new Variant.fromJson(data)); | |
| 2398 } | |
| 2399 | |
| 2400 } | |
| 2401 | |
| 2402 | |
| 2403 class VariantsetsResourceApi { | |
| 2404 final commons.ApiRequester _requester; | |
| 2405 | |
| 2406 VariantsetsResourceApi(commons.ApiRequester client) : | |
| 2407 _requester = client; | |
| 2408 | |
| 2409 /** | |
| 2410 * Deletes the contents of a variant set. The variant set object is not | |
| 2411 * deleted. | |
| 2412 * | |
| 2413 * Request parameters: | |
| 2414 * | |
| 2415 * [variantSetId] - The ID of the variant set to be deleted. | |
| 2416 * | |
| 2417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2418 * error. | |
| 2419 * | |
| 2420 * If the used [http.Client] completes with an error when making a REST call, | |
| 2421 * this method will complete with the same error. | |
| 2422 */ | |
| 2423 async.Future delete(core.String variantSetId) { | |
| 2424 var _url = null; | |
| 2425 var _queryParams = new core.Map(); | |
| 2426 var _uploadMedia = null; | |
| 2427 var _uploadOptions = null; | |
| 2428 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2429 var _body = null; | |
| 2430 | |
| 2431 if (variantSetId == null) { | |
| 2432 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2433 } | |
| 2434 | |
| 2435 _downloadOptions = null; | |
| 2436 | |
| 2437 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); | |
| 2438 | |
| 2439 var _response = _requester.request(_url, | |
| 2440 "DELETE", | |
| 2441 body: _body, | |
| 2442 queryParams: _queryParams, | |
| 2443 uploadOptions: _uploadOptions, | |
| 2444 uploadMedia: _uploadMedia, | |
| 2445 downloadOptions: _downloadOptions); | |
| 2446 return _response.then((data) => null); | |
| 2447 } | |
| 2448 | |
| 2449 /** | |
| 2450 * Exports variant set data to an external destination. | |
| 2451 * | |
| 2452 * [request] - The metadata request object. | |
| 2453 * | |
| 2454 * Request parameters: | |
| 2455 * | |
| 2456 * [variantSetId] - Required. The ID of the variant set that contains variant | |
| 2457 * data which should be exported. The caller must have READ access to this | |
| 2458 * variant set. | |
| 2459 * | |
| 2460 * Completes with a [ExportVariantSetResponse]. | |
| 2461 * | |
| 2462 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2463 * error. | |
| 2464 * | |
| 2465 * If the used [http.Client] completes with an error when making a REST call, | |
| 2466 * this method will complete with the same error. | |
| 2467 */ | |
| 2468 async.Future<ExportVariantSetResponse> export(ExportVariantSetRequest request,
core.String variantSetId) { | |
| 2469 var _url = null; | |
| 2470 var _queryParams = new core.Map(); | |
| 2471 var _uploadMedia = null; | |
| 2472 var _uploadOptions = null; | |
| 2473 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2474 var _body = null; | |
| 2475 | |
| 2476 if (request != null) { | |
| 2477 _body = convert.JSON.encode((request).toJson()); | |
| 2478 } | |
| 2479 if (variantSetId == null) { | |
| 2480 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2481 } | |
| 2482 | |
| 2483 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/e
xport'; | |
| 2484 | |
| 2485 var _response = _requester.request(_url, | |
| 2486 "POST", | |
| 2487 body: _body, | |
| 2488 queryParams: _queryParams, | |
| 2489 uploadOptions: _uploadOptions, | |
| 2490 uploadMedia: _uploadMedia, | |
| 2491 downloadOptions: _downloadOptions); | |
| 2492 return _response.then((data) => new ExportVariantSetResponse.fromJson(data))
; | |
| 2493 } | |
| 2494 | |
| 2495 /** | |
| 2496 * Gets a variant set by ID. | |
| 2497 * | |
| 2498 * Request parameters: | |
| 2499 * | |
| 2500 * [variantSetId] - Required. The ID of the variant set. | |
| 2501 * | |
| 2502 * Completes with a [VariantSet]. | |
| 2503 * | |
| 2504 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2505 * error. | |
| 2506 * | |
| 2507 * If the used [http.Client] completes with an error when making a REST call, | |
| 2508 * this method will complete with the same error. | |
| 2509 */ | |
| 2510 async.Future<VariantSet> get(core.String variantSetId) { | |
| 2511 var _url = null; | |
| 2512 var _queryParams = new core.Map(); | |
| 2513 var _uploadMedia = null; | |
| 2514 var _uploadOptions = null; | |
| 2515 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2516 var _body = null; | |
| 2517 | |
| 2518 if (variantSetId == null) { | |
| 2519 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2520 } | |
| 2521 | |
| 2522 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); | |
| 2523 | |
| 2524 var _response = _requester.request(_url, | |
| 2525 "GET", | |
| 2526 body: _body, | |
| 2527 queryParams: _queryParams, | |
| 2528 uploadOptions: _uploadOptions, | |
| 2529 uploadMedia: _uploadMedia, | |
| 2530 downloadOptions: _downloadOptions); | |
| 2531 return _response.then((data) => new VariantSet.fromJson(data)); | |
| 2532 } | |
| 2533 | |
| 2534 /** | |
| 2535 * Creates variant data by asynchronously importing the provided information. | |
| 2536 * | |
| 2537 * The variants for import will be merged with any existing data and each | |
| 2538 * other according to the behavior of mergeVariants. In particular, this means | |
| 2539 * for merged VCF variants that have conflicting INFO fields, some data will | |
| 2540 * be arbitrarily discarded. As a special case, for single-sample VCF files, | |
| 2541 * QUAL and FILTER fields will be moved to the call level; these are sometimes | |
| 2542 * interpreted in a call-specific context. Imported VCF headers are appended | |
| 2543 * to the metadata already in a variant set. | |
| 2544 * | |
| 2545 * [request] - The metadata request object. | |
| 2546 * | |
| 2547 * Request parameters: | |
| 2548 * | |
| 2549 * [variantSetId] - Required. The variant set to which variant data should be | |
| 2550 * imported. | |
| 2551 * | |
| 2552 * Completes with a [ImportVariantsResponse]. | |
| 2553 * | |
| 2554 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2555 * error. | |
| 2556 * | |
| 2557 * If the used [http.Client] completes with an error when making a REST call, | |
| 2558 * this method will complete with the same error. | |
| 2559 */ | |
| 2560 async.Future<ImportVariantsResponse> importVariants(ImportVariantsRequest requ
est, core.String variantSetId) { | |
| 2561 var _url = null; | |
| 2562 var _queryParams = new core.Map(); | |
| 2563 var _uploadMedia = null; | |
| 2564 var _uploadOptions = null; | |
| 2565 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2566 var _body = null; | |
| 2567 | |
| 2568 if (request != null) { | |
| 2569 _body = convert.JSON.encode((request).toJson()); | |
| 2570 } | |
| 2571 if (variantSetId == null) { | |
| 2572 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2573 } | |
| 2574 | |
| 2575 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/i
mportVariants'; | |
| 2576 | |
| 2577 var _response = _requester.request(_url, | |
| 2578 "POST", | |
| 2579 body: _body, | |
| 2580 queryParams: _queryParams, | |
| 2581 uploadOptions: _uploadOptions, | |
| 2582 uploadMedia: _uploadMedia, | |
| 2583 downloadOptions: _downloadOptions); | |
| 2584 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); | |
| 2585 } | |
| 2586 | |
| 2587 /** | |
| 2588 * Merges the given variants with existing variants. Each variant will be | |
| 2589 * merged with an existing variant that matches its reference sequence, start, | |
| 2590 * end, reference bases, and alternative bases. If no such variant exists, a | |
| 2591 * new one will be created. | |
| 2592 * | |
| 2593 * When variants are merged, the call information from the new variant is | |
| 2594 * added to the existing variant, and other fields (such as key/value pairs) | |
| 2595 * are discarded. | |
| 2596 * | |
| 2597 * [request] - The metadata request object. | |
| 2598 * | |
| 2599 * Request parameters: | |
| 2600 * | |
| 2601 * [variantSetId] - The destination variant set. | |
| 2602 * | |
| 2603 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2604 * error. | |
| 2605 * | |
| 2606 * If the used [http.Client] completes with an error when making a REST call, | |
| 2607 * this method will complete with the same error. | |
| 2608 */ | |
| 2609 async.Future mergeVariants(MergeVariantsRequest request, core.String variantSe
tId) { | |
| 2610 var _url = null; | |
| 2611 var _queryParams = new core.Map(); | |
| 2612 var _uploadMedia = null; | |
| 2613 var _uploadOptions = null; | |
| 2614 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2615 var _body = null; | |
| 2616 | |
| 2617 if (request != null) { | |
| 2618 _body = convert.JSON.encode((request).toJson()); | |
| 2619 } | |
| 2620 if (variantSetId == null) { | |
| 2621 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2622 } | |
| 2623 | |
| 2624 _downloadOptions = null; | |
| 2625 | |
| 2626 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/m
ergeVariants'; | |
| 2627 | |
| 2628 var _response = _requester.request(_url, | |
| 2629 "POST", | |
| 2630 body: _body, | |
| 2631 queryParams: _queryParams, | |
| 2632 uploadOptions: _uploadOptions, | |
| 2633 uploadMedia: _uploadMedia, | |
| 2634 downloadOptions: _downloadOptions); | |
| 2635 return _response.then((data) => null); | |
| 2636 } | |
| 2637 | |
| 2638 /** | |
| 2639 * Updates a variant set's metadata. All other modifications are silently | |
| 2640 * ignored. This method supports patch semantics. | |
| 2641 * | |
| 2642 * [request] - The metadata request object. | |
| 2643 * | |
| 2644 * Request parameters: | |
| 2645 * | |
| 2646 * [variantSetId] - The ID of the variant to be updated (must already exist). | |
| 2647 * | |
| 2648 * Completes with a [VariantSet]. | |
| 2649 * | |
| 2650 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2651 * error. | |
| 2652 * | |
| 2653 * If the used [http.Client] completes with an error when making a REST call, | |
| 2654 * this method will complete with the same error. | |
| 2655 */ | |
| 2656 async.Future<VariantSet> patch(VariantSet request, core.String variantSetId) { | |
| 2657 var _url = null; | |
| 2658 var _queryParams = new core.Map(); | |
| 2659 var _uploadMedia = null; | |
| 2660 var _uploadOptions = null; | |
| 2661 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2662 var _body = null; | |
| 2663 | |
| 2664 if (request != null) { | |
| 2665 _body = convert.JSON.encode((request).toJson()); | |
| 2666 } | |
| 2667 if (variantSetId == null) { | |
| 2668 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2669 } | |
| 2670 | |
| 2671 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); | |
| 2672 | |
| 2673 var _response = _requester.request(_url, | |
| 2674 "PATCH", | |
| 2675 body: _body, | |
| 2676 queryParams: _queryParams, | |
| 2677 uploadOptions: _uploadOptions, | |
| 2678 uploadMedia: _uploadMedia, | |
| 2679 downloadOptions: _downloadOptions); | |
| 2680 return _response.then((data) => new VariantSet.fromJson(data)); | |
| 2681 } | |
| 2682 | |
| 2683 /** | |
| 2684 * Returns a list of all variant sets matching search criteria. | |
| 2685 * | |
| 2686 * Implements GlobalAllianceApi.searchVariantSets. | |
| 2687 * | |
| 2688 * [request] - The metadata request object. | |
| 2689 * | |
| 2690 * Request parameters: | |
| 2691 * | |
| 2692 * Completes with a [SearchVariantSetsResponse]. | |
| 2693 * | |
| 2694 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2695 * error. | |
| 2696 * | |
| 2697 * If the used [http.Client] completes with an error when making a REST call, | |
| 2698 * this method will complete with the same error. | |
| 2699 */ | |
| 2700 async.Future<SearchVariantSetsResponse> search(SearchVariantSetsRequest reques
t) { | |
| 2701 var _url = null; | |
| 2702 var _queryParams = new core.Map(); | |
| 2703 var _uploadMedia = null; | |
| 2704 var _uploadOptions = null; | |
| 2705 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2706 var _body = null; | |
| 2707 | |
| 2708 if (request != null) { | |
| 2709 _body = convert.JSON.encode((request).toJson()); | |
| 2710 } | |
| 2711 | |
| 2712 _url = 'variantsets/search'; | |
| 2713 | |
| 2714 var _response = _requester.request(_url, | |
| 2715 "POST", | |
| 2716 body: _body, | |
| 2717 queryParams: _queryParams, | |
| 2718 uploadOptions: _uploadOptions, | |
| 2719 uploadMedia: _uploadMedia, | |
| 2720 downloadOptions: _downloadOptions); | |
| 2721 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); | 1967 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); |
| 2722 } | 1968 } |
| 2723 | 1969 |
| 2724 /** | |
| 2725 * Updates a variant set's metadata. All other modifications are silently | |
| 2726 * ignored. | |
| 2727 * | |
| 2728 * [request] - The metadata request object. | |
| 2729 * | |
| 2730 * Request parameters: | |
| 2731 * | |
| 2732 * [variantSetId] - The ID of the variant to be updated (must already exist). | |
| 2733 * | |
| 2734 * Completes with a [VariantSet]. | |
| 2735 * | |
| 2736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | |
| 2737 * error. | |
| 2738 * | |
| 2739 * If the used [http.Client] completes with an error when making a REST call, | |
| 2740 * this method will complete with the same error. | |
| 2741 */ | |
| 2742 async.Future<VariantSet> update(VariantSet request, core.String variantSetId)
{ | |
| 2743 var _url = null; | |
| 2744 var _queryParams = new core.Map(); | |
| 2745 var _uploadMedia = null; | |
| 2746 var _uploadOptions = null; | |
| 2747 var _downloadOptions = commons.DownloadOptions.Metadata; | |
| 2748 var _body = null; | |
| 2749 | |
| 2750 if (request != null) { | |
| 2751 _body = convert.JSON.encode((request).toJson()); | |
| 2752 } | |
| 2753 if (variantSetId == null) { | |
| 2754 throw new core.ArgumentError("Parameter variantSetId is required."); | |
| 2755 } | |
| 2756 | |
| 2757 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); | |
| 2758 | |
| 2759 var _response = _requester.request(_url, | |
| 2760 "PUT", | |
| 2761 body: _body, | |
| 2762 queryParams: _queryParams, | |
| 2763 uploadOptions: _uploadOptions, | |
| 2764 uploadMedia: _uploadMedia, | |
| 2765 downloadOptions: _downloadOptions); | |
| 2766 return _response.then((data) => new VariantSet.fromJson(data)); | |
| 2767 } | |
| 2768 | |
| 2769 } | 1970 } |
| 2770 | 1971 |
| 2771 | 1972 |
| 2772 | 1973 |
| 2773 /** The read group set align request. */ | |
| 2774 class AlignReadGroupSetsRequest { | |
| 2775 /** | |
| 2776 * The BAM source files for alignment. Exactly one of readGroupSetId, | |
| 2777 * bamSourceUris, interleavedFastqSource or pairedFastqSource must be | |
| 2778 * provided. The caller must have READ permissions for these files. | |
| 2779 */ | |
| 2780 core.List<core.String> bamSourceUris; | |
| 2781 /** | |
| 2782 * Required. The ID of the dataset the newly aligned read group sets will | |
| 2783 * belong to. The caller must have WRITE permissions to this dataset. | |
| 2784 */ | |
| 2785 core.String datasetId; | |
| 2786 /** | |
| 2787 * The interleaved FASTQ source files for alignment, where both members of | |
| 2788 * each pair of reads are found on consecutive records within the same FASTQ | |
| 2789 * file. Exactly one of readGroupSetId, bamSourceUris, interleavedFastqSource | |
| 2790 * or pairedFastqSource must be provided. | |
| 2791 */ | |
| 2792 InterleavedFastqSource interleavedFastqSource; | |
| 2793 /** | |
| 2794 * The paired end FASTQ source files for alignment, where each member of a | |
| 2795 * pair of reads are found in separate files. Exactly one of readGroupSetId, | |
| 2796 * bamSourceUris, interleavedFastqSource or pairedFastqSource must be | |
| 2797 * provided. | |
| 2798 */ | |
| 2799 PairedFastqSource pairedFastqSource; | |
| 2800 /** | |
| 2801 * The ID of the read group set which will be aligned. A new read group set | |
| 2802 * will be generated to hold the aligned data, the originals will not be | |
| 2803 * modified. The caller must have READ permissions for this read group set. | |
| 2804 * Exactly one of readGroupSetId, bamSourceUris, interleavedFastqSource or | |
| 2805 * pairedFastqSource must be provided. | |
| 2806 */ | |
| 2807 core.String readGroupSetId; | |
| 2808 | |
| 2809 AlignReadGroupSetsRequest(); | |
| 2810 | |
| 2811 AlignReadGroupSetsRequest.fromJson(core.Map _json) { | |
| 2812 if (_json.containsKey("bamSourceUris")) { | |
| 2813 bamSourceUris = _json["bamSourceUris"]; | |
| 2814 } | |
| 2815 if (_json.containsKey("datasetId")) { | |
| 2816 datasetId = _json["datasetId"]; | |
| 2817 } | |
| 2818 if (_json.containsKey("interleavedFastqSource")) { | |
| 2819 interleavedFastqSource = new InterleavedFastqSource.fromJson(_json["interl
eavedFastqSource"]); | |
| 2820 } | |
| 2821 if (_json.containsKey("pairedFastqSource")) { | |
| 2822 pairedFastqSource = new PairedFastqSource.fromJson(_json["pairedFastqSourc
e"]); | |
| 2823 } | |
| 2824 if (_json.containsKey("readGroupSetId")) { | |
| 2825 readGroupSetId = _json["readGroupSetId"]; | |
| 2826 } | |
| 2827 } | |
| 2828 | |
| 2829 core.Map toJson() { | |
| 2830 var _json = new core.Map(); | |
| 2831 if (bamSourceUris != null) { | |
| 2832 _json["bamSourceUris"] = bamSourceUris; | |
| 2833 } | |
| 2834 if (datasetId != null) { | |
| 2835 _json["datasetId"] = datasetId; | |
| 2836 } | |
| 2837 if (interleavedFastqSource != null) { | |
| 2838 _json["interleavedFastqSource"] = (interleavedFastqSource).toJson(); | |
| 2839 } | |
| 2840 if (pairedFastqSource != null) { | |
| 2841 _json["pairedFastqSource"] = (pairedFastqSource).toJson(); | |
| 2842 } | |
| 2843 if (readGroupSetId != null) { | |
| 2844 _json["readGroupSetId"] = readGroupSetId; | |
| 2845 } | |
| 2846 return _json; | |
| 2847 } | |
| 2848 } | |
| 2849 | |
| 2850 /** The read group set align response. */ | |
| 2851 class AlignReadGroupSetsResponse { | |
| 2852 /** A job ID that can be used to get status information. */ | |
| 2853 core.String jobId; | |
| 2854 | |
| 2855 AlignReadGroupSetsResponse(); | |
| 2856 | |
| 2857 AlignReadGroupSetsResponse.fromJson(core.Map _json) { | |
| 2858 if (_json.containsKey("jobId")) { | |
| 2859 jobId = _json["jobId"]; | |
| 2860 } | |
| 2861 } | |
| 2862 | |
| 2863 core.Map toJson() { | |
| 2864 var _json = new core.Map(); | |
| 2865 if (jobId != null) { | |
| 2866 _json["jobId"] = jobId; | |
| 2867 } | |
| 2868 return _json; | |
| 2869 } | |
| 2870 } | |
| 2871 | |
| 2872 /** | |
| 2873 * An annotation describes a region of reference genome. The value of an | |
| 2874 * annotation may be one of several canonical types, supplemented by arbitrary | |
| 2875 * info tags. A variant annotation is represented by one or more of these | |
| 2876 * canonical types. An annotation is not inherently associated with a specific | |
| 2877 * sample or individual (though a client could choose to use annotations in this | |
| 2878 * way). Example canonical annotation types are 'Gene' and 'Variant'. | |
| 2879 */ | |
| 2880 class Annotation { | |
| 2881 /** The ID of the containing annotation set. */ | |
| 2882 core.String annotationSetId; | |
| 2883 /** The generated unique ID for this annotation. */ | |
| 2884 core.String id; | |
| 2885 /** A string which maps to an array of values. */ | |
| 2886 core.Map<core.String, core.List<core.String>> info; | |
| 2887 /** The display name of this annotation. */ | |
| 2888 core.String name; | |
| 2889 /** The position of this annotation on the reference sequence. */ | |
| 2890 RangePosition position; | |
| 2891 /** | |
| 2892 * A transcript value represents the assertion that a particular region of the | |
| 2893 * reference genome may be transcribed as RNA. An alternative splicing pattern | |
| 2894 * would be represented as a separate transcript object. This field is only | |
| 2895 * set for annotations of type TRANSCRIPT. | |
| 2896 */ | |
| 2897 Transcript transcript; | |
| 2898 /** | |
| 2899 * The data type for this annotation. Must match the containing annotation | |
| 2900 * set's type. | |
| 2901 * Possible string values are: | |
| 2902 * - "GENE" | |
| 2903 * - "GENERIC" | |
| 2904 * - "TRANSCRIPT" | |
| 2905 * - "VARIANT" | |
| 2906 */ | |
| 2907 core.String type; | |
| 2908 /** | |
| 2909 * A variant annotation, which describes the effect of a variant on the | |
| 2910 * genome, the coding sequence, and/or higher level consequences at the | |
| 2911 * organism level e.g. pathogenicity. This field is only set for annotations | |
| 2912 * of type VARIANT. | |
| 2913 */ | |
| 2914 VariantAnnotation variant; | |
| 2915 | |
| 2916 Annotation(); | |
| 2917 | |
| 2918 Annotation.fromJson(core.Map _json) { | |
| 2919 if (_json.containsKey("annotationSetId")) { | |
| 2920 annotationSetId = _json["annotationSetId"]; | |
| 2921 } | |
| 2922 if (_json.containsKey("id")) { | |
| 2923 id = _json["id"]; | |
| 2924 } | |
| 2925 if (_json.containsKey("info")) { | |
| 2926 info = _json["info"]; | |
| 2927 } | |
| 2928 if (_json.containsKey("name")) { | |
| 2929 name = _json["name"]; | |
| 2930 } | |
| 2931 if (_json.containsKey("position")) { | |
| 2932 position = new RangePosition.fromJson(_json["position"]); | |
| 2933 } | |
| 2934 if (_json.containsKey("transcript")) { | |
| 2935 transcript = new Transcript.fromJson(_json["transcript"]); | |
| 2936 } | |
| 2937 if (_json.containsKey("type")) { | |
| 2938 type = _json["type"]; | |
| 2939 } | |
| 2940 if (_json.containsKey("variant")) { | |
| 2941 variant = new VariantAnnotation.fromJson(_json["variant"]); | |
| 2942 } | |
| 2943 } | |
| 2944 | |
| 2945 core.Map toJson() { | |
| 2946 var _json = new core.Map(); | |
| 2947 if (annotationSetId != null) { | |
| 2948 _json["annotationSetId"] = annotationSetId; | |
| 2949 } | |
| 2950 if (id != null) { | |
| 2951 _json["id"] = id; | |
| 2952 } | |
| 2953 if (info != null) { | |
| 2954 _json["info"] = info; | |
| 2955 } | |
| 2956 if (name != null) { | |
| 2957 _json["name"] = name; | |
| 2958 } | |
| 2959 if (position != null) { | |
| 2960 _json["position"] = (position).toJson(); | |
| 2961 } | |
| 2962 if (transcript != null) { | |
| 2963 _json["transcript"] = (transcript).toJson(); | |
| 2964 } | |
| 2965 if (type != null) { | |
| 2966 _json["type"] = type; | |
| 2967 } | |
| 2968 if (variant != null) { | |
| 2969 _json["variant"] = (variant).toJson(); | |
| 2970 } | |
| 2971 return _json; | |
| 2972 } | |
| 2973 } | |
| 2974 | |
| 2975 /** | |
| 2976 * An annotation set is a logical grouping of annotations that share consistent | |
| 2977 * type information and provenance. Examples of annotation sets include 'all | |
| 2978 * genes from refseq', and 'all variant annotations from ClinVar'. | |
| 2979 */ | |
| 2980 class AnnotationSet { | |
| 2981 /** The ID of the containing dataset. */ | |
| 2982 core.String datasetId; | |
| 2983 /** The generated unique ID for this annotation set. */ | |
| 2984 core.String id; | |
| 2985 /** A string which maps to an array of values. */ | |
| 2986 core.Map<core.String, core.List<core.String>> info; | |
| 2987 /** The display name for this annotation set. */ | |
| 2988 core.String name; | |
| 2989 /** | |
| 2990 * The ID of the reference set that defines the coordinate space for this | |
| 2991 * set's annotations. | |
| 2992 */ | |
| 2993 core.String referenceSetId; | |
| 2994 /** | |
| 2995 * The source URI describing the file from which this annotation set was | |
| 2996 * generated, if any. | |
| 2997 */ | |
| 2998 core.String sourceUri; | |
| 2999 /** | |
| 3000 * The type of annotations contained within this set. | |
| 3001 * Possible string values are: | |
| 3002 * - "GENE" | |
| 3003 * - "GENERIC" | |
| 3004 * - "TRANSCRIPT" | |
| 3005 * - "VARIANT" | |
| 3006 */ | |
| 3007 core.String type; | |
| 3008 | |
| 3009 AnnotationSet(); | |
| 3010 | |
| 3011 AnnotationSet.fromJson(core.Map _json) { | |
| 3012 if (_json.containsKey("datasetId")) { | |
| 3013 datasetId = _json["datasetId"]; | |
| 3014 } | |
| 3015 if (_json.containsKey("id")) { | |
| 3016 id = _json["id"]; | |
| 3017 } | |
| 3018 if (_json.containsKey("info")) { | |
| 3019 info = _json["info"]; | |
| 3020 } | |
| 3021 if (_json.containsKey("name")) { | |
| 3022 name = _json["name"]; | |
| 3023 } | |
| 3024 if (_json.containsKey("referenceSetId")) { | |
| 3025 referenceSetId = _json["referenceSetId"]; | |
| 3026 } | |
| 3027 if (_json.containsKey("sourceUri")) { | |
| 3028 sourceUri = _json["sourceUri"]; | |
| 3029 } | |
| 3030 if (_json.containsKey("type")) { | |
| 3031 type = _json["type"]; | |
| 3032 } | |
| 3033 } | |
| 3034 | |
| 3035 core.Map toJson() { | |
| 3036 var _json = new core.Map(); | |
| 3037 if (datasetId != null) { | |
| 3038 _json["datasetId"] = datasetId; | |
| 3039 } | |
| 3040 if (id != null) { | |
| 3041 _json["id"] = id; | |
| 3042 } | |
| 3043 if (info != null) { | |
| 3044 _json["info"] = info; | |
| 3045 } | |
| 3046 if (name != null) { | |
| 3047 _json["name"] = name; | |
| 3048 } | |
| 3049 if (referenceSetId != null) { | |
| 3050 _json["referenceSetId"] = referenceSetId; | |
| 3051 } | |
| 3052 if (sourceUri != null) { | |
| 3053 _json["sourceUri"] = sourceUri; | |
| 3054 } | |
| 3055 if (type != null) { | |
| 3056 _json["type"] = type; | |
| 3057 } | |
| 3058 return _json; | |
| 3059 } | |
| 3060 } | |
| 3061 | |
| 3062 class BatchAnnotationsResponse { | |
| 3063 /** | |
| 3064 * The resulting per-annotation entries, ordered consistently with the | |
| 3065 * original request. | |
| 3066 */ | |
| 3067 core.List<BatchAnnotationsResponseEntry> entries; | |
| 3068 | |
| 3069 BatchAnnotationsResponse(); | |
| 3070 | |
| 3071 BatchAnnotationsResponse.fromJson(core.Map _json) { | |
| 3072 if (_json.containsKey("entries")) { | |
| 3073 entries = _json["entries"].map((value) => new BatchAnnotationsResponseEntr
y.fromJson(value)).toList(); | |
| 3074 } | |
| 3075 } | |
| 3076 | |
| 3077 core.Map toJson() { | |
| 3078 var _json = new core.Map(); | |
| 3079 if (entries != null) { | |
| 3080 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | |
| 3081 } | |
| 3082 return _json; | |
| 3083 } | |
| 3084 } | |
| 3085 | |
| 3086 class BatchAnnotationsResponseEntry { | |
| 3087 /** The annotation, if any. */ | |
| 3088 Annotation annotation; | |
| 3089 /** The resulting status for this annotation operation. */ | |
| 3090 BatchAnnotationsResponseEntryStatus status; | |
| 3091 | |
| 3092 BatchAnnotationsResponseEntry(); | |
| 3093 | |
| 3094 BatchAnnotationsResponseEntry.fromJson(core.Map _json) { | |
| 3095 if (_json.containsKey("annotation")) { | |
| 3096 annotation = new Annotation.fromJson(_json["annotation"]); | |
| 3097 } | |
| 3098 if (_json.containsKey("status")) { | |
| 3099 status = new BatchAnnotationsResponseEntryStatus.fromJson(_json["status"])
; | |
| 3100 } | |
| 3101 } | |
| 3102 | |
| 3103 core.Map toJson() { | |
| 3104 var _json = new core.Map(); | |
| 3105 if (annotation != null) { | |
| 3106 _json["annotation"] = (annotation).toJson(); | |
| 3107 } | |
| 3108 if (status != null) { | |
| 3109 _json["status"] = (status).toJson(); | |
| 3110 } | |
| 3111 return _json; | |
| 3112 } | |
| 3113 } | |
| 3114 | |
| 3115 class BatchAnnotationsResponseEntryStatus { | |
| 3116 /** The HTTP status code for this operation. */ | |
| 3117 core.int code; | |
| 3118 /** Error message for this status, if any. */ | |
| 3119 core.String message; | |
| 3120 | |
| 3121 BatchAnnotationsResponseEntryStatus(); | |
| 3122 | |
| 3123 BatchAnnotationsResponseEntryStatus.fromJson(core.Map _json) { | |
| 3124 if (_json.containsKey("code")) { | |
| 3125 code = _json["code"]; | |
| 3126 } | |
| 3127 if (_json.containsKey("message")) { | |
| 3128 message = _json["message"]; | |
| 3129 } | |
| 3130 } | |
| 3131 | |
| 3132 core.Map toJson() { | |
| 3133 var _json = new core.Map(); | |
| 3134 if (code != null) { | |
| 3135 _json["code"] = code; | |
| 3136 } | |
| 3137 if (message != null) { | |
| 3138 _json["message"] = message; | |
| 3139 } | |
| 3140 return _json; | |
| 3141 } | |
| 3142 } | |
| 3143 | |
| 3144 class BatchCreateAnnotationsRequest { | |
| 3145 /** | |
| 3146 * The annotations to be created. At most 4096 can be specified in a single | |
| 3147 * request. | |
| 3148 */ | |
| 3149 core.List<Annotation> annotations; | |
| 3150 | |
| 3151 BatchCreateAnnotationsRequest(); | |
| 3152 | |
| 3153 BatchCreateAnnotationsRequest.fromJson(core.Map _json) { | |
| 3154 if (_json.containsKey("annotations")) { | |
| 3155 annotations = _json["annotations"].map((value) => new Annotation.fromJson(
value)).toList(); | |
| 3156 } | |
| 3157 } | |
| 3158 | |
| 3159 core.Map toJson() { | |
| 3160 var _json = new core.Map(); | |
| 3161 if (annotations != null) { | |
| 3162 _json["annotations"] = annotations.map((value) => (value).toJson()).toList
(); | |
| 3163 } | |
| 3164 return _json; | |
| 3165 } | |
| 3166 } | |
| 3167 | |
| 3168 /** | |
| 3169 * A call represents the determination of genotype with respect to a particular | |
| 3170 * variant. It may include associated information such as quality and phasing. | |
| 3171 * For example, a call might assign a probability of 0.32 to the occurrence of a | |
| 3172 * SNP named rs1234 in a call set with the name NA12345. | |
| 3173 */ | |
| 3174 class Call { | |
| 3175 /** The ID of the call set this variant call belongs to. */ | |
| 3176 core.String callSetId; | |
| 3177 /** The name of the call set this variant call belongs to. */ | |
| 3178 core.String callSetName; | |
| 3179 /** | |
| 3180 * The genotype of this variant call. Each value represents either the value | |
| 3181 * of the referenceBases field or a 1-based index into alternateBases. If a | |
| 3182 * variant had a referenceBases value of T and an alternateBases value of | |
| 3183 * ["A", "C"], and the genotype was [2, 1], that would mean the call | |
| 3184 * represented the heterozygous value CA for this variant. If the genotype was | |
| 3185 * instead [0, 1], the represented value would be TA. Ordering of the genotype | |
| 3186 * values is important if the phaseset is present. If a genotype is not called | |
| 3187 * (that is, a . is present in the GT string) -1 is returned. | |
| 3188 */ | |
| 3189 core.List<core.int> genotype; | |
| 3190 /** | |
| 3191 * The genotype likelihoods for this variant call. Each array entry represents | |
| 3192 * how likely a specific genotype is for this call. The value ordering is | |
| 3193 * defined by the GL tag in the VCF spec. If Phred-scaled genotype likelihood | |
| 3194 * scores (PL) are available and log10(P) genotype likelihood scores (GL) are | |
| 3195 * not, PL scores are converted to GL scores. If both are available, PL scores | |
| 3196 * are stored in info. | |
| 3197 */ | |
| 3198 core.List<core.double> genotypeLikelihood; | |
| 3199 /** A string which maps to an array of values. */ | |
| 3200 core.Map<core.String, core.List<core.String>> info; | |
| 3201 /** | |
| 3202 * If this field is present, this variant call's genotype ordering implies the | |
| 3203 * phase of the bases and is consistent with any other variant calls in the | |
| 3204 * same reference sequence which have the same phaseset value. When importing | |
| 3205 * data from VCF, if the genotype data was phased but no phase set was | |
| 3206 * specified this field will be set to *. | |
| 3207 */ | |
| 3208 core.String phaseset; | |
| 3209 | |
| 3210 Call(); | |
| 3211 | |
| 3212 Call.fromJson(core.Map _json) { | |
| 3213 if (_json.containsKey("callSetId")) { | |
| 3214 callSetId = _json["callSetId"]; | |
| 3215 } | |
| 3216 if (_json.containsKey("callSetName")) { | |
| 3217 callSetName = _json["callSetName"]; | |
| 3218 } | |
| 3219 if (_json.containsKey("genotype")) { | |
| 3220 genotype = _json["genotype"]; | |
| 3221 } | |
| 3222 if (_json.containsKey("genotypeLikelihood")) { | |
| 3223 genotypeLikelihood = _json["genotypeLikelihood"]; | |
| 3224 } | |
| 3225 if (_json.containsKey("info")) { | |
| 3226 info = _json["info"]; | |
| 3227 } | |
| 3228 if (_json.containsKey("phaseset")) { | |
| 3229 phaseset = _json["phaseset"]; | |
| 3230 } | |
| 3231 } | |
| 3232 | |
| 3233 core.Map toJson() { | |
| 3234 var _json = new core.Map(); | |
| 3235 if (callSetId != null) { | |
| 3236 _json["callSetId"] = callSetId; | |
| 3237 } | |
| 3238 if (callSetName != null) { | |
| 3239 _json["callSetName"] = callSetName; | |
| 3240 } | |
| 3241 if (genotype != null) { | |
| 3242 _json["genotype"] = genotype; | |
| 3243 } | |
| 3244 if (genotypeLikelihood != null) { | |
| 3245 _json["genotypeLikelihood"] = genotypeLikelihood; | |
| 3246 } | |
| 3247 if (info != null) { | |
| 3248 _json["info"] = info; | |
| 3249 } | |
| 3250 if (phaseset != null) { | |
| 3251 _json["phaseset"] = phaseset; | |
| 3252 } | |
| 3253 return _json; | |
| 3254 } | |
| 3255 } | |
| 3256 | |
| 3257 /** The read group set call request. */ | |
| 3258 class CallReadGroupSetsRequest { | |
| 3259 /** | |
| 3260 * Required. The ID of the dataset the called variants will belong to. The | |
| 3261 * caller must have WRITE permissions to this dataset. | |
| 3262 */ | |
| 3263 core.String datasetId; | |
| 3264 /** | |
| 3265 * The IDs of the read group sets which will be called. The caller must have | |
| 3266 * READ permissions for these read group sets. One of readGroupSetId or | |
| 3267 * sourceUris must be provided. | |
| 3268 */ | |
| 3269 core.String readGroupSetId; | |
| 3270 /** | |
| 3271 * A list of URIs pointing at BAM files in Google Cloud Storage which will be | |
| 3272 * called. FASTQ files are not allowed. The caller must have READ permissions | |
| 3273 * for these files. One of readGroupSetId or sourceUris must be provided. | |
| 3274 */ | |
| 3275 core.List<core.String> sourceUris; | |
| 3276 | |
| 3277 CallReadGroupSetsRequest(); | |
| 3278 | |
| 3279 CallReadGroupSetsRequest.fromJson(core.Map _json) { | |
| 3280 if (_json.containsKey("datasetId")) { | |
| 3281 datasetId = _json["datasetId"]; | |
| 3282 } | |
| 3283 if (_json.containsKey("readGroupSetId")) { | |
| 3284 readGroupSetId = _json["readGroupSetId"]; | |
| 3285 } | |
| 3286 if (_json.containsKey("sourceUris")) { | |
| 3287 sourceUris = _json["sourceUris"]; | |
| 3288 } | |
| 3289 } | |
| 3290 | |
| 3291 core.Map toJson() { | |
| 3292 var _json = new core.Map(); | |
| 3293 if (datasetId != null) { | |
| 3294 _json["datasetId"] = datasetId; | |
| 3295 } | |
| 3296 if (readGroupSetId != null) { | |
| 3297 _json["readGroupSetId"] = readGroupSetId; | |
| 3298 } | |
| 3299 if (sourceUris != null) { | |
| 3300 _json["sourceUris"] = sourceUris; | |
| 3301 } | |
| 3302 return _json; | |
| 3303 } | |
| 3304 } | |
| 3305 | |
| 3306 /** The read group set call response. */ | |
| 3307 class CallReadGroupSetsResponse { | |
| 3308 /** A job ID that can be used to get status information. */ | |
| 3309 core.String jobId; | |
| 3310 | |
| 3311 CallReadGroupSetsResponse(); | |
| 3312 | |
| 3313 CallReadGroupSetsResponse.fromJson(core.Map _json) { | |
| 3314 if (_json.containsKey("jobId")) { | |
| 3315 jobId = _json["jobId"]; | |
| 3316 } | |
| 3317 } | |
| 3318 | |
| 3319 core.Map toJson() { | |
| 3320 var _json = new core.Map(); | |
| 3321 if (jobId != null) { | |
| 3322 _json["jobId"] = jobId; | |
| 3323 } | |
| 3324 return _json; | |
| 3325 } | |
| 3326 } | |
| 3327 | |
| 3328 /** | 1974 /** |
| 3329 * A call set is a collection of variant calls, typically for one sample. It | 1975 * A call set is a collection of variant calls, typically for one sample. It |
| 3330 * belongs to a variant set. | 1976 * belongs to a variant set. |
| 3331 */ | 1977 */ |
| 3332 class CallSet { | 1978 class CallSet { |
| 3333 /** The date this call set was created in milliseconds from the epoch. */ | 1979 /** The date this call set was created in milliseconds from the epoch. */ |
| 3334 core.String created; | 1980 core.String created; |
| 3335 /** The Google generated ID of the call set, immutable. */ | 1981 /** The server-generated call set ID, unique across all call sets. */ |
| 3336 core.String id; | 1982 core.String id; |
| 3337 /** A string which maps to an array of values. */ | 1983 /** |
| 3338 core.Map<core.String, core.List<core.String>> info; | 1984 * A map of additional call set information. This must be of the form map |
| 1985 * (string key mapping to a list of string values). |
| 1986 * |
| 1987 * The values for Object must be JSON objects. It can consist of `num`, |
| 1988 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 1989 */ |
| 1990 core.Map<core.String, core.List<core.Object>> info; |
| 3339 /** The call set name. */ | 1991 /** The call set name. */ |
| 3340 core.String name; | 1992 core.String name; |
| 3341 /** The sample ID this call set corresponds to. */ | 1993 /** The sample ID this call set corresponds to. */ |
| 3342 core.String sampleId; | 1994 core.String sampleId; |
| 3343 /** The IDs of the variant sets this call set belongs to. */ | 1995 /** |
| 1996 * The IDs of the variant sets this call set belongs to. This field must have |
| 1997 * exactly length one, as a call set belongs to a single variant set. This |
| 1998 * field is repeated for compatibility with the [GA4GH 0.5.1 |
| 1999 * API](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/v
ariants.avdl#L76). |
| 2000 */ |
| 3344 core.List<core.String> variantSetIds; | 2001 core.List<core.String> variantSetIds; |
| 3345 | 2002 |
| 3346 CallSet(); | 2003 CallSet(); |
| 3347 | 2004 |
| 3348 CallSet.fromJson(core.Map _json) { | 2005 CallSet.fromJson(core.Map _json) { |
| 3349 if (_json.containsKey("created")) { | 2006 if (_json.containsKey("created")) { |
| 3350 created = _json["created"]; | 2007 created = _json["created"]; |
| 3351 } | 2008 } |
| 3352 if (_json.containsKey("id")) { | 2009 if (_json.containsKey("id")) { |
| 3353 id = _json["id"]; | 2010 id = _json["id"]; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3383 if (sampleId != null) { | 2040 if (sampleId != null) { |
| 3384 _json["sampleId"] = sampleId; | 2041 _json["sampleId"] = sampleId; |
| 3385 } | 2042 } |
| 3386 if (variantSetIds != null) { | 2043 if (variantSetIds != null) { |
| 3387 _json["variantSetIds"] = variantSetIds; | 2044 _json["variantSetIds"] = variantSetIds; |
| 3388 } | 2045 } |
| 3389 return _json; | 2046 return _json; |
| 3390 } | 2047 } |
| 3391 } | 2048 } |
| 3392 | 2049 |
| 2050 /** |
| 2051 * The request message for |
| 2052 * [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]. |
| 2053 */ |
| 2054 class CancelOperationRequest { |
| 2055 |
| 2056 CancelOperationRequest(); |
| 2057 |
| 2058 CancelOperationRequest.fromJson(core.Map _json) { |
| 2059 } |
| 2060 |
| 2061 core.Map toJson() { |
| 2062 var _json = new core.Map(); |
| 2063 return _json; |
| 2064 } |
| 2065 } |
| 2066 |
| 3393 /** A single CIGAR operation. */ | 2067 /** A single CIGAR operation. */ |
| 3394 class CigarUnit { | 2068 class CigarUnit { |
| 3395 /** | 2069 /** |
| 3396 * | 2070 * |
| 3397 * Possible string values are: | 2071 * Possible string values are: |
| 3398 * - "ALIGNMENT_MATCH" | 2072 * - "OPERATION_UNSPECIFIED" : A OPERATION_UNSPECIFIED. |
| 3399 * - "CLIP_HARD" | 2073 * - "ALIGNMENT_MATCH" : A ALIGNMENT_MATCH. |
| 3400 * - "CLIP_SOFT" | 2074 * - "INSERT" : A INSERT. |
| 3401 * - "DELETE" | 2075 * - "DELETE" : A DELETE. |
| 3402 * - "INSERT" | 2076 * - "SKIP" : A SKIP. |
| 3403 * - "OPERATION_UNSPECIFIED" | 2077 * - "CLIP_SOFT" : A CLIP_SOFT. |
| 3404 * - "PAD" | 2078 * - "CLIP_HARD" : A CLIP_HARD. |
| 3405 * - "SEQUENCE_MATCH" | 2079 * - "PAD" : A PAD. |
| 3406 * - "SEQUENCE_MISMATCH" | 2080 * - "SEQUENCE_MATCH" : A SEQUENCE_MATCH. |
| 3407 * - "SKIP" | 2081 * - "SEQUENCE_MISMATCH" : A SEQUENCE_MISMATCH. |
| 3408 */ | 2082 */ |
| 3409 core.String operation; | 2083 core.String operation; |
| 3410 /** The number of bases that the operation runs for. Required. */ | 2084 /** The number of genomic bases that the operation runs for. Required. */ |
| 3411 core.String operationLength; | 2085 core.String operationLength; |
| 3412 /** | 2086 /** |
| 3413 * referenceSequence is only used at mismatches (SEQUENCE_MISMATCH) and | 2087 * `referenceSequence` is only used at mismatches (`SEQUENCE_MISMATCH`) and |
| 3414 * deletions (DELETE). Filling this field replaces SAM's MD tag. If the | 2088 * deletions (`DELETE`). Filling this field replaces SAM's MD tag. If the |
| 3415 * relevant information is not available, this field is unset. | 2089 * relevant information is not available, this field is unset. |
| 3416 */ | 2090 */ |
| 3417 core.String referenceSequence; | 2091 core.String referenceSequence; |
| 3418 | 2092 |
| 3419 CigarUnit(); | 2093 CigarUnit(); |
| 3420 | 2094 |
| 3421 CigarUnit.fromJson(core.Map _json) { | 2095 CigarUnit.fromJson(core.Map _json) { |
| 3422 if (_json.containsKey("operation")) { | 2096 if (_json.containsKey("operation")) { |
| 3423 operation = _json["operation"]; | 2097 operation = _json["operation"]; |
| 3424 } | 2098 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3478 _json["range"] = (range).toJson(); | 2152 _json["range"] = (range).toJson(); |
| 3479 } | 2153 } |
| 3480 return _json; | 2154 return _json; |
| 3481 } | 2155 } |
| 3482 } | 2156 } |
| 3483 | 2157 |
| 3484 /** A Dataset is a collection of genomic data. */ | 2158 /** A Dataset is a collection of genomic data. */ |
| 3485 class Dataset { | 2159 class Dataset { |
| 3486 /** The time this dataset was created, in seconds from the epoch. */ | 2160 /** The time this dataset was created, in seconds from the epoch. */ |
| 3487 core.String createTime; | 2161 core.String createTime; |
| 3488 /** The Google generated ID of the dataset, immutable. */ | 2162 /** The server-generated dataset ID, unique across all datasets. */ |
| 3489 core.String id; | 2163 core.String id; |
| 3490 /** | |
| 3491 * Flag indicating whether or not a dataset is publicly viewable. If a dataset | |
| 3492 * is not public, it inherits viewing permissions from its project. | |
| 3493 */ | |
| 3494 core.bool isPublic; | |
| 3495 /** The dataset name. */ | 2164 /** The dataset name. */ |
| 3496 core.String name; | 2165 core.String name; |
| 3497 /** | 2166 /** The Google Developers Console project ID that this dataset belongs to. */ |
| 3498 * The Google Developers Console project number that this dataset belongs to. | 2167 core.String projectId; |
| 3499 */ | |
| 3500 core.String projectNumber; | |
| 3501 | 2168 |
| 3502 Dataset(); | 2169 Dataset(); |
| 3503 | 2170 |
| 3504 Dataset.fromJson(core.Map _json) { | 2171 Dataset.fromJson(core.Map _json) { |
| 3505 if (_json.containsKey("createTime")) { | 2172 if (_json.containsKey("createTime")) { |
| 3506 createTime = _json["createTime"]; | 2173 createTime = _json["createTime"]; |
| 3507 } | 2174 } |
| 3508 if (_json.containsKey("id")) { | 2175 if (_json.containsKey("id")) { |
| 3509 id = _json["id"]; | 2176 id = _json["id"]; |
| 3510 } | 2177 } |
| 3511 if (_json.containsKey("isPublic")) { | |
| 3512 isPublic = _json["isPublic"]; | |
| 3513 } | |
| 3514 if (_json.containsKey("name")) { | 2178 if (_json.containsKey("name")) { |
| 3515 name = _json["name"]; | 2179 name = _json["name"]; |
| 3516 } | 2180 } |
| 3517 if (_json.containsKey("projectNumber")) { | 2181 if (_json.containsKey("projectId")) { |
| 3518 projectNumber = _json["projectNumber"]; | 2182 projectId = _json["projectId"]; |
| 3519 } | 2183 } |
| 3520 } | 2184 } |
| 3521 | 2185 |
| 3522 core.Map toJson() { | 2186 core.Map toJson() { |
| 3523 var _json = new core.Map(); | 2187 var _json = new core.Map(); |
| 3524 if (createTime != null) { | 2188 if (createTime != null) { |
| 3525 _json["createTime"] = createTime; | 2189 _json["createTime"] = createTime; |
| 3526 } | 2190 } |
| 3527 if (id != null) { | 2191 if (id != null) { |
| 3528 _json["id"] = id; | 2192 _json["id"] = id; |
| 3529 } | 2193 } |
| 3530 if (isPublic != null) { | |
| 3531 _json["isPublic"] = isPublic; | |
| 3532 } | |
| 3533 if (name != null) { | 2194 if (name != null) { |
| 3534 _json["name"] = name; | 2195 _json["name"] = name; |
| 3535 } | 2196 } |
| 3536 if (projectNumber != null) { | 2197 if (projectId != null) { |
| 3537 _json["projectNumber"] = projectNumber; | 2198 _json["projectId"] = projectId; |
| 3538 } | 2199 } |
| 3539 return _json; | 2200 return _json; |
| 3540 } | 2201 } |
| 3541 } | 2202 } |
| 3542 | 2203 |
| 3543 /** The job creation request. */ | 2204 /** |
| 3544 class ExperimentalCreateJobRequest { | 2205 * A generic empty message that you can re-use to avoid defining duplicated |
| 2206 * empty messages in your APIs. A typical example is to use it as the request or |
| 2207 * the response type of an API method. For instance: service Foo { rpc |
| 2208 * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON |
| 2209 * representation for `Empty` is empty JSON object `{}`. |
| 2210 */ |
| 2211 class Empty { |
| 2212 |
| 2213 Empty(); |
| 2214 |
| 2215 Empty.fromJson(core.Map _json) { |
| 2216 } |
| 2217 |
| 2218 core.Map toJson() { |
| 2219 var _json = new core.Map(); |
| 2220 return _json; |
| 2221 } |
| 2222 } |
| 2223 |
| 2224 class Experiment { |
| 3545 /** | 2225 /** |
| 3546 * Specifies whether or not to run the alignment pipeline. Either align or | 2226 * The instrument model used as part of this experiment. This maps to |
| 3547 * callVariants must be set. | 2227 * sequencing technology in BAM. |
| 3548 */ | 2228 */ |
| 3549 core.bool align; | 2229 core.String instrumentModel; |
| 3550 /** | 2230 /** |
| 3551 * Specifies whether or not to run the variant calling pipeline. Either align | 2231 * The library used as part of this experiment. Note: This is not an actual ID |
| 3552 * or callVariants must be set. | 2232 * within this repository, but rather an identifier for a library which may be |
| 2233 * meaningful to some external system. |
| 3553 */ | 2234 */ |
| 3554 core.bool callVariants; | 2235 core.String libraryId; |
| 3555 /** | 2236 /** |
| 3556 * Specifies where to copy the results of certain pipelines. This should be in | 2237 * The platform unit used as part of this experiment e.g. |
| 3557 * the form of gs://bucket/path. | 2238 * flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the |
| 2239 * @RG PU field in the SAM spec. |
| 3558 */ | 2240 */ |
| 3559 core.String gcsOutputPath; | 2241 core.String platformUnit; |
| 3560 /** | 2242 /** The sequencing center used as part of this experiment. */ |
| 3561 * A list of Google Cloud Storage URIs of paired end .fastq files to operate | 2243 core.String sequencingCenter; |
| 3562 * upon. If specified, this represents the second file of each paired .fastq | |
| 3563 * file. The first file of each pair should be specified in sourceUris. | |
| 3564 */ | |
| 3565 core.List<core.String> pairedSourceUris; | |
| 3566 /** | |
| 3567 * Required. The Google Cloud Project ID with which to associate the request. | |
| 3568 */ | |
| 3569 core.String projectNumber; | |
| 3570 /** | |
| 3571 * A list of Google Cloud Storage URIs of data files to operate upon. These | |
| 3572 * can be .bam, interleaved .fastq, or paired .fastq. If specifying paired | |
| 3573 * .fastq files, the first of each pair of files should be listed here, and | |
| 3574 * the second of each pair should be listed in pairedSourceUris. | |
| 3575 */ | |
| 3576 core.List<core.String> sourceUris; | |
| 3577 | 2244 |
| 3578 ExperimentalCreateJobRequest(); | 2245 Experiment(); |
| 3579 | 2246 |
| 3580 ExperimentalCreateJobRequest.fromJson(core.Map _json) { | 2247 Experiment.fromJson(core.Map _json) { |
| 3581 if (_json.containsKey("align")) { | 2248 if (_json.containsKey("instrumentModel")) { |
| 3582 align = _json["align"]; | 2249 instrumentModel = _json["instrumentModel"]; |
| 3583 } | 2250 } |
| 3584 if (_json.containsKey("callVariants")) { | 2251 if (_json.containsKey("libraryId")) { |
| 3585 callVariants = _json["callVariants"]; | 2252 libraryId = _json["libraryId"]; |
| 3586 } | 2253 } |
| 3587 if (_json.containsKey("gcsOutputPath")) { | 2254 if (_json.containsKey("platformUnit")) { |
| 3588 gcsOutputPath = _json["gcsOutputPath"]; | 2255 platformUnit = _json["platformUnit"]; |
| 3589 } | 2256 } |
| 3590 if (_json.containsKey("pairedSourceUris")) { | 2257 if (_json.containsKey("sequencingCenter")) { |
| 3591 pairedSourceUris = _json["pairedSourceUris"]; | 2258 sequencingCenter = _json["sequencingCenter"]; |
| 3592 } | |
| 3593 if (_json.containsKey("projectNumber")) { | |
| 3594 projectNumber = _json["projectNumber"]; | |
| 3595 } | |
| 3596 if (_json.containsKey("sourceUris")) { | |
| 3597 sourceUris = _json["sourceUris"]; | |
| 3598 } | 2259 } |
| 3599 } | 2260 } |
| 3600 | 2261 |
| 3601 core.Map toJson() { | 2262 core.Map toJson() { |
| 3602 var _json = new core.Map(); | 2263 var _json = new core.Map(); |
| 3603 if (align != null) { | 2264 if (instrumentModel != null) { |
| 3604 _json["align"] = align; | 2265 _json["instrumentModel"] = instrumentModel; |
| 3605 } | 2266 } |
| 3606 if (callVariants != null) { | 2267 if (libraryId != null) { |
| 3607 _json["callVariants"] = callVariants; | 2268 _json["libraryId"] = libraryId; |
| 3608 } | 2269 } |
| 3609 if (gcsOutputPath != null) { | 2270 if (platformUnit != null) { |
| 3610 _json["gcsOutputPath"] = gcsOutputPath; | 2271 _json["platformUnit"] = platformUnit; |
| 3611 } | 2272 } |
| 3612 if (pairedSourceUris != null) { | 2273 if (sequencingCenter != null) { |
| 3613 _json["pairedSourceUris"] = pairedSourceUris; | 2274 _json["sequencingCenter"] = sequencingCenter; |
| 3614 } | |
| 3615 if (projectNumber != null) { | |
| 3616 _json["projectNumber"] = projectNumber; | |
| 3617 } | |
| 3618 if (sourceUris != null) { | |
| 3619 _json["sourceUris"] = sourceUris; | |
| 3620 } | |
| 3621 return _json; | |
| 3622 } | |
| 3623 } | |
| 3624 | |
| 3625 /** The job creation response. */ | |
| 3626 class ExperimentalCreateJobResponse { | |
| 3627 /** A job ID that can be used to get status information. */ | |
| 3628 core.String jobId; | |
| 3629 | |
| 3630 ExperimentalCreateJobResponse(); | |
| 3631 | |
| 3632 ExperimentalCreateJobResponse.fromJson(core.Map _json) { | |
| 3633 if (_json.containsKey("jobId")) { | |
| 3634 jobId = _json["jobId"]; | |
| 3635 } | |
| 3636 } | |
| 3637 | |
| 3638 core.Map toJson() { | |
| 3639 var _json = new core.Map(); | |
| 3640 if (jobId != null) { | |
| 3641 _json["jobId"] = jobId; | |
| 3642 } | 2275 } |
| 3643 return _json; | 2276 return _json; |
| 3644 } | 2277 } |
| 3645 } | 2278 } |
| 3646 | 2279 |
| 3647 /** The read group set export request. */ | 2280 /** The read group set export request. */ |
| 3648 class ExportReadGroupSetsRequest { | 2281 class ExportReadGroupSetRequest { |
| 3649 /** | 2282 /** |
| 3650 * Required. A Google Cloud Storage URI for the exported BAM file. The | 2283 * Required. A Google Cloud Storage URI for the exported BAM file. The |
| 3651 * currently authenticated user must have write access to the new file. An | 2284 * currently authenticated user must have write access to the new file. An |
| 3652 * error will be returned if the URI already contains data. | 2285 * error will be returned if the URI already contains data. |
| 3653 */ | 2286 */ |
| 3654 core.String exportUri; | 2287 core.String exportUri; |
| 3655 /** | 2288 /** |
| 3656 * Required. The Google Developers Console project number that owns this | 2289 * Required. The Google Developers Console project ID that owns this export. |
| 3657 * export. | |
| 3658 */ | 2290 */ |
| 3659 core.String projectNumber; | 2291 core.String projectId; |
| 3660 /** Required. The IDs of the read group sets to export. */ | |
| 3661 core.List<core.String> readGroupSetIds; | |
| 3662 /** | 2292 /** |
| 3663 * The reference names to export. If this is not specified, all reference | 2293 * The reference names to export. If this is not specified, all reference |
| 3664 * sequences, including unmapped reads, are exported. Use * to export only | 2294 * sequences, including unmapped reads, are exported. Use `*` to export only |
| 3665 * unmapped reads. | 2295 * unmapped reads. |
| 3666 */ | 2296 */ |
| 3667 core.List<core.String> referenceNames; | 2297 core.List<core.String> referenceNames; |
| 3668 | 2298 |
| 3669 ExportReadGroupSetsRequest(); | 2299 ExportReadGroupSetRequest(); |
| 3670 | 2300 |
| 3671 ExportReadGroupSetsRequest.fromJson(core.Map _json) { | 2301 ExportReadGroupSetRequest.fromJson(core.Map _json) { |
| 3672 if (_json.containsKey("exportUri")) { | 2302 if (_json.containsKey("exportUri")) { |
| 3673 exportUri = _json["exportUri"]; | 2303 exportUri = _json["exportUri"]; |
| 3674 } | 2304 } |
| 3675 if (_json.containsKey("projectNumber")) { | 2305 if (_json.containsKey("projectId")) { |
| 3676 projectNumber = _json["projectNumber"]; | 2306 projectId = _json["projectId"]; |
| 3677 } | |
| 3678 if (_json.containsKey("readGroupSetIds")) { | |
| 3679 readGroupSetIds = _json["readGroupSetIds"]; | |
| 3680 } | 2307 } |
| 3681 if (_json.containsKey("referenceNames")) { | 2308 if (_json.containsKey("referenceNames")) { |
| 3682 referenceNames = _json["referenceNames"]; | 2309 referenceNames = _json["referenceNames"]; |
| 3683 } | 2310 } |
| 3684 } | 2311 } |
| 3685 | 2312 |
| 3686 core.Map toJson() { | 2313 core.Map toJson() { |
| 3687 var _json = new core.Map(); | 2314 var _json = new core.Map(); |
| 3688 if (exportUri != null) { | 2315 if (exportUri != null) { |
| 3689 _json["exportUri"] = exportUri; | 2316 _json["exportUri"] = exportUri; |
| 3690 } | 2317 } |
| 3691 if (projectNumber != null) { | 2318 if (projectId != null) { |
| 3692 _json["projectNumber"] = projectNumber; | 2319 _json["projectId"] = projectId; |
| 3693 } | |
| 3694 if (readGroupSetIds != null) { | |
| 3695 _json["readGroupSetIds"] = readGroupSetIds; | |
| 3696 } | 2320 } |
| 3697 if (referenceNames != null) { | 2321 if (referenceNames != null) { |
| 3698 _json["referenceNames"] = referenceNames; | 2322 _json["referenceNames"] = referenceNames; |
| 3699 } | 2323 } |
| 3700 return _json; | 2324 return _json; |
| 3701 } | 2325 } |
| 3702 } | 2326 } |
| 3703 | 2327 |
| 3704 /** The read group set export response. */ | |
| 3705 class ExportReadGroupSetsResponse { | |
| 3706 /** A job ID that can be used to get status information. */ | |
| 3707 core.String jobId; | |
| 3708 | |
| 3709 ExportReadGroupSetsResponse(); | |
| 3710 | |
| 3711 ExportReadGroupSetsResponse.fromJson(core.Map _json) { | |
| 3712 if (_json.containsKey("jobId")) { | |
| 3713 jobId = _json["jobId"]; | |
| 3714 } | |
| 3715 } | |
| 3716 | |
| 3717 core.Map toJson() { | |
| 3718 var _json = new core.Map(); | |
| 3719 if (jobId != null) { | |
| 3720 _json["jobId"] = jobId; | |
| 3721 } | |
| 3722 return _json; | |
| 3723 } | |
| 3724 } | |
| 3725 | |
| 3726 /** The variant data export request. */ | 2328 /** The variant data export request. */ |
| 3727 class ExportVariantSetRequest { | 2329 class ExportVariantSetRequest { |
| 3728 /** | 2330 /** |
| 3729 * Required. The BigQuery dataset to export data to. This dataset must already | 2331 * Required. The BigQuery dataset to export data to. This dataset must already |
| 3730 * exist. Note that this is distinct from the Genomics concept of "dataset". | 2332 * exist. Note that this is distinct from the Genomics concept of "dataset". |
| 3731 */ | 2333 */ |
| 3732 core.String bigqueryDataset; | 2334 core.String bigqueryDataset; |
| 3733 /** | 2335 /** |
| 3734 * Required. The BigQuery table to export data to. If the table doesn't exist, | 2336 * Required. The BigQuery table to export data to. If the table doesn't exist, |
| 3735 * it will be created. If it already exists, it will be overwritten. | 2337 * it will be created. If it already exists, it will be overwritten. |
| 3736 */ | 2338 */ |
| 3737 core.String bigqueryTable; | 2339 core.String bigqueryTable; |
| 3738 /** | 2340 /** |
| 3739 * If provided, only variant call information from the specified call sets | 2341 * If provided, only variant call information from the specified call sets |
| 3740 * will be exported. By default all variant calls are exported. | 2342 * will be exported. By default all variant calls are exported. |
| 3741 */ | 2343 */ |
| 3742 core.List<core.String> callSetIds; | 2344 core.List<core.String> callSetIds; |
| 3743 /** | 2345 /** |
| 3744 * The format for the exported data. | 2346 * The format for the exported data. |
| 3745 * Possible string values are: | 2347 * Possible string values are: |
| 3746 * - "BIGQUERY" | 2348 * - "FORMAT_UNSPECIFIED" : A FORMAT_UNSPECIFIED. |
| 2349 * - "FORMAT_BIGQUERY" : A FORMAT_BIGQUERY. |
| 3747 */ | 2350 */ |
| 3748 core.String format; | 2351 core.String format; |
| 3749 /** | 2352 /** |
| 3750 * Required. The Google Cloud project number that owns the destination | 2353 * Required. The Google Cloud project ID that owns the destination BigQuery |
| 3751 * BigQuery dataset. The caller must have WRITE access to this project. This | 2354 * dataset. The caller must have WRITE access to this project. This project |
| 3752 * project will also own the resulting export job. | 2355 * will also own the resulting export job. |
| 3753 */ | 2356 */ |
| 3754 core.String projectNumber; | 2357 core.String projectId; |
| 3755 | 2358 |
| 3756 ExportVariantSetRequest(); | 2359 ExportVariantSetRequest(); |
| 3757 | 2360 |
| 3758 ExportVariantSetRequest.fromJson(core.Map _json) { | 2361 ExportVariantSetRequest.fromJson(core.Map _json) { |
| 3759 if (_json.containsKey("bigqueryDataset")) { | 2362 if (_json.containsKey("bigqueryDataset")) { |
| 3760 bigqueryDataset = _json["bigqueryDataset"]; | 2363 bigqueryDataset = _json["bigqueryDataset"]; |
| 3761 } | 2364 } |
| 3762 if (_json.containsKey("bigqueryTable")) { | 2365 if (_json.containsKey("bigqueryTable")) { |
| 3763 bigqueryTable = _json["bigqueryTable"]; | 2366 bigqueryTable = _json["bigqueryTable"]; |
| 3764 } | 2367 } |
| 3765 if (_json.containsKey("callSetIds")) { | 2368 if (_json.containsKey("callSetIds")) { |
| 3766 callSetIds = _json["callSetIds"]; | 2369 callSetIds = _json["callSetIds"]; |
| 3767 } | 2370 } |
| 3768 if (_json.containsKey("format")) { | 2371 if (_json.containsKey("format")) { |
| 3769 format = _json["format"]; | 2372 format = _json["format"]; |
| 3770 } | 2373 } |
| 3771 if (_json.containsKey("projectNumber")) { | 2374 if (_json.containsKey("projectId")) { |
| 3772 projectNumber = _json["projectNumber"]; | 2375 projectId = _json["projectId"]; |
| 3773 } | 2376 } |
| 3774 } | 2377 } |
| 3775 | 2378 |
| 3776 core.Map toJson() { | 2379 core.Map toJson() { |
| 3777 var _json = new core.Map(); | 2380 var _json = new core.Map(); |
| 3778 if (bigqueryDataset != null) { | 2381 if (bigqueryDataset != null) { |
| 3779 _json["bigqueryDataset"] = bigqueryDataset; | 2382 _json["bigqueryDataset"] = bigqueryDataset; |
| 3780 } | 2383 } |
| 3781 if (bigqueryTable != null) { | 2384 if (bigqueryTable != null) { |
| 3782 _json["bigqueryTable"] = bigqueryTable; | 2385 _json["bigqueryTable"] = bigqueryTable; |
| 3783 } | 2386 } |
| 3784 if (callSetIds != null) { | 2387 if (callSetIds != null) { |
| 3785 _json["callSetIds"] = callSetIds; | 2388 _json["callSetIds"] = callSetIds; |
| 3786 } | 2389 } |
| 3787 if (format != null) { | 2390 if (format != null) { |
| 3788 _json["format"] = format; | 2391 _json["format"] = format; |
| 3789 } | 2392 } |
| 3790 if (projectNumber != null) { | 2393 if (projectId != null) { |
| 3791 _json["projectNumber"] = projectNumber; | 2394 _json["projectId"] = projectId; |
| 3792 } | 2395 } |
| 3793 return _json; | 2396 return _json; |
| 3794 } | 2397 } |
| 3795 } | |
| 3796 | |
| 3797 /** The variant data export response. */ | |
| 3798 class ExportVariantSetResponse { | |
| 3799 /** A job ID that can be used to get status information. */ | |
| 3800 core.String jobId; | |
| 3801 | |
| 3802 ExportVariantSetResponse(); | |
| 3803 | |
| 3804 ExportVariantSetResponse.fromJson(core.Map _json) { | |
| 3805 if (_json.containsKey("jobId")) { | |
| 3806 jobId = _json["jobId"]; | |
| 3807 } | |
| 3808 } | |
| 3809 | |
| 3810 core.Map toJson() { | |
| 3811 var _json = new core.Map(); | |
| 3812 if (jobId != null) { | |
| 3813 _json["jobId"] = jobId; | |
| 3814 } | |
| 3815 return _json; | |
| 3816 } | |
| 3817 } | |
| 3818 | |
| 3819 class ExternalId { | |
| 3820 /** The id used by the source of this data. */ | |
| 3821 core.String id; | |
| 3822 /** The name of the source of this data. */ | |
| 3823 core.String sourceName; | |
| 3824 | |
| 3825 ExternalId(); | |
| 3826 | |
| 3827 ExternalId.fromJson(core.Map _json) { | |
| 3828 if (_json.containsKey("id")) { | |
| 3829 id = _json["id"]; | |
| 3830 } | |
| 3831 if (_json.containsKey("sourceName")) { | |
| 3832 sourceName = _json["sourceName"]; | |
| 3833 } | |
| 3834 } | |
| 3835 | |
| 3836 core.Map toJson() { | |
| 3837 var _json = new core.Map(); | |
| 3838 if (id != null) { | |
| 3839 _json["id"] = id; | |
| 3840 } | |
| 3841 if (sourceName != null) { | |
| 3842 _json["sourceName"] = sourceName; | |
| 3843 } | |
| 3844 return _json; | |
| 3845 } | |
| 3846 } | |
| 3847 | |
| 3848 class FastqMetadata { | |
| 3849 /** Optionally specifies the library name for alignment from FASTQ. */ | |
| 3850 core.String libraryName; | |
| 3851 /** | |
| 3852 * Optionally specifies the platform name for alignment from FASTQ. For | |
| 3853 * example: CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, PACBIO. | |
| 3854 */ | |
| 3855 core.String platformName; | |
| 3856 /** | |
| 3857 * Optionally specifies the platform unit for alignment from FASTQ. For | |
| 3858 * example: flowcell-barcode.lane for Illumina or slide for SOLID. | |
| 3859 */ | |
| 3860 core.String platformUnit; | |
| 3861 /** Optionally specifies the read group name for alignment from FASTQ. */ | |
| 3862 core.String readGroupName; | |
| 3863 /** Optionally specifies the sample name for alignment from FASTQ. */ | |
| 3864 core.String sampleName; | |
| 3865 | |
| 3866 FastqMetadata(); | |
| 3867 | |
| 3868 FastqMetadata.fromJson(core.Map _json) { | |
| 3869 if (_json.containsKey("libraryName")) { | |
| 3870 libraryName = _json["libraryName"]; | |
| 3871 } | |
| 3872 if (_json.containsKey("platformName")) { | |
| 3873 platformName = _json["platformName"]; | |
| 3874 } | |
| 3875 if (_json.containsKey("platformUnit")) { | |
| 3876 platformUnit = _json["platformUnit"]; | |
| 3877 } | |
| 3878 if (_json.containsKey("readGroupName")) { | |
| 3879 readGroupName = _json["readGroupName"]; | |
| 3880 } | |
| 3881 if (_json.containsKey("sampleName")) { | |
| 3882 sampleName = _json["sampleName"]; | |
| 3883 } | |
| 3884 } | |
| 3885 | |
| 3886 core.Map toJson() { | |
| 3887 var _json = new core.Map(); | |
| 3888 if (libraryName != null) { | |
| 3889 _json["libraryName"] = libraryName; | |
| 3890 } | |
| 3891 if (platformName != null) { | |
| 3892 _json["platformName"] = platformName; | |
| 3893 } | |
| 3894 if (platformUnit != null) { | |
| 3895 _json["platformUnit"] = platformUnit; | |
| 3896 } | |
| 3897 if (readGroupName != null) { | |
| 3898 _json["readGroupName"] = readGroupName; | |
| 3899 } | |
| 3900 if (sampleName != null) { | |
| 3901 _json["sampleName"] = sampleName; | |
| 3902 } | |
| 3903 return _json; | |
| 3904 } | |
| 3905 } | 2398 } |
| 3906 | 2399 |
| 3907 /** The read group set import request. */ | 2400 /** The read group set import request. */ |
| 3908 class ImportReadGroupSetsRequest { | 2401 class ImportReadGroupSetsRequest { |
| 3909 /** | 2402 /** |
| 3910 * Required. The ID of the dataset these read group sets will belong to. The | 2403 * Required. The ID of the dataset these read group sets will belong to. The |
| 3911 * caller must have WRITE permissions to this dataset. | 2404 * caller must have WRITE permissions to this dataset. |
| 3912 */ | 2405 */ |
| 3913 core.String datasetId; | 2406 core.String datasetId; |
| 3914 /** | 2407 /** |
| 3915 * The partition strategy describes how read groups are partitioned into read | 2408 * The partition strategy describes how read groups are partitioned into read |
| 3916 * group sets. | 2409 * group sets. |
| 3917 * Possible string values are: | 2410 * Possible string values are: |
| 3918 * - "MERGE_ALL" | 2411 * - "PARTITION_STRATEGY_UNSPECIFIED" : A PARTITION_STRATEGY_UNSPECIFIED. |
| 3919 * - "PER_FILE_PER_SAMPLE" | 2412 * - "PER_FILE_PER_SAMPLE" : A PER_FILE_PER_SAMPLE. |
| 2413 * - "MERGE_ALL" : A MERGE_ALL. |
| 3920 */ | 2414 */ |
| 3921 core.String partitionStrategy; | 2415 core.String partitionStrategy; |
| 3922 /** | 2416 /** |
| 3923 * The reference set to which the imported read group sets are aligned to, if | 2417 * The reference set to which the imported read group sets are aligned to, if |
| 3924 * any. The reference names of this reference set must be a superset of those | 2418 * any. The reference names of this reference set must be a superset of those |
| 3925 * found in the imported file headers. If no reference set id is provided, a | 2419 * found in the imported file headers. If no reference set id is provided, a |
| 3926 * best effort is made to associate with a matching reference set. | 2420 * best effort is made to associate with a matching reference set. |
| 3927 */ | 2421 */ |
| 3928 core.String referenceSetId; | 2422 core.String referenceSetId; |
| 3929 /** A list of URIs pointing at BAM files in Google Cloud Storage. */ | 2423 /** A list of URIs pointing at BAM files in Google Cloud Storage. */ |
| (...skipping 29 matching lines...) Expand all Loading... |
| 3959 } | 2453 } |
| 3960 if (sourceUris != null) { | 2454 if (sourceUris != null) { |
| 3961 _json["sourceUris"] = sourceUris; | 2455 _json["sourceUris"] = sourceUris; |
| 3962 } | 2456 } |
| 3963 return _json; | 2457 return _json; |
| 3964 } | 2458 } |
| 3965 } | 2459 } |
| 3966 | 2460 |
| 3967 /** The read group set import response. */ | 2461 /** The read group set import response. */ |
| 3968 class ImportReadGroupSetsResponse { | 2462 class ImportReadGroupSetsResponse { |
| 3969 /** A job ID that can be used to get status information. */ | 2463 /** IDs of the read group sets that were created. */ |
| 3970 core.String jobId; | 2464 core.List<core.String> readGroupSetIds; |
| 3971 | 2465 |
| 3972 ImportReadGroupSetsResponse(); | 2466 ImportReadGroupSetsResponse(); |
| 3973 | 2467 |
| 3974 ImportReadGroupSetsResponse.fromJson(core.Map _json) { | 2468 ImportReadGroupSetsResponse.fromJson(core.Map _json) { |
| 3975 if (_json.containsKey("jobId")) { | 2469 if (_json.containsKey("readGroupSetIds")) { |
| 3976 jobId = _json["jobId"]; | 2470 readGroupSetIds = _json["readGroupSetIds"]; |
| 3977 } | 2471 } |
| 3978 } | 2472 } |
| 3979 | 2473 |
| 3980 core.Map toJson() { | 2474 core.Map toJson() { |
| 3981 var _json = new core.Map(); | 2475 var _json = new core.Map(); |
| 3982 if (jobId != null) { | 2476 if (readGroupSetIds != null) { |
| 3983 _json["jobId"] = jobId; | 2477 _json["readGroupSetIds"] = readGroupSetIds; |
| 3984 } | 2478 } |
| 3985 return _json; | 2479 return _json; |
| 3986 } | 2480 } |
| 3987 } | 2481 } |
| 3988 | 2482 |
| 3989 /** The variant data import request. */ | 2483 /** The variant data import request. */ |
| 3990 class ImportVariantsRequest { | 2484 class ImportVariantsRequest { |
| 3991 /** | 2485 /** |
| 3992 * The format of the variant data being imported. If unspecified, defaults to | 2486 * The format of the variant data being imported. If unspecified, defaults to |
| 3993 * to "VCF". | 2487 * to `VCF`. |
| 3994 * Possible string values are: | 2488 * Possible string values are: |
| 3995 * - "COMPLETE_GENOMICS" | 2489 * - "FORMAT_UNSPECIFIED" : A FORMAT_UNSPECIFIED. |
| 3996 * - "VCF" | 2490 * - "FORMAT_VCF" : A FORMAT_VCF. |
| 2491 * - "FORMAT_COMPLETE_GENOMICS" : A FORMAT_COMPLETE_GENOMICS. |
| 3997 */ | 2492 */ |
| 3998 core.String format; | 2493 core.String format; |
| 3999 /** | 2494 /** |
| 4000 * Convert reference names to the canonical representation. hg19 haploytypes | 2495 * Convert reference names to the canonical representation. hg19 haploytypes |
| 4001 * (those reference names containing "_hap") are not modified in any way. All | 2496 * (those reference names containing "_hap") are not modified in any way. All |
| 4002 * other reference names are modified according to the following rules: The | 2497 * other reference names are modified according to the following rules: The |
| 4003 * reference name is capitalized. The "chr" prefix is dropped for all | 2498 * reference name is capitalized. The "chr" prefix is dropped for all |
| 4004 * autosomes and sex chromsomes. For example "chr17" becomes "17" and "chrX" | 2499 * autosomes and sex chromsomes. For example "chr17" becomes "17" and "chrX" |
| 4005 * becomes "X". All mitochondrial chromosomes ("chrM", "chrMT", etc) become | 2500 * becomes "X". All mitochondrial chromosomes ("chrM", "chrMT", etc) become |
| 4006 * "MT". | 2501 * "MT". |
| 4007 */ | 2502 */ |
| 4008 core.bool normalizeReferenceNames; | 2503 core.bool normalizeReferenceNames; |
| 4009 /** | 2504 /** |
| 4010 * A list of URIs referencing variant files in Google Cloud Storage. URIs can | 2505 * A list of URIs referencing variant files in Google Cloud Storage. URIs can |
| 4011 * include wildcards as described here. Note that recursive wildcards ('**') | 2506 * include wildcards [as described |
| 4012 * are not supported. | 2507 * here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). |
| 2508 * Note that recursive wildcards ('**') are not supported. |
| 4013 */ | 2509 */ |
| 4014 core.List<core.String> sourceUris; | 2510 core.List<core.String> sourceUris; |
| 2511 /** Required. The variant set to which variant data should be imported. */ |
| 2512 core.String variantSetId; |
| 4015 | 2513 |
| 4016 ImportVariantsRequest(); | 2514 ImportVariantsRequest(); |
| 4017 | 2515 |
| 4018 ImportVariantsRequest.fromJson(core.Map _json) { | 2516 ImportVariantsRequest.fromJson(core.Map _json) { |
| 4019 if (_json.containsKey("format")) { | 2517 if (_json.containsKey("format")) { |
| 4020 format = _json["format"]; | 2518 format = _json["format"]; |
| 4021 } | 2519 } |
| 4022 if (_json.containsKey("normalizeReferenceNames")) { | 2520 if (_json.containsKey("normalizeReferenceNames")) { |
| 4023 normalizeReferenceNames = _json["normalizeReferenceNames"]; | 2521 normalizeReferenceNames = _json["normalizeReferenceNames"]; |
| 4024 } | 2522 } |
| 4025 if (_json.containsKey("sourceUris")) { | 2523 if (_json.containsKey("sourceUris")) { |
| 4026 sourceUris = _json["sourceUris"]; | 2524 sourceUris = _json["sourceUris"]; |
| 4027 } | 2525 } |
| 2526 if (_json.containsKey("variantSetId")) { |
| 2527 variantSetId = _json["variantSetId"]; |
| 2528 } |
| 4028 } | 2529 } |
| 4029 | 2530 |
| 4030 core.Map toJson() { | 2531 core.Map toJson() { |
| 4031 var _json = new core.Map(); | 2532 var _json = new core.Map(); |
| 4032 if (format != null) { | 2533 if (format != null) { |
| 4033 _json["format"] = format; | 2534 _json["format"] = format; |
| 4034 } | 2535 } |
| 4035 if (normalizeReferenceNames != null) { | 2536 if (normalizeReferenceNames != null) { |
| 4036 _json["normalizeReferenceNames"] = normalizeReferenceNames; | 2537 _json["normalizeReferenceNames"] = normalizeReferenceNames; |
| 4037 } | 2538 } |
| 4038 if (sourceUris != null) { | 2539 if (sourceUris != null) { |
| 4039 _json["sourceUris"] = sourceUris; | 2540 _json["sourceUris"] = sourceUris; |
| 4040 } | 2541 } |
| 2542 if (variantSetId != null) { |
| 2543 _json["variantSetId"] = variantSetId; |
| 2544 } |
| 4041 return _json; | 2545 return _json; |
| 4042 } | 2546 } |
| 4043 } | 2547 } |
| 4044 | 2548 |
| 4045 /** The variant data import response. */ | 2549 /** The variant data import response. */ |
| 4046 class ImportVariantsResponse { | 2550 class ImportVariantsResponse { |
| 4047 /** A job ID that can be used to get status information. */ | 2551 /** IDs of the call sets that were created. */ |
| 4048 core.String jobId; | 2552 core.List<core.String> callSetIds; |
| 4049 | 2553 |
| 4050 ImportVariantsResponse(); | 2554 ImportVariantsResponse(); |
| 4051 | 2555 |
| 4052 ImportVariantsResponse.fromJson(core.Map _json) { | 2556 ImportVariantsResponse.fromJson(core.Map _json) { |
| 4053 if (_json.containsKey("jobId")) { | 2557 if (_json.containsKey("callSetIds")) { |
| 4054 jobId = _json["jobId"]; | 2558 callSetIds = _json["callSetIds"]; |
| 4055 } | 2559 } |
| 4056 } | 2560 } |
| 4057 | 2561 |
| 4058 core.Map toJson() { | 2562 core.Map toJson() { |
| 4059 var _json = new core.Map(); | 2563 var _json = new core.Map(); |
| 4060 if (jobId != null) { | 2564 if (callSetIds != null) { |
| 4061 _json["jobId"] = jobId; | 2565 _json["callSetIds"] = callSetIds; |
| 4062 } | 2566 } |
| 4063 return _json; | 2567 return _json; |
| 4064 } | 2568 } |
| 4065 } | |
| 4066 | |
| 4067 /** | |
| 4068 * Wrapper message for `int32`. | |
| 4069 * | |
| 4070 * The JSON representation for `Int32Value` is JSON number. | |
| 4071 */ | |
| 4072 class Int32Value { | |
| 4073 /** The int32 value. */ | |
| 4074 core.int value; | |
| 4075 | |
| 4076 Int32Value(); | |
| 4077 | |
| 4078 Int32Value.fromJson(core.Map _json) { | |
| 4079 if (_json.containsKey("value")) { | |
| 4080 value = _json["value"]; | |
| 4081 } | |
| 4082 } | |
| 4083 | |
| 4084 core.Map toJson() { | |
| 4085 var _json = new core.Map(); | |
| 4086 if (value != null) { | |
| 4087 _json["value"] = value; | |
| 4088 } | |
| 4089 return _json; | |
| 4090 } | |
| 4091 } | |
| 4092 | |
| 4093 /** Describes an interleaved FASTQ file source for alignment. */ | |
| 4094 class InterleavedFastqSource { | |
| 4095 /** | |
| 4096 * Optionally specifies the metadata to be associated with the final aligned | |
| 4097 * read group set. | |
| 4098 */ | |
| 4099 FastqMetadata metadata; | |
| 4100 /** | |
| 4101 * A list of URIs pointing at interleaved FASTQ files in Google Cloud Storage | |
| 4102 * which will be aligned. The caller must have READ permissions for these | |
| 4103 * files. | |
| 4104 */ | |
| 4105 core.List<core.String> sourceUris; | |
| 4106 | |
| 4107 InterleavedFastqSource(); | |
| 4108 | |
| 4109 InterleavedFastqSource.fromJson(core.Map _json) { | |
| 4110 if (_json.containsKey("metadata")) { | |
| 4111 metadata = new FastqMetadata.fromJson(_json["metadata"]); | |
| 4112 } | |
| 4113 if (_json.containsKey("sourceUris")) { | |
| 4114 sourceUris = _json["sourceUris"]; | |
| 4115 } | |
| 4116 } | |
| 4117 | |
| 4118 core.Map toJson() { | |
| 4119 var _json = new core.Map(); | |
| 4120 if (metadata != null) { | |
| 4121 _json["metadata"] = (metadata).toJson(); | |
| 4122 } | |
| 4123 if (sourceUris != null) { | |
| 4124 _json["sourceUris"] = sourceUris; | |
| 4125 } | |
| 4126 return _json; | |
| 4127 } | |
| 4128 } | |
| 4129 | |
| 4130 /** | |
| 4131 * A Job represents an ongoing process that can be monitored for status | |
| 4132 * information. | |
| 4133 */ | |
| 4134 class Job { | |
| 4135 /** The date this job was created, in milliseconds from the epoch. */ | |
| 4136 core.String created; | |
| 4137 /** A more detailed description of this job's current status. */ | |
| 4138 core.String detailedStatus; | |
| 4139 /** Any errors that occurred during processing. */ | |
| 4140 core.List<core.String> errors; | |
| 4141 /** The job ID. */ | |
| 4142 core.String id; | |
| 4143 /** | |
| 4144 * If this Job represents an import, this field will contain the IDs of the | |
| 4145 * objects that were successfully imported. | |
| 4146 */ | |
| 4147 core.List<core.String> importedIds; | |
| 4148 /** | |
| 4149 * The Google Developers Console project number to which this job belongs. | |
| 4150 */ | |
| 4151 core.String projectNumber; | |
| 4152 /** A summarized representation of the original service request. */ | |
| 4153 JobRequest request; | |
| 4154 /** | |
| 4155 * The status of this job. | |
| 4156 * Possible string values are: | |
| 4157 * - "CANCELED" | |
| 4158 * - "FAILURE" | |
| 4159 * - "NEW" | |
| 4160 * - "PENDING" | |
| 4161 * - "RUNNING" | |
| 4162 * - "SUCCESS" | |
| 4163 * - "UNKNOWN_STATUS" | |
| 4164 */ | |
| 4165 core.String status; | |
| 4166 /** Any warnings that occurred during processing. */ | |
| 4167 core.List<core.String> warnings; | |
| 4168 | |
| 4169 Job(); | |
| 4170 | |
| 4171 Job.fromJson(core.Map _json) { | |
| 4172 if (_json.containsKey("created")) { | |
| 4173 created = _json["created"]; | |
| 4174 } | |
| 4175 if (_json.containsKey("detailedStatus")) { | |
| 4176 detailedStatus = _json["detailedStatus"]; | |
| 4177 } | |
| 4178 if (_json.containsKey("errors")) { | |
| 4179 errors = _json["errors"]; | |
| 4180 } | |
| 4181 if (_json.containsKey("id")) { | |
| 4182 id = _json["id"]; | |
| 4183 } | |
| 4184 if (_json.containsKey("importedIds")) { | |
| 4185 importedIds = _json["importedIds"]; | |
| 4186 } | |
| 4187 if (_json.containsKey("projectNumber")) { | |
| 4188 projectNumber = _json["projectNumber"]; | |
| 4189 } | |
| 4190 if (_json.containsKey("request")) { | |
| 4191 request = new JobRequest.fromJson(_json["request"]); | |
| 4192 } | |
| 4193 if (_json.containsKey("status")) { | |
| 4194 status = _json["status"]; | |
| 4195 } | |
| 4196 if (_json.containsKey("warnings")) { | |
| 4197 warnings = _json["warnings"]; | |
| 4198 } | |
| 4199 } | |
| 4200 | |
| 4201 core.Map toJson() { | |
| 4202 var _json = new core.Map(); | |
| 4203 if (created != null) { | |
| 4204 _json["created"] = created; | |
| 4205 } | |
| 4206 if (detailedStatus != null) { | |
| 4207 _json["detailedStatus"] = detailedStatus; | |
| 4208 } | |
| 4209 if (errors != null) { | |
| 4210 _json["errors"] = errors; | |
| 4211 } | |
| 4212 if (id != null) { | |
| 4213 _json["id"] = id; | |
| 4214 } | |
| 4215 if (importedIds != null) { | |
| 4216 _json["importedIds"] = importedIds; | |
| 4217 } | |
| 4218 if (projectNumber != null) { | |
| 4219 _json["projectNumber"] = projectNumber; | |
| 4220 } | |
| 4221 if (request != null) { | |
| 4222 _json["request"] = (request).toJson(); | |
| 4223 } | |
| 4224 if (status != null) { | |
| 4225 _json["status"] = status; | |
| 4226 } | |
| 4227 if (warnings != null) { | |
| 4228 _json["warnings"] = warnings; | |
| 4229 } | |
| 4230 return _json; | |
| 4231 } | |
| 4232 } | |
| 4233 | |
| 4234 /** A summary representation of the service request that spawned the job. */ | |
| 4235 class JobRequest { | |
| 4236 /** | |
| 4237 * The data destination of the request, for example, a Google BigQuery Table | |
| 4238 * or Dataset ID. | |
| 4239 */ | |
| 4240 core.List<core.String> destination; | |
| 4241 /** | |
| 4242 * The data source of the request, for example, a Google Cloud Storage object | |
| 4243 * path or Readset ID. | |
| 4244 */ | |
| 4245 core.List<core.String> source; | |
| 4246 /** | |
| 4247 * The original request type. | |
| 4248 * Possible string values are: | |
| 4249 * - "ALIGN_READSETS" | |
| 4250 * - "CALL_READSETS" | |
| 4251 * - "EXPERIMENTAL_CREATE_JOB" | |
| 4252 * - "EXPORT_READSETS" | |
| 4253 * - "EXPORT_VARIANTS" | |
| 4254 * - "IMPORT_READSETS" | |
| 4255 * - "IMPORT_VARIANTS" | |
| 4256 * - "UNKNOWN_TYPE" | |
| 4257 */ | |
| 4258 core.String type; | |
| 4259 | |
| 4260 JobRequest(); | |
| 4261 | |
| 4262 JobRequest.fromJson(core.Map _json) { | |
| 4263 if (_json.containsKey("destination")) { | |
| 4264 destination = _json["destination"]; | |
| 4265 } | |
| 4266 if (_json.containsKey("source")) { | |
| 4267 source = _json["source"]; | |
| 4268 } | |
| 4269 if (_json.containsKey("type")) { | |
| 4270 type = _json["type"]; | |
| 4271 } | |
| 4272 } | |
| 4273 | |
| 4274 core.Map toJson() { | |
| 4275 var _json = new core.Map(); | |
| 4276 if (destination != null) { | |
| 4277 _json["destination"] = destination; | |
| 4278 } | |
| 4279 if (source != null) { | |
| 4280 _json["source"] = source; | |
| 4281 } | |
| 4282 if (type != null) { | |
| 4283 _json["type"] = type; | |
| 4284 } | |
| 4285 return _json; | |
| 4286 } | |
| 4287 } | |
| 4288 | |
| 4289 /** Used to hold basic key value information. */ | |
| 4290 class KeyValue { | |
| 4291 /** A string which maps to an array of values. */ | |
| 4292 core.String key; | |
| 4293 /** The string values. */ | |
| 4294 core.List<core.String> value; | |
| 4295 | |
| 4296 KeyValue(); | |
| 4297 | |
| 4298 KeyValue.fromJson(core.Map _json) { | |
| 4299 if (_json.containsKey("key")) { | |
| 4300 key = _json["key"]; | |
| 4301 } | |
| 4302 if (_json.containsKey("value")) { | |
| 4303 value = _json["value"]; | |
| 4304 } | |
| 4305 } | |
| 4306 | |
| 4307 core.Map toJson() { | |
| 4308 var _json = new core.Map(); | |
| 4309 if (key != null) { | |
| 4310 _json["key"] = key; | |
| 4311 } | |
| 4312 if (value != null) { | |
| 4313 _json["value"] = value; | |
| 4314 } | |
| 4315 return _json; | |
| 4316 } | |
| 4317 } | 2569 } |
| 4318 | 2570 |
| 4319 /** | 2571 /** |
| 4320 * A linear alignment can be represented by one CIGAR string. Describes the | 2572 * A linear alignment can be represented by one CIGAR string. Describes the |
| 4321 * mapped position and local alignment of the read to the reference. | 2573 * mapped position and local alignment of the read to the reference. |
| 4322 */ | 2574 */ |
| 4323 class LinearAlignment { | 2575 class LinearAlignment { |
| 4324 /** | 2576 /** |
| 4325 * Represents the local alignment of this sequence (alignment matches, indels, | 2577 * Represents the local alignment of this sequence (alignment matches, indels, |
| 4326 * etc) against the reference. | 2578 * etc) against the reference. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4364 } | 2616 } |
| 4365 | 2617 |
| 4366 class ListBasesResponse { | 2618 class ListBasesResponse { |
| 4367 /** | 2619 /** |
| 4368 * The continuation token, which is used to page through large result sets. | 2620 * The continuation token, which is used to page through large result sets. |
| 4369 * Provide this value in a subsequent request to return the next page of | 2621 * Provide this value in a subsequent request to return the next page of |
| 4370 * results. This field will be empty if there aren't any additional results. | 2622 * results. This field will be empty if there aren't any additional results. |
| 4371 */ | 2623 */ |
| 4372 core.String nextPageToken; | 2624 core.String nextPageToken; |
| 4373 /** | 2625 /** |
| 4374 * The offset position (0-based) of the given sequence from the start of this | 2626 * The offset position (0-based) of the given `sequence` from the start of |
| 4375 * Reference. This value will differ for each page in a paginated request. | 2627 * this `Reference`. This value will differ for each page in a paginated |
| 2628 * request. |
| 4376 */ | 2629 */ |
| 4377 core.String offset; | 2630 core.String offset; |
| 4378 /** A substring of the bases that make up this reference. */ | 2631 /** A substring of the bases that make up this reference. */ |
| 4379 core.String sequence; | 2632 core.String sequence; |
| 4380 | 2633 |
| 4381 ListBasesResponse(); | 2634 ListBasesResponse(); |
| 4382 | 2635 |
| 4383 ListBasesResponse.fromJson(core.Map _json) { | 2636 ListBasesResponse.fromJson(core.Map _json) { |
| 4384 if (_json.containsKey("nextPageToken")) { | 2637 if (_json.containsKey("nextPageToken")) { |
| 4385 nextPageToken = _json["nextPageToken"]; | 2638 nextPageToken = _json["nextPageToken"]; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 4405 } | 2658 } |
| 4406 return _json; | 2659 return _json; |
| 4407 } | 2660 } |
| 4408 } | 2661 } |
| 4409 | 2662 |
| 4410 class ListCoverageBucketsResponse { | 2663 class ListCoverageBucketsResponse { |
| 4411 /** | 2664 /** |
| 4412 * The length of each coverage bucket in base pairs. Note that buckets at the | 2665 * The length of each coverage bucket in base pairs. Note that buckets at the |
| 4413 * end of a reference sequence may be shorter. This value is omitted if the | 2666 * end of a reference sequence may be shorter. This value is omitted if the |
| 4414 * bucket width is infinity (the default behaviour, with no range or | 2667 * bucket width is infinity (the default behaviour, with no range or |
| 4415 * targetBucketWidth). | 2668 * `targetBucketWidth`). |
| 4416 */ | 2669 */ |
| 4417 core.String bucketWidth; | 2670 core.String bucketWidth; |
| 4418 /** | 2671 /** |
| 4419 * The coverage buckets. The list of buckets is sparse; a bucket with 0 | 2672 * The coverage buckets. The list of buckets is sparse; a bucket with 0 |
| 4420 * overlapping reads is not returned. A bucket never crosses more than one | 2673 * overlapping reads is not returned. A bucket never crosses more than one |
| 4421 * reference sequence. Each bucket has width bucketWidth, unless its end is | 2674 * reference sequence. Each bucket has width `bucketWidth`, unless its end is |
| 4422 * the end of the reference sequence. | 2675 * the end of the reference sequence. |
| 4423 */ | 2676 */ |
| 4424 core.List<CoverageBucket> coverageBuckets; | 2677 core.List<CoverageBucket> coverageBuckets; |
| 4425 /** | 2678 /** |
| 4426 * The continuation token, which is used to page through large result sets. | 2679 * The continuation token, which is used to page through large result sets. |
| 4427 * Provide this value in a subsequent request to return the next page of | 2680 * Provide this value in a subsequent request to return the next page of |
| 4428 * results. This field will be empty if there aren't any additional results. | 2681 * results. This field will be empty if there aren't any additional results. |
| 4429 */ | 2682 */ |
| 4430 core.String nextPageToken; | 2683 core.String nextPageToken; |
| 4431 | 2684 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4485 if (datasets != null) { | 2738 if (datasets != null) { |
| 4486 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); | 2739 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); |
| 4487 } | 2740 } |
| 4488 if (nextPageToken != null) { | 2741 if (nextPageToken != null) { |
| 4489 _json["nextPageToken"] = nextPageToken; | 2742 _json["nextPageToken"] = nextPageToken; |
| 4490 } | 2743 } |
| 4491 return _json; | 2744 return _json; |
| 4492 } | 2745 } |
| 4493 } | 2746 } |
| 4494 | 2747 |
| 4495 class MergeVariantsRequest { | 2748 /** |
| 4496 /** The variants to be merged with existing variants. */ | 2749 * The response message for |
| 4497 core.List<Variant> variants; | 2750 * [Operations.ListOperations][google.longrunning.Operations.ListOperations]. |
| 2751 */ |
| 2752 class ListOperationsResponse { |
| 2753 /** The standard List next-page token. */ |
| 2754 core.String nextPageToken; |
| 2755 /** A list of operations that matches the specified filter in the request. */ |
| 2756 core.List<Operation> operations; |
| 4498 | 2757 |
| 4499 MergeVariantsRequest(); | 2758 ListOperationsResponse(); |
| 4500 | 2759 |
| 4501 MergeVariantsRequest.fromJson(core.Map _json) { | 2760 ListOperationsResponse.fromJson(core.Map _json) { |
| 4502 if (_json.containsKey("variants")) { | 2761 if (_json.containsKey("nextPageToken")) { |
| 4503 variants = _json["variants"].map((value) => new Variant.fromJson(value)).t
oList(); | 2762 nextPageToken = _json["nextPageToken"]; |
| 2763 } |
| 2764 if (_json.containsKey("operations")) { |
| 2765 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
| 4504 } | 2766 } |
| 4505 } | 2767 } |
| 4506 | 2768 |
| 4507 core.Map toJson() { | 2769 core.Map toJson() { |
| 4508 var _json = new core.Map(); | 2770 var _json = new core.Map(); |
| 4509 if (variants != null) { | 2771 if (nextPageToken != null) { |
| 4510 _json["variants"] = variants.map((value) => (value).toJson()).toList(); | 2772 _json["nextPageToken"] = nextPageToken; |
| 2773 } |
| 2774 if (operations != null) { |
| 2775 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
| 4511 } | 2776 } |
| 4512 return _json; | 2777 return _json; |
| 4513 } | 2778 } |
| 4514 } | 2779 } |
| 4515 | 2780 |
| 4516 /** | 2781 /** |
| 4517 * Metadata describes a single piece of variant call metadata. These data | 2782 * This resource represents a long-running operation that is the result of a |
| 4518 * include a top level key and either a single value string (value) or a list of | 2783 * network API call. |
| 4519 * key-value pairs (info.) Value and info are mutually exclusive. | |
| 4520 */ | 2784 */ |
| 4521 class Metadata { | 2785 class Operation { |
| 4522 /** A textual description of this metadata. */ | 2786 /** |
| 2787 * If the value is `false`, it means the operation is still in progress. If |
| 2788 * true, the operation is completed and the `result` is available. |
| 2789 */ |
| 2790 core.bool done; |
| 2791 /** The error result of the operation in case of failure. */ |
| 2792 Status error; |
| 2793 /** |
| 2794 * An [OperationMetadata][google.genomics.v1.OperationMetadata] object. This |
| 2795 * will always be returned with the [Operation][google.longrunning.Operation]. |
| 2796 * |
| 2797 * The values for Object must be JSON objects. It can consist of `num`, |
| 2798 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2799 */ |
| 2800 core.Map<core.String, core.Object> metadata; |
| 2801 /** |
| 2802 * The server-assigned name, which is only unique within the same service that |
| 2803 * originally returns it. For example: |
| 2804 * `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw` |
| 2805 */ |
| 2806 core.String name; |
| 2807 /** |
| 2808 * If importing [ReadGroupSets][google.genomics.v1.ReadGroupSet], an |
| 2809 * [ImportReadGroupSetsResponse][google.genomics.v1.ImportReadGroupSetsRespons
e] |
| 2810 * is returned. If importing [Variants][google.genomics.v1.Variant], an |
| 2811 * [ImportVariantsResponse][google.genomics.v1.ImportVariantsResponse] is |
| 2812 * returned. For exports, an empty response is returned. |
| 2813 * |
| 2814 * The values for Object must be JSON objects. It can consist of `num`, |
| 2815 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 2816 */ |
| 2817 core.Map<core.String, core.Object> response; |
| 2818 |
| 2819 Operation(); |
| 2820 |
| 2821 Operation.fromJson(core.Map _json) { |
| 2822 if (_json.containsKey("done")) { |
| 2823 done = _json["done"]; |
| 2824 } |
| 2825 if (_json.containsKey("error")) { |
| 2826 error = new Status.fromJson(_json["error"]); |
| 2827 } |
| 2828 if (_json.containsKey("metadata")) { |
| 2829 metadata = _json["metadata"]; |
| 2830 } |
| 2831 if (_json.containsKey("name")) { |
| 2832 name = _json["name"]; |
| 2833 } |
| 2834 if (_json.containsKey("response")) { |
| 2835 response = _json["response"]; |
| 2836 } |
| 2837 } |
| 2838 |
| 2839 core.Map toJson() { |
| 2840 var _json = new core.Map(); |
| 2841 if (done != null) { |
| 2842 _json["done"] = done; |
| 2843 } |
| 2844 if (error != null) { |
| 2845 _json["error"] = (error).toJson(); |
| 2846 } |
| 2847 if (metadata != null) { |
| 2848 _json["metadata"] = metadata; |
| 2849 } |
| 2850 if (name != null) { |
| 2851 _json["name"] = name; |
| 2852 } |
| 2853 if (response != null) { |
| 2854 _json["response"] = response; |
| 2855 } |
| 2856 return _json; |
| 2857 } |
| 2858 } |
| 2859 |
| 2860 /** |
| 2861 * An event that occurred during an [Operation][google.longrunning.Operation]. |
| 2862 */ |
| 2863 class OperationEvent { |
| 2864 /** Required description of event. */ |
| 4523 core.String description; | 2865 core.String description; |
| 4524 /** | |
| 4525 * User-provided ID field, not enforced by this API. Two or more pieces of | |
| 4526 * structured metadata with identical id and key fields are considered | |
| 4527 * equivalent. | |
| 4528 */ | |
| 4529 core.String id; | |
| 4530 /** A string which maps to an array of values. */ | |
| 4531 core.Map<core.String, core.List<core.String>> info; | |
| 4532 /** The top-level key. */ | |
| 4533 core.String key; | |
| 4534 /** | |
| 4535 * The number of values that can be included in a field described by this | |
| 4536 * metadata. | |
| 4537 */ | |
| 4538 core.String number; | |
| 4539 /** | |
| 4540 * The type of data. Possible types include: Integer, Float, Flag, Character, | |
| 4541 * and String. | |
| 4542 * Possible string values are: | |
| 4543 * - "CHARACTER" | |
| 4544 * - "FLAG" | |
| 4545 * - "FLOAT" | |
| 4546 * - "INTEGER" | |
| 4547 * - "STRING" | |
| 4548 * - "UNKNOWN_TYPE" | |
| 4549 */ | |
| 4550 core.String type; | |
| 4551 /** The value field for simple metadata */ | |
| 4552 core.String value; | |
| 4553 | 2866 |
| 4554 Metadata(); | 2867 OperationEvent(); |
| 4555 | 2868 |
| 4556 Metadata.fromJson(core.Map _json) { | 2869 OperationEvent.fromJson(core.Map _json) { |
| 4557 if (_json.containsKey("description")) { | 2870 if (_json.containsKey("description")) { |
| 4558 description = _json["description"]; | 2871 description = _json["description"]; |
| 4559 } | 2872 } |
| 4560 if (_json.containsKey("id")) { | |
| 4561 id = _json["id"]; | |
| 4562 } | |
| 4563 if (_json.containsKey("info")) { | |
| 4564 info = _json["info"]; | |
| 4565 } | |
| 4566 if (_json.containsKey("key")) { | |
| 4567 key = _json["key"]; | |
| 4568 } | |
| 4569 if (_json.containsKey("number")) { | |
| 4570 number = _json["number"]; | |
| 4571 } | |
| 4572 if (_json.containsKey("type")) { | |
| 4573 type = _json["type"]; | |
| 4574 } | |
| 4575 if (_json.containsKey("value")) { | |
| 4576 value = _json["value"]; | |
| 4577 } | |
| 4578 } | 2873 } |
| 4579 | 2874 |
| 4580 core.Map toJson() { | 2875 core.Map toJson() { |
| 4581 var _json = new core.Map(); | 2876 var _json = new core.Map(); |
| 4582 if (description != null) { | 2877 if (description != null) { |
| 4583 _json["description"] = description; | 2878 _json["description"] = description; |
| 4584 } | 2879 } |
| 4585 if (id != null) { | |
| 4586 _json["id"] = id; | |
| 4587 } | |
| 4588 if (info != null) { | |
| 4589 _json["info"] = info; | |
| 4590 } | |
| 4591 if (key != null) { | |
| 4592 _json["key"] = key; | |
| 4593 } | |
| 4594 if (number != null) { | |
| 4595 _json["number"] = number; | |
| 4596 } | |
| 4597 if (type != null) { | |
| 4598 _json["type"] = type; | |
| 4599 } | |
| 4600 if (value != null) { | |
| 4601 _json["value"] = value; | |
| 4602 } | |
| 4603 return _json; | 2880 return _json; |
| 4604 } | 2881 } |
| 4605 } | 2882 } |
| 4606 | 2883 |
| 4607 /** Describes a paired-end FASTQ file source for alignment. */ | 2884 /** Metadata describing an [Operation][google.longrunning.Operation]. */ |
| 4608 class PairedFastqSource { | 2885 class OperationMetadata { |
| 2886 /** The time at which the job was submitted to the Genomics service. */ |
| 2887 core.String createTime; |
| 4609 /** | 2888 /** |
| 4610 * A list of URIs pointing at paired end FASTQ files in Google Cloud Storage | 2889 * Optional event messages that were generated during the job's execution. |
| 4611 * which will be aligned. The first of each paired file should be specified | 2890 * This also contains any warnings that were generated during import or |
| 4612 * here, in an order that matches the second of each paired file specified in | 2891 * export. |
| 4613 * secondSourceUris. For example: firstSourceUris: [file1_1.fq, file2_1.fq], | |
| 4614 * secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must have READ | |
| 4615 * permissions for these files. | |
| 4616 */ | 2892 */ |
| 4617 core.List<core.String> firstSourceUris; | 2893 core.List<OperationEvent> events; |
| 2894 /** The Google Cloud Project in which the job is scoped. */ |
| 2895 core.String projectId; |
| 4618 /** | 2896 /** |
| 4619 * Optionally specifies the metadata to be associated with the final aligned | 2897 * The original request that started the operation. Note that this will be in |
| 4620 * read group set. | 2898 * current version of the API. If the operation was started with v1beta2 API |
| 2899 * and a GetOperation is performed on v1 API, a v1 request will be returned. |
| 2900 * |
| 2901 * The values for Object must be JSON objects. It can consist of `num`, |
| 2902 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4621 */ | 2903 */ |
| 4622 FastqMetadata metadata; | 2904 core.Map<core.String, core.Object> request; |
| 4623 /** | |
| 4624 * A list of URIs pointing at paired end FASTQ files in Google Cloud Storage | |
| 4625 * which will be aligned. The second of each paired file should be specified | |
| 4626 * here, in an order that matches the first of each paired file specified in | |
| 4627 * firstSourceUris. For example: firstSourceUris: [file1_1.fq, file2_1.fq], | |
| 4628 * secondSourceUris: [file1_2.fq, file2_2.fq]. The caller must have READ | |
| 4629 * permissions for these files. | |
| 4630 */ | |
| 4631 core.List<core.String> secondSourceUris; | |
| 4632 | 2905 |
| 4633 PairedFastqSource(); | 2906 OperationMetadata(); |
| 4634 | 2907 |
| 4635 PairedFastqSource.fromJson(core.Map _json) { | 2908 OperationMetadata.fromJson(core.Map _json) { |
| 4636 if (_json.containsKey("firstSourceUris")) { | 2909 if (_json.containsKey("createTime")) { |
| 4637 firstSourceUris = _json["firstSourceUris"]; | 2910 createTime = _json["createTime"]; |
| 4638 } | 2911 } |
| 4639 if (_json.containsKey("metadata")) { | 2912 if (_json.containsKey("events")) { |
| 4640 metadata = new FastqMetadata.fromJson(_json["metadata"]); | 2913 events = _json["events"].map((value) => new OperationEvent.fromJson(value)
).toList(); |
| 4641 } | 2914 } |
| 4642 if (_json.containsKey("secondSourceUris")) { | 2915 if (_json.containsKey("projectId")) { |
| 4643 secondSourceUris = _json["secondSourceUris"]; | 2916 projectId = _json["projectId"]; |
| 2917 } |
| 2918 if (_json.containsKey("request")) { |
| 2919 request = _json["request"]; |
| 4644 } | 2920 } |
| 4645 } | 2921 } |
| 4646 | 2922 |
| 4647 core.Map toJson() { | 2923 core.Map toJson() { |
| 4648 var _json = new core.Map(); | 2924 var _json = new core.Map(); |
| 4649 if (firstSourceUris != null) { | 2925 if (createTime != null) { |
| 4650 _json["firstSourceUris"] = firstSourceUris; | 2926 _json["createTime"] = createTime; |
| 4651 } | 2927 } |
| 4652 if (metadata != null) { | 2928 if (events != null) { |
| 4653 _json["metadata"] = (metadata).toJson(); | 2929 _json["events"] = events.map((value) => (value).toJson()).toList(); |
| 4654 } | 2930 } |
| 4655 if (secondSourceUris != null) { | 2931 if (projectId != null) { |
| 4656 _json["secondSourceUris"] = secondSourceUris; | 2932 _json["projectId"] = projectId; |
| 2933 } |
| 2934 if (request != null) { |
| 2935 _json["request"] = request; |
| 4657 } | 2936 } |
| 4658 return _json; | 2937 return _json; |
| 4659 } | 2938 } |
| 4660 } | 2939 } |
| 4661 | 2940 |
| 4662 /** | 2941 /** |
| 4663 * An abstraction for referring to a genomic position, in relation to some | 2942 * An abstraction for referring to a genomic position, in relation to some |
| 4664 * already known reference. For now, represents a genomic position as a | 2943 * already known reference. For now, represents a genomic position as a |
| 4665 * reference name, a base number on that reference (0-based), and a | 2944 * reference name, a base number on that reference (0-based), and a |
| 4666 * determination of forward or reverse strand. | 2945 * determination of forward or reverse strand. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4700 if (referenceName != null) { | 2979 if (referenceName != null) { |
| 4701 _json["referenceName"] = referenceName; | 2980 _json["referenceName"] = referenceName; |
| 4702 } | 2981 } |
| 4703 if (reverseStrand != null) { | 2982 if (reverseStrand != null) { |
| 4704 _json["reverseStrand"] = reverseStrand; | 2983 _json["reverseStrand"] = reverseStrand; |
| 4705 } | 2984 } |
| 4706 return _json; | 2985 return _json; |
| 4707 } | 2986 } |
| 4708 } | 2987 } |
| 4709 | 2988 |
| 4710 /** A 0-based half-open genomic coordinate range for search requests. */ | 2989 class Program { |
| 4711 class QueryRange { | 2990 /** The command line used to run this program. */ |
| 2991 core.String commandLine; |
| 4712 /** | 2992 /** |
| 4713 * The end position of the range on the reference, 0-based exclusive. If | 2993 * The user specified locally unique ID of the program. Used along with |
| 4714 * specified, referenceId or referenceName must also be specified. If unset or | 2994 * `prevProgramId` to define an ordering between programs. |
| 4715 * 0, defaults to the length of the reference. | |
| 4716 */ | 2995 */ |
| 4717 core.String end; | 2996 core.String id; |
| 4718 /** | 2997 /** The name of the program. */ |
| 4719 * The ID of the reference to query. At most one of referenceId and | 2998 core.String name; |
| 4720 * referenceName should be specified. | 2999 /** The ID of the program run before this one. */ |
| 4721 */ | 3000 core.String prevProgramId; |
| 4722 core.String referenceId; | 3001 /** The version of the program run. */ |
| 4723 /** | 3002 core.String version; |
| 4724 * The name of the reference to query, within the reference set associated | |
| 4725 * with this query. At most one of referenceId and referenceName pshould be | |
| 4726 * specified. | |
| 4727 */ | |
| 4728 core.String referenceName; | |
| 4729 /** | |
| 4730 * The start position of the range on the reference, 0-based inclusive. If | |
| 4731 * specified, referenceId or referenceName must also be specified. Defaults to | |
| 4732 * 0. | |
| 4733 */ | |
| 4734 core.String start; | |
| 4735 | 3003 |
| 4736 QueryRange(); | 3004 Program(); |
| 4737 | 3005 |
| 4738 QueryRange.fromJson(core.Map _json) { | 3006 Program.fromJson(core.Map _json) { |
| 4739 if (_json.containsKey("end")) { | 3007 if (_json.containsKey("commandLine")) { |
| 4740 end = _json["end"]; | 3008 commandLine = _json["commandLine"]; |
| 4741 } | 3009 } |
| 4742 if (_json.containsKey("referenceId")) { | 3010 if (_json.containsKey("id")) { |
| 4743 referenceId = _json["referenceId"]; | 3011 id = _json["id"]; |
| 4744 } | 3012 } |
| 4745 if (_json.containsKey("referenceName")) { | 3013 if (_json.containsKey("name")) { |
| 4746 referenceName = _json["referenceName"]; | 3014 name = _json["name"]; |
| 4747 } | 3015 } |
| 4748 if (_json.containsKey("start")) { | 3016 if (_json.containsKey("prevProgramId")) { |
| 4749 start = _json["start"]; | 3017 prevProgramId = _json["prevProgramId"]; |
| 3018 } |
| 3019 if (_json.containsKey("version")) { |
| 3020 version = _json["version"]; |
| 4750 } | 3021 } |
| 4751 } | 3022 } |
| 4752 | 3023 |
| 4753 core.Map toJson() { | 3024 core.Map toJson() { |
| 4754 var _json = new core.Map(); | 3025 var _json = new core.Map(); |
| 4755 if (end != null) { | 3026 if (commandLine != null) { |
| 4756 _json["end"] = end; | 3027 _json["commandLine"] = commandLine; |
| 4757 } | 3028 } |
| 4758 if (referenceId != null) { | 3029 if (id != null) { |
| 4759 _json["referenceId"] = referenceId; | 3030 _json["id"] = id; |
| 4760 } | 3031 } |
| 4761 if (referenceName != null) { | 3032 if (name != null) { |
| 4762 _json["referenceName"] = referenceName; | 3033 _json["name"] = name; |
| 4763 } | 3034 } |
| 4764 if (start != null) { | 3035 if (prevProgramId != null) { |
| 4765 _json["start"] = start; | 3036 _json["prevProgramId"] = prevProgramId; |
| 3037 } |
| 3038 if (version != null) { |
| 3039 _json["version"] = version; |
| 4766 } | 3040 } |
| 4767 return _json; | 3041 return _json; |
| 4768 } | 3042 } |
| 4769 } | 3043 } |
| 4770 | 3044 |
| 4771 /** A 0-based half-open genomic coordinate range over a reference sequence. */ | 3045 /** A 0-based half-open genomic coordinate range for search requests. */ |
| 4772 class Range { | 3046 class Range { |
| 4773 /** | 3047 /** The end position of the range on the reference, 0-based exclusive. */ |
| 4774 * The end position of the range on the reference, 0-based exclusive. If | |
| 4775 * specified, referenceName must also be specified. | |
| 4776 */ | |
| 4777 core.String end; | 3048 core.String end; |
| 4778 /** The reference sequence name, for example chr1, 1, or chrX. */ | 3049 /** The reference sequence name, for example `chr1`, `1`, or `chrX`. */ |
| 4779 core.String referenceName; | 3050 core.String referenceName; |
| 4780 /** | 3051 /** The start position of the range on the reference, 0-based inclusive. */ |
| 4781 * The start position of the range on the reference, 0-based inclusive. If | |
| 4782 * specified, referenceName must also be specified. | |
| 4783 */ | |
| 4784 core.String start; | 3052 core.String start; |
| 4785 | 3053 |
| 4786 Range(); | 3054 Range(); |
| 4787 | 3055 |
| 4788 Range.fromJson(core.Map _json) { | 3056 Range.fromJson(core.Map _json) { |
| 4789 if (_json.containsKey("end")) { | 3057 if (_json.containsKey("end")) { |
| 4790 end = _json["end"]; | 3058 end = _json["end"]; |
| 4791 } | 3059 } |
| 4792 if (_json.containsKey("referenceName")) { | 3060 if (_json.containsKey("referenceName")) { |
| 4793 referenceName = _json["referenceName"]; | 3061 referenceName = _json["referenceName"]; |
| 4794 } | 3062 } |
| 4795 if (_json.containsKey("start")) { | 3063 if (_json.containsKey("start")) { |
| 4796 start = _json["start"]; | 3064 start = _json["start"]; |
| 4797 } | 3065 } |
| 4798 } | |
| 4799 | |
| 4800 core.Map toJson() { | |
| 4801 var _json = new core.Map(); | |
| 4802 if (end != null) { | |
| 4803 _json["end"] = end; | |
| 4804 } | |
| 4805 if (referenceName != null) { | |
| 4806 _json["referenceName"] = referenceName; | |
| 4807 } | |
| 4808 if (start != null) { | |
| 4809 _json["start"] = start; | |
| 4810 } | |
| 4811 return _json; | |
| 4812 } | |
| 4813 } | |
| 4814 | |
| 4815 /** | |
| 4816 * A 0-based half-open genomic coordinate range over a reference sequence, for | |
| 4817 * representing the position of a genomic resource. | |
| 4818 */ | |
| 4819 class RangePosition { | |
| 4820 /** The end position of the range on the reference, 0-based exclusive. */ | |
| 4821 core.String end; | |
| 4822 /** The ID of the Google Genomics reference associated with this range. */ | |
| 4823 core.String referenceId; | |
| 4824 /** | |
| 4825 * The display name corresponding to the reference specified by referenceId, | |
| 4826 * for example chr1, 1, or chrX. | |
| 4827 */ | |
| 4828 core.String referenceName; | |
| 4829 /** | |
| 4830 * Whether this range refers to the reverse strand, as opposed to the forward | |
| 4831 * strand. Note that regardless of this field, the start/end position of the | |
| 4832 * range always refer to the forward strand. | |
| 4833 */ | |
| 4834 core.bool reverseStrand; | |
| 4835 /** The start position of the range on the reference, 0-based inclusive. */ | |
| 4836 core.String start; | |
| 4837 | |
| 4838 RangePosition(); | |
| 4839 | |
| 4840 RangePosition.fromJson(core.Map _json) { | |
| 4841 if (_json.containsKey("end")) { | |
| 4842 end = _json["end"]; | |
| 4843 } | |
| 4844 if (_json.containsKey("referenceId")) { | |
| 4845 referenceId = _json["referenceId"]; | |
| 4846 } | |
| 4847 if (_json.containsKey("referenceName")) { | |
| 4848 referenceName = _json["referenceName"]; | |
| 4849 } | |
| 4850 if (_json.containsKey("reverseStrand")) { | |
| 4851 reverseStrand = _json["reverseStrand"]; | |
| 4852 } | |
| 4853 if (_json.containsKey("start")) { | |
| 4854 start = _json["start"]; | |
| 4855 } | |
| 4856 } | 3066 } |
| 4857 | 3067 |
| 4858 core.Map toJson() { | 3068 core.Map toJson() { |
| 4859 var _json = new core.Map(); | 3069 var _json = new core.Map(); |
| 4860 if (end != null) { | 3070 if (end != null) { |
| 4861 _json["end"] = end; | 3071 _json["end"] = end; |
| 4862 } | 3072 } |
| 4863 if (referenceId != null) { | |
| 4864 _json["referenceId"] = referenceId; | |
| 4865 } | |
| 4866 if (referenceName != null) { | 3073 if (referenceName != null) { |
| 4867 _json["referenceName"] = referenceName; | 3074 _json["referenceName"] = referenceName; |
| 4868 } | 3075 } |
| 4869 if (reverseStrand != null) { | |
| 4870 _json["reverseStrand"] = reverseStrand; | |
| 4871 } | |
| 4872 if (start != null) { | 3076 if (start != null) { |
| 4873 _json["start"] = start; | 3077 _json["start"] = start; |
| 4874 } | 3078 } |
| 4875 return _json; | 3079 return _json; |
| 4876 } | 3080 } |
| 4877 } | 3081 } |
| 4878 | 3082 |
| 4879 /** | 3083 /** |
| 4880 * A read alignment describes a linear alignment of a string of DNA to a | 3084 * A read alignment describes a linear alignment of a string of DNA to a |
| 4881 * reference sequence, in addition to metadata about the fragment (the molecule | 3085 * [reference sequence][google.genomics.v1.Reference], in addition to metadata |
| 4882 * of DNA sequenced) and the read (the bases which were read by the sequencer). | 3086 * about the fragment (the molecule of DNA sequenced) and the read (the bases |
| 4883 * A read is equivalent to a line in a SAM file. A read belongs to exactly one | 3087 * which were read by the sequencer). A read is equivalent to a line in a SAM |
| 4884 * read group and exactly one read group set. Generating a reference-aligned | 3088 * file. A read belongs to exactly one read group and exactly one [read group |
| 3089 * set][google.genomics.v1.ReadGroupSet]. ### Generating a reference-aligned |
| 4885 * sequence string When interacting with mapped reads, it's often useful to | 3090 * sequence string When interacting with mapped reads, it's often useful to |
| 4886 * produce a string representing the local alignment of the read to reference. | 3091 * produce a string representing the local alignment of the read to reference. |
| 4887 * The following pseudocode demonstrates one way of doing this: | 3092 * The following pseudocode demonstrates one way of doing this: out = "" offset |
| 4888 * out = "" offset = 0 for c in read.alignment.cigar { switch c.operation { case | 3093 * = 0 for c in read.alignment.cigar { switch c.operation { case |
| 4889 * "ALIGNMENT_MATCH", "SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += | 3094 * "ALIGNMENT_MATCH", "SEQUENCE_MATCH", "SEQUENCE_MISMATCH": out += |
| 4890 * read.alignedSequence[offset:offset+c.operationLength] offset += | 3095 * read.alignedSequence[offset:offset+c.operationLength] offset += |
| 4891 * c.operationLength break case "CLIP_SOFT", "INSERT": offset += | 3096 * c.operationLength break case "CLIP_SOFT", "INSERT": offset += |
| 4892 * c.operationLength break case "PAD": out += repeat("*", c.operationLength) | 3097 * c.operationLength break case "PAD": out += repeat("*", c.operationLength) |
| 4893 * break case "DELETE": out += repeat("-", c.operationLength) break case "SKIP": | 3098 * break case "DELETE": out += repeat("-", c.operationLength) break case "SKIP": |
| 4894 * out += repeat(" ", c.operationLength) break case "CLIP_HARD": break } } | 3099 * out += repeat(" ", c.operationLength) break case "CLIP_HARD": break } } |
| 4895 * return out | 3100 * return out ### Converting to SAM's CIGAR string The following pseudocode |
| 4896 * Converting to SAM's CIGAR string The following pseudocode generates a SAM | 3101 * generates a SAM CIGAR string from the `cigar` field. Note that this is a |
| 4897 * CIGAR string from the cigar field. Note that this is a lossy conversion | 3102 * lossy conversion (`cigar.referenceSequence` is lost). cigarMap = { |
| 4898 * (cigar.referenceSequence is lost). | 3103 * "ALIGNMENT_MATCH": "M", "INSERT": "I", "DELETE": "D", "SKIP": "N", |
| 4899 * cigarMap = { "ALIGNMENT_MATCH": "M", "INSERT": "I", "DELETE": "D", "SKIP": | 3104 * "CLIP_SOFT": "S", "CLIP_HARD": "H", "PAD": "P", "SEQUENCE_MATCH": "=", |
| 4900 * "N", "CLIP_SOFT": "S", "CLIP_HARD": "H", "PAD": "P", "SEQUENCE_MATCH": "=", | |
| 4901 * "SEQUENCE_MISMATCH": "X", } cigarStr = "" for c in read.alignment.cigar { | 3105 * "SEQUENCE_MISMATCH": "X", } cigarStr = "" for c in read.alignment.cigar { |
| 4902 * cigarStr += c.operationLength + cigarMap[c.operation] } return cigarStr | 3106 * cigarStr += c.operationLength + cigarMap[c.operation] } return cigarStr |
| 4903 */ | 3107 */ |
| 4904 class Read { | 3108 class Read { |
| 4905 /** | 3109 /** |
| 4906 * The quality of the read sequence contained in this alignment record. | 3110 * The quality of the read sequence contained in this alignment record. |
| 4907 * alignedSequence and alignedQuality may be shorter than the full read | 3111 * `alignedSequence` and `alignedQuality` may be shorter than the full read |
| 4908 * sequence and quality. This will occur if the alignment is part of a | 3112 * sequence and quality. This will occur if the alignment is part of a |
| 4909 * chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR | 3113 * chimeric alignment, or if the read was trimmed. When this occurs, the CIGAR |
| 4910 * for this read will begin/end with a hard clip operator that will indicate | 3114 * for this read will begin/end with a hard clip operator that will indicate |
| 4911 * the length of the excised sequence. | 3115 * the length of the excised sequence. |
| 4912 */ | 3116 */ |
| 4913 core.List<core.int> alignedQuality; | 3117 core.List<core.int> alignedQuality; |
| 4914 /** | 3118 /** |
| 4915 * The bases of the read sequence contained in this alignment record, without | 3119 * The bases of the read sequence contained in this alignment record, *without |
| 4916 * CIGAR operations applied. alignedSequence and alignedQuality may be shorter | 3120 * CIGAR operations applied*. `alignedSequence` and `alignedQuality` may be |
| 4917 * than the full read sequence and quality. This will occur if the alignment | 3121 * shorter than the full read sequence and quality. This will occur if the |
| 4918 * is part of a chimeric alignment, or if the read was trimmed. When this | 3122 * alignment is part of a chimeric alignment, or if the read was trimmed. When |
| 4919 * occurs, the CIGAR for this read will begin/end with a hard clip operator | 3123 * this occurs, the CIGAR for this read will begin/end with a hard clip |
| 4920 * that will indicate the length of the excised sequence. | 3124 * operator that will indicate the length of the excised sequence. |
| 4921 */ | 3125 */ |
| 4922 core.String alignedSequence; | 3126 core.String alignedSequence; |
| 4923 /** | 3127 /** |
| 4924 * The linear alignment for this alignment record. This field will be unset if | 3128 * The linear alignment for this alignment record. This field will be null if |
| 4925 * the read is unmapped. | 3129 * the read is unmapped. |
| 4926 */ | 3130 */ |
| 4927 LinearAlignment alignment; | 3131 LinearAlignment alignment; |
| 4928 /** The fragment is a PCR or optical duplicate (SAM flag 0x400) */ | 3132 /** The fragment is a PCR or optical duplicate (SAM flag 0x400) */ |
| 4929 core.bool duplicateFragment; | 3133 core.bool duplicateFragment; |
| 4930 /** SAM flag 0x200 */ | 3134 /** SAM flag 0x200 */ |
| 4931 core.bool failedVendorQualityChecks; | 3135 core.bool failedVendorQualityChecks; |
| 4932 /** The observed length of the fragment, equivalent to TLEN in SAM. */ | 3136 /** The observed length of the fragment, equivalent to TLEN in SAM. */ |
| 4933 core.int fragmentLength; | 3137 core.int fragmentLength; |
| 4934 /** The fragment name. Equivalent to QNAME (query template name) in SAM. */ | 3138 /** The fragment name. Equivalent to QNAME (query template name) in SAM. */ |
| 4935 core.String fragmentName; | 3139 core.String fragmentName; |
| 4936 /** | 3140 /** |
| 4937 * The unique ID for this read. This is a generated unique ID, not to be | 3141 * The server-generated read ID, unique across all reads. This is different |
| 4938 * confused with fragmentName. | 3142 * from the `fragmentName`. |
| 4939 */ | 3143 */ |
| 4940 core.String id; | 3144 core.String id; |
| 4941 /** A string which maps to an array of values. */ | |
| 4942 core.Map<core.String, core.List<core.String>> info; | |
| 4943 /** | 3145 /** |
| 4944 * The position of the primary alignment of the (readNumber+1)%numberReads | 3146 * A map of additional read alignment information. This must be of the form |
| 3147 * map (string key mapping to a list of string values). |
| 3148 * |
| 3149 * The values for Object must be JSON objects. It can consist of `num`, |
| 3150 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 3151 */ |
| 3152 core.Map<core.String, core.List<core.Object>> info; |
| 3153 /** |
| 3154 * The mapping of the primary alignment of the `(readNumber+1)%numberReads` |
| 4945 * read in the fragment. It replaces mate position and mate strand in SAM. | 3155 * read in the fragment. It replaces mate position and mate strand in SAM. |
| 4946 * This field will be unset if that read is unmapped or if the fragment only | |
| 4947 * has a single read. | |
| 4948 */ | 3156 */ |
| 4949 Position nextMatePosition; | 3157 Position nextMatePosition; |
| 4950 /** The number of reads in the fragment (extension to SAM flag 0x1). */ | 3158 /** The number of reads in the fragment (extension to SAM flag 0x1). */ |
| 4951 core.int numberReads; | 3159 core.int numberReads; |
| 4952 /** | 3160 /** |
| 4953 * The orientation and the distance between reads from the fragment are | 3161 * The orientation and the distance between reads from the fragment are |
| 4954 * consistent with the sequencing protocol (SAM flag 0x2) | 3162 * consistent with the sequencing protocol (SAM flag 0x2) |
| 4955 */ | 3163 */ |
| 4956 core.bool properPlacement; | 3164 core.bool properPlacement; |
| 4957 /** | 3165 /** |
| 4958 * The ID of the read group this read belongs to. (Every read must belong to | 3166 * The ID of the read group this read belongs to. (Every read must belong to |
| 4959 * exactly one read group.) | 3167 * exactly one read group.) |
| 4960 */ | 3168 */ |
| 4961 core.String readGroupId; | 3169 core.String readGroupId; |
| 4962 /** | 3170 /** |
| 4963 * The ID of the read group set this read belongs to. (Every read must belong | 3171 * The ID of the read group set this read belongs to. (Every read must belong |
| 4964 * to exactly one read group set.) | 3172 * to exactly one read group set.) |
| 4965 */ | 3173 */ |
| 4966 core.String readGroupSetId; | 3174 core.String readGroupSetId; |
| 4967 /** | 3175 /** |
| 4968 * The read number in sequencing. 0-based and less than numberReads. This | 3176 * The read number in sequencing. 0-based and less than numberReads. This |
| 4969 * field replaces SAM flag 0x40 and 0x80. | 3177 * field replaces SAM flag 0x40 and 0x80. |
| 4970 */ | 3178 */ |
| 4971 core.int readNumber; | 3179 core.int readNumber; |
| 4972 /** | 3180 /** |
| 4973 * Whether this alignment is secondary. Equivalent to SAM flag 0x100. A | 3181 * Whether this alignment is secondary. Equivalent to SAM flag 0x100. A |
| 4974 * secondary alignment represents an alternative to the primary alignment for | 3182 * secondary alignment represents an alternative to the primary alignment for |
| 4975 * this read. Aligners may return secondary alignments if a read can map | 3183 * this read. Aligners may return secondary alignments if a read can map |
| 4976 * ambiguously to multiple coordinates in the genome. By convention, each read | 3184 * ambiguously to multiple coordinates in the genome. By convention, each read |
| 4977 * has one and only one alignment where both secondaryAlignment and | 3185 * has one and only one alignment where both `secondaryAlignment` and |
| 4978 * supplementaryAlignment are false. | 3186 * `supplementaryAlignment` are false. |
| 4979 */ | 3187 */ |
| 4980 core.bool secondaryAlignment; | 3188 core.bool secondaryAlignment; |
| 4981 /** | 3189 /** |
| 4982 * Whether this alignment is supplementary. Equivalent to SAM flag 0x800. | 3190 * Whether this alignment is supplementary. Equivalent to SAM flag 0x800. |
| 4983 * Supplementary alignments are used in the representation of a chimeric | 3191 * Supplementary alignments are used in the representation of a chimeric |
| 4984 * alignment. In a chimeric alignment, a read is split into multiple linear | 3192 * alignment. In a chimeric alignment, a read is split into multiple linear |
| 4985 * alignments that map to different reference contigs. The first linear | 3193 * alignments that map to different reference contigs. The first linear |
| 4986 * alignment in the read will be designated as the representative alignment; | 3194 * alignment in the read will be designated as the representative alignment; |
| 4987 * the remaining linear alignments will be designated as supplementary | 3195 * the remaining linear alignments will be designated as supplementary |
| 4988 * alignments. These alignments may have different mapping quality scores. In | 3196 * alignments. These alignments may have different mapping quality scores. In |
| 4989 * each linear alignment in a chimeric alignment, the read will be hard | 3197 * each linear alignment in a chimeric alignment, the read will be hard |
| 4990 * clipped. The alignedSequence and alignedQuality fields in the alignment | 3198 * clipped. The `alignedSequence` and `alignedQuality` fields in the alignment |
| 4991 * record will only represent the bases for its respective linear alignment. | 3199 * record will only represent the bases for its respective linear alignment. |
| 4992 */ | 3200 */ |
| 4993 core.bool supplementaryAlignment; | 3201 core.bool supplementaryAlignment; |
| 4994 | 3202 |
| 4995 Read(); | 3203 Read(); |
| 4996 | 3204 |
| 4997 Read.fromJson(core.Map _json) { | 3205 Read.fromJson(core.Map _json) { |
| 4998 if (_json.containsKey("alignedQuality")) { | 3206 if (_json.containsKey("alignedQuality")) { |
| 4999 alignedQuality = _json["alignedQuality"]; | 3207 alignedQuality = _json["alignedQuality"]; |
| 5000 } | 3208 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5107 | 3315 |
| 5108 /** | 3316 /** |
| 5109 * A read group is all the data that's processed the same way by the sequencer. | 3317 * A read group is all the data that's processed the same way by the sequencer. |
| 5110 */ | 3318 */ |
| 5111 class ReadGroup { | 3319 class ReadGroup { |
| 5112 /** The ID of the dataset this read group belongs to. */ | 3320 /** The ID of the dataset this read group belongs to. */ |
| 5113 core.String datasetId; | 3321 core.String datasetId; |
| 5114 /** A free-form text description of this read group. */ | 3322 /** A free-form text description of this read group. */ |
| 5115 core.String description; | 3323 core.String description; |
| 5116 /** The experiment used to generate this read group. */ | 3324 /** The experiment used to generate this read group. */ |
| 5117 ReadGroupExperiment experiment; | 3325 Experiment experiment; |
| 5118 /** | 3326 /** |
| 5119 * The generated unique read group ID. Note: This is different than the @RG ID | 3327 * The server-generated read group ID, unique for all read groups. Note: This |
| 5120 * field in the SAM spec. For that value, see the name field. | 3328 * is different than the `@RG ID` field in the SAM spec. For that value, see |
| 3329 * the `name` field. |
| 5121 */ | 3330 */ |
| 5122 core.String id; | 3331 core.String id; |
| 5123 /** A string which maps to an array of values. */ | 3332 /** |
| 5124 core.Map<core.String, core.List<core.String>> info; | 3333 * A map of additional read group information. This must be of the form map |
| 3334 * (string key mapping to a list of string values). |
| 3335 * |
| 3336 * The values for Object must be JSON objects. It can consist of `num`, |
| 3337 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 3338 */ |
| 3339 core.Map<core.String, core.List<core.Object>> info; |
| 5125 /** | 3340 /** |
| 5126 * The read group name. This corresponds to the @RG ID field in the SAM spec. | 3341 * The read group name. This corresponds to the @RG ID field in the SAM spec. |
| 5127 */ | 3342 */ |
| 5128 core.String name; | 3343 core.String name; |
| 5129 /** | 3344 /** |
| 5130 * The predicted insert size of this read group. The insert size is the length | 3345 * The predicted insert size of this read group. The insert size is the length |
| 5131 * the sequenced DNA fragment from end-to-end, not including the adapters. | 3346 * the sequenced DNA fragment from end-to-end, not including the adapters. |
| 5132 */ | 3347 */ |
| 5133 core.int predictedInsertSize; | 3348 core.int predictedInsertSize; |
| 5134 /** | 3349 /** |
| 5135 * The programs used to generate this read group. Programs are always | 3350 * The programs used to generate this read group. Programs are always |
| 5136 * identical for all read groups within a read group set. For this reason, | 3351 * identical for all read groups within a read group set. For this reason, |
| 5137 * only the first read group in a returned set will have this field populated. | 3352 * only the first read group in a returned set will have this field populated. |
| 5138 */ | 3353 */ |
| 5139 core.List<ReadGroupProgram> programs; | 3354 core.List<Program> programs; |
| 5140 /** | 3355 /** |
| 5141 * The reference set the reads in this read group are aligned to. Required if | 3356 * The reference set the reads in this read group are aligned to. Required if |
| 5142 * there are any read alignments. | 3357 * there are any read alignments. |
| 5143 */ | 3358 */ |
| 5144 core.String referenceSetId; | 3359 core.String referenceSetId; |
| 5145 /** | 3360 /** |
| 5146 * The sample this read group's data was generated from. Note: This is not an | 3361 * The sample this read group's data was generated from. Note: This is not an |
| 5147 * actual ID within this repository, but rather an identifier for a sample | 3362 * actual ID within this repository, but rather an identifier for a sample |
| 5148 * which may be meaningful to some external system. | 3363 * which may be meaningful to some external system. |
| 5149 */ | 3364 */ |
| 5150 core.String sampleId; | 3365 core.String sampleId; |
| 5151 | 3366 |
| 5152 ReadGroup(); | 3367 ReadGroup(); |
| 5153 | 3368 |
| 5154 ReadGroup.fromJson(core.Map _json) { | 3369 ReadGroup.fromJson(core.Map _json) { |
| 5155 if (_json.containsKey("datasetId")) { | 3370 if (_json.containsKey("datasetId")) { |
| 5156 datasetId = _json["datasetId"]; | 3371 datasetId = _json["datasetId"]; |
| 5157 } | 3372 } |
| 5158 if (_json.containsKey("description")) { | 3373 if (_json.containsKey("description")) { |
| 5159 description = _json["description"]; | 3374 description = _json["description"]; |
| 5160 } | 3375 } |
| 5161 if (_json.containsKey("experiment")) { | 3376 if (_json.containsKey("experiment")) { |
| 5162 experiment = new ReadGroupExperiment.fromJson(_json["experiment"]); | 3377 experiment = new Experiment.fromJson(_json["experiment"]); |
| 5163 } | 3378 } |
| 5164 if (_json.containsKey("id")) { | 3379 if (_json.containsKey("id")) { |
| 5165 id = _json["id"]; | 3380 id = _json["id"]; |
| 5166 } | 3381 } |
| 5167 if (_json.containsKey("info")) { | 3382 if (_json.containsKey("info")) { |
| 5168 info = _json["info"]; | 3383 info = _json["info"]; |
| 5169 } | 3384 } |
| 5170 if (_json.containsKey("name")) { | 3385 if (_json.containsKey("name")) { |
| 5171 name = _json["name"]; | 3386 name = _json["name"]; |
| 5172 } | 3387 } |
| 5173 if (_json.containsKey("predictedInsertSize")) { | 3388 if (_json.containsKey("predictedInsertSize")) { |
| 5174 predictedInsertSize = _json["predictedInsertSize"]; | 3389 predictedInsertSize = _json["predictedInsertSize"]; |
| 5175 } | 3390 } |
| 5176 if (_json.containsKey("programs")) { | 3391 if (_json.containsKey("programs")) { |
| 5177 programs = _json["programs"].map((value) => new ReadGroupProgram.fromJson(
value)).toList(); | 3392 programs = _json["programs"].map((value) => new Program.fromJson(value)).t
oList(); |
| 5178 } | 3393 } |
| 5179 if (_json.containsKey("referenceSetId")) { | 3394 if (_json.containsKey("referenceSetId")) { |
| 5180 referenceSetId = _json["referenceSetId"]; | 3395 referenceSetId = _json["referenceSetId"]; |
| 5181 } | 3396 } |
| 5182 if (_json.containsKey("sampleId")) { | 3397 if (_json.containsKey("sampleId")) { |
| 5183 sampleId = _json["sampleId"]; | 3398 sampleId = _json["sampleId"]; |
| 5184 } | 3399 } |
| 5185 } | 3400 } |
| 5186 | 3401 |
| 5187 core.Map toJson() { | 3402 core.Map toJson() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5211 _json["programs"] = programs.map((value) => (value).toJson()).toList(); | 3426 _json["programs"] = programs.map((value) => (value).toJson()).toList(); |
| 5212 } | 3427 } |
| 5213 if (referenceSetId != null) { | 3428 if (referenceSetId != null) { |
| 5214 _json["referenceSetId"] = referenceSetId; | 3429 _json["referenceSetId"] = referenceSetId; |
| 5215 } | 3430 } |
| 5216 if (sampleId != null) { | 3431 if (sampleId != null) { |
| 5217 _json["sampleId"] = sampleId; | 3432 _json["sampleId"] = sampleId; |
| 5218 } | 3433 } |
| 5219 return _json; | 3434 return _json; |
| 5220 } | 3435 } |
| 5221 } | |
| 5222 | |
| 5223 class ReadGroupExperiment { | |
| 5224 /** | |
| 5225 * The instrument model used as part of this experiment. This maps to | |
| 5226 * sequencing technology in BAM. | |
| 5227 */ | |
| 5228 core.String instrumentModel; | |
| 5229 /** | |
| 5230 * The library used as part of this experiment. Note: This is not an actual ID | |
| 5231 * within this repository, but rather an identifier for a library which may be | |
| 5232 * meaningful to some external system. | |
| 5233 */ | |
| 5234 core.String libraryId; | |
| 5235 /** | |
| 5236 * The platform unit used as part of this experiment e.g. | |
| 5237 * flowcell-barcode.lane for Illumina or slide for SOLiD. Corresponds to the | |
| 5238 */ | |
| 5239 core.String platformUnit; | |
| 5240 /** The sequencing center used as part of this experiment. */ | |
| 5241 core.String sequencingCenter; | |
| 5242 | |
| 5243 ReadGroupExperiment(); | |
| 5244 | |
| 5245 ReadGroupExperiment.fromJson(core.Map _json) { | |
| 5246 if (_json.containsKey("instrumentModel")) { | |
| 5247 instrumentModel = _json["instrumentModel"]; | |
| 5248 } | |
| 5249 if (_json.containsKey("libraryId")) { | |
| 5250 libraryId = _json["libraryId"]; | |
| 5251 } | |
| 5252 if (_json.containsKey("platformUnit")) { | |
| 5253 platformUnit = _json["platformUnit"]; | |
| 5254 } | |
| 5255 if (_json.containsKey("sequencingCenter")) { | |
| 5256 sequencingCenter = _json["sequencingCenter"]; | |
| 5257 } | |
| 5258 } | |
| 5259 | |
| 5260 core.Map toJson() { | |
| 5261 var _json = new core.Map(); | |
| 5262 if (instrumentModel != null) { | |
| 5263 _json["instrumentModel"] = instrumentModel; | |
| 5264 } | |
| 5265 if (libraryId != null) { | |
| 5266 _json["libraryId"] = libraryId; | |
| 5267 } | |
| 5268 if (platformUnit != null) { | |
| 5269 _json["platformUnit"] = platformUnit; | |
| 5270 } | |
| 5271 if (sequencingCenter != null) { | |
| 5272 _json["sequencingCenter"] = sequencingCenter; | |
| 5273 } | |
| 5274 return _json; | |
| 5275 } | |
| 5276 } | |
| 5277 | |
| 5278 class ReadGroupProgram { | |
| 5279 /** The command line used to run this program. */ | |
| 5280 core.String commandLine; | |
| 5281 /** | |
| 5282 * The user specified locally unique ID of the program. Used along with | |
| 5283 * prevProgramId to define an ordering between programs. | |
| 5284 */ | |
| 5285 core.String id; | |
| 5286 /** The name of the program. */ | |
| 5287 core.String name; | |
| 5288 /** The ID of the program run before this one. */ | |
| 5289 core.String prevProgramId; | |
| 5290 /** The version of the program run. */ | |
| 5291 core.String version; | |
| 5292 | |
| 5293 ReadGroupProgram(); | |
| 5294 | |
| 5295 ReadGroupProgram.fromJson(core.Map _json) { | |
| 5296 if (_json.containsKey("commandLine")) { | |
| 5297 commandLine = _json["commandLine"]; | |
| 5298 } | |
| 5299 if (_json.containsKey("id")) { | |
| 5300 id = _json["id"]; | |
| 5301 } | |
| 5302 if (_json.containsKey("name")) { | |
| 5303 name = _json["name"]; | |
| 5304 } | |
| 5305 if (_json.containsKey("prevProgramId")) { | |
| 5306 prevProgramId = _json["prevProgramId"]; | |
| 5307 } | |
| 5308 if (_json.containsKey("version")) { | |
| 5309 version = _json["version"]; | |
| 5310 } | |
| 5311 } | |
| 5312 | |
| 5313 core.Map toJson() { | |
| 5314 var _json = new core.Map(); | |
| 5315 if (commandLine != null) { | |
| 5316 _json["commandLine"] = commandLine; | |
| 5317 } | |
| 5318 if (id != null) { | |
| 5319 _json["id"] = id; | |
| 5320 } | |
| 5321 if (name != null) { | |
| 5322 _json["name"] = name; | |
| 5323 } | |
| 5324 if (prevProgramId != null) { | |
| 5325 _json["prevProgramId"] = prevProgramId; | |
| 5326 } | |
| 5327 if (version != null) { | |
| 5328 _json["version"] = version; | |
| 5329 } | |
| 5330 return _json; | |
| 5331 } | |
| 5332 } | 3436 } |
| 5333 | 3437 |
| 5334 /** | 3438 /** |
| 5335 * A read group set is a logical collection of read groups, which are | 3439 * A read group set is a logical collection of read groups, which are |
| 5336 * collections of reads produced by a sequencer. A read group set typically | 3440 * collections of reads produced by a sequencer. A read group set typically |
| 5337 * models reads corresponding to one sample, sequenced one way, and aligned one | 3441 * models reads corresponding to one sample, sequenced one way, and aligned one |
| 5338 * way. | 3442 * way. * A read group set belongs to one dataset. * A read group belongs to one |
| 5339 * - A read group set belongs to one dataset. | 3443 * read group set. * A read belongs to one read group. |
| 5340 * - A read group belongs to one read group set. | |
| 5341 * - A read belongs to one read group. | |
| 5342 */ | 3444 */ |
| 5343 class ReadGroupSet { | 3445 class ReadGroupSet { |
| 5344 /** The dataset ID. */ | 3446 /** The dataset ID. */ |
| 5345 core.String datasetId; | 3447 core.String datasetId; |
| 5346 /** | 3448 /** |
| 5347 * The filename of the original source file for this read group set, if any. | 3449 * The filename of the original source file for this read group set, if any. |
| 5348 */ | 3450 */ |
| 5349 core.String filename; | 3451 core.String filename; |
| 5350 /** The read group set ID. */ | 3452 /** |
| 3453 * The server-generated read group set ID, unique for all read group sets. |
| 3454 */ |
| 5351 core.String id; | 3455 core.String id; |
| 5352 /** A string which maps to an array of values. */ | 3456 /** |
| 5353 core.Map<core.String, core.List<core.String>> info; | 3457 * A map of additional read group set information. |
| 3458 * |
| 3459 * The values for Object must be JSON objects. It can consist of `num`, |
| 3460 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 3461 */ |
| 3462 core.Map<core.String, core.List<core.Object>> info; |
| 5354 /** | 3463 /** |
| 5355 * The read group set name. By default this will be initialized to the sample | 3464 * The read group set name. By default this will be initialized to the sample |
| 5356 * name of the sequenced data contained in this set. | 3465 * name of the sequenced data contained in this set. |
| 5357 */ | 3466 */ |
| 5358 core.String name; | 3467 core.String name; |
| 5359 /** | 3468 /** |
| 5360 * The read groups in this set. There are typically 1-10 read groups in a read | 3469 * The read groups in this set. There are typically 1-10 read groups in a read |
| 5361 * group set. | 3470 * group set. |
| 5362 */ | 3471 */ |
| 5363 core.List<ReadGroup> readGroups; | 3472 core.List<ReadGroup> readGroups; |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5417 } | 3526 } |
| 5418 } | 3527 } |
| 5419 | 3528 |
| 5420 /** | 3529 /** |
| 5421 * A reference is a canonical assembled DNA sequence, intended to act as a | 3530 * A reference is a canonical assembled DNA sequence, intended to act as a |
| 5422 * reference coordinate space for other genomic annotations. A single reference | 3531 * reference coordinate space for other genomic annotations. A single reference |
| 5423 * might represent the human chromosome 1 or mitochandrial DNA, for instance. A | 3532 * might represent the human chromosome 1 or mitochandrial DNA, for instance. A |
| 5424 * reference belongs to one or more reference sets. | 3533 * reference belongs to one or more reference sets. |
| 5425 */ | 3534 */ |
| 5426 class Reference { | 3535 class Reference { |
| 5427 /** The Google generated immutable ID of the reference. */ | 3536 /** The server-generated reference ID, unique across all references. */ |
| 5428 core.String id; | 3537 core.String id; |
| 5429 /** The length of this reference's sequence. */ | 3538 /** The length of this reference's sequence. */ |
| 5430 core.String length; | 3539 core.String length; |
| 5431 /** | 3540 /** |
| 5432 * MD5 of the upper-case sequence excluding all whitespace characters (this is | 3541 * MD5 of the upper-case sequence excluding all whitespace characters (this is |
| 5433 * equivalent to SQ:M5 in SAM). This value is represented in lower case | 3542 * equivalent to SQ:M5 in SAM). This value is represented in lower case |
| 5434 * hexadecimal format. | 3543 * hexadecimal format. |
| 5435 */ | 3544 */ |
| 5436 core.String md5checksum; | 3545 core.String md5checksum; |
| 5437 /** The name of this reference, for example 22. */ | 3546 /** The name of this reference, for example `22`. */ |
| 5438 core.String name; | 3547 core.String name; |
| 5439 /** | 3548 /** |
| 5440 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not | 3549 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) if not |
| 5441 * specified by the containing reference set. | 3550 * specified by the containing reference set. |
| 5442 */ | 3551 */ |
| 5443 core.int ncbiTaxonId; | 3552 core.int ncbiTaxonId; |
| 5444 /** | 3553 /** |
| 5445 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally | 3554 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally |
| 5446 * with a version number, for example GCF_000001405.26. | 3555 * with a version number, for example `GCF_000001405.26`. |
| 5447 */ | 3556 */ |
| 5448 core.List<core.String> sourceAccessions; | 3557 core.List<core.String> sourceAccessions; |
| 5449 /** | 3558 /** |
| 5450 * The URI from which the sequence was obtained. Specifies a FASTA format | 3559 * The URI from which the sequence was obtained. Specifies a FASTA format |
| 5451 * file/string with one name, sequence pair. | 3560 * file/string with one name, sequence pair. |
| 5452 */ | 3561 */ |
| 5453 core.String sourceURI; | 3562 core.String sourceUri; |
| 5454 | 3563 |
| 5455 Reference(); | 3564 Reference(); |
| 5456 | 3565 |
| 5457 Reference.fromJson(core.Map _json) { | 3566 Reference.fromJson(core.Map _json) { |
| 5458 if (_json.containsKey("id")) { | 3567 if (_json.containsKey("id")) { |
| 5459 id = _json["id"]; | 3568 id = _json["id"]; |
| 5460 } | 3569 } |
| 5461 if (_json.containsKey("length")) { | 3570 if (_json.containsKey("length")) { |
| 5462 length = _json["length"]; | 3571 length = _json["length"]; |
| 5463 } | 3572 } |
| 5464 if (_json.containsKey("md5checksum")) { | 3573 if (_json.containsKey("md5checksum")) { |
| 5465 md5checksum = _json["md5checksum"]; | 3574 md5checksum = _json["md5checksum"]; |
| 5466 } | 3575 } |
| 5467 if (_json.containsKey("name")) { | 3576 if (_json.containsKey("name")) { |
| 5468 name = _json["name"]; | 3577 name = _json["name"]; |
| 5469 } | 3578 } |
| 5470 if (_json.containsKey("ncbiTaxonId")) { | 3579 if (_json.containsKey("ncbiTaxonId")) { |
| 5471 ncbiTaxonId = _json["ncbiTaxonId"]; | 3580 ncbiTaxonId = _json["ncbiTaxonId"]; |
| 5472 } | 3581 } |
| 5473 if (_json.containsKey("sourceAccessions")) { | 3582 if (_json.containsKey("sourceAccessions")) { |
| 5474 sourceAccessions = _json["sourceAccessions"]; | 3583 sourceAccessions = _json["sourceAccessions"]; |
| 5475 } | 3584 } |
| 5476 if (_json.containsKey("sourceURI")) { | 3585 if (_json.containsKey("sourceUri")) { |
| 5477 sourceURI = _json["sourceURI"]; | 3586 sourceUri = _json["sourceUri"]; |
| 5478 } | 3587 } |
| 5479 } | 3588 } |
| 5480 | 3589 |
| 5481 core.Map toJson() { | 3590 core.Map toJson() { |
| 5482 var _json = new core.Map(); | 3591 var _json = new core.Map(); |
| 5483 if (id != null) { | 3592 if (id != null) { |
| 5484 _json["id"] = id; | 3593 _json["id"] = id; |
| 5485 } | 3594 } |
| 5486 if (length != null) { | 3595 if (length != null) { |
| 5487 _json["length"] = length; | 3596 _json["length"] = length; |
| 5488 } | 3597 } |
| 5489 if (md5checksum != null) { | 3598 if (md5checksum != null) { |
| 5490 _json["md5checksum"] = md5checksum; | 3599 _json["md5checksum"] = md5checksum; |
| 5491 } | 3600 } |
| 5492 if (name != null) { | 3601 if (name != null) { |
| 5493 _json["name"] = name; | 3602 _json["name"] = name; |
| 5494 } | 3603 } |
| 5495 if (ncbiTaxonId != null) { | 3604 if (ncbiTaxonId != null) { |
| 5496 _json["ncbiTaxonId"] = ncbiTaxonId; | 3605 _json["ncbiTaxonId"] = ncbiTaxonId; |
| 5497 } | 3606 } |
| 5498 if (sourceAccessions != null) { | 3607 if (sourceAccessions != null) { |
| 5499 _json["sourceAccessions"] = sourceAccessions; | 3608 _json["sourceAccessions"] = sourceAccessions; |
| 5500 } | 3609 } |
| 5501 if (sourceURI != null) { | 3610 if (sourceUri != null) { |
| 5502 _json["sourceURI"] = sourceURI; | 3611 _json["sourceUri"] = sourceUri; |
| 5503 } | 3612 } |
| 5504 return _json; | 3613 return _json; |
| 5505 } | 3614 } |
| 5506 } | 3615 } |
| 5507 | 3616 |
| 5508 /** | 3617 /** |
| 5509 * ReferenceBound records an upper bound for the starting coordinate of variants | 3618 * ReferenceBound records an upper bound for the starting coordinate of variants |
| 5510 * in a particular reference. | 3619 * in a particular reference. |
| 5511 */ | 3620 */ |
| 5512 class ReferenceBound { | 3621 class ReferenceBound { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 5536 } | 3645 } |
| 5537 if (upperBound != null) { | 3646 if (upperBound != null) { |
| 5538 _json["upperBound"] = upperBound; | 3647 _json["upperBound"] = upperBound; |
| 5539 } | 3648 } |
| 5540 return _json; | 3649 return _json; |
| 5541 } | 3650 } |
| 5542 } | 3651 } |
| 5543 | 3652 |
| 5544 /** | 3653 /** |
| 5545 * A reference set is a set of references which typically comprise a reference | 3654 * A reference set is a set of references which typically comprise a reference |
| 5546 * assembly for a species, such as GRCh38 which is representative of the human | 3655 * assembly for a species, such as `GRCh38` which is representative of the human |
| 5547 * genome. A reference set defines a common coordinate space for comparing | 3656 * genome. A reference set defines a common coordinate space for comparing |
| 5548 * reference-aligned experimental data. A reference set contains 1 or more | 3657 * reference-aligned experimental data. A reference set contains 1 or more |
| 5549 * references. | 3658 * references. |
| 5550 */ | 3659 */ |
| 5551 class ReferenceSet { | 3660 class ReferenceSet { |
| 5552 /** Public id of this reference set, such as GRCh37. */ | 3661 /** Public id of this reference set, such as `GRCh37`. */ |
| 5553 core.String assemblyId; | 3662 core.String assemblyId; |
| 5554 /** Free text description of this reference set. */ | 3663 /** Free text description of this reference set. */ |
| 5555 core.String description; | 3664 core.String description; |
| 5556 /** The Google generated immutable ID of the reference set. */ | 3665 /** |
| 3666 * The server-generated reference set ID, unique across all reference sets. |
| 3667 */ |
| 5557 core.String id; | 3668 core.String id; |
| 5558 /** | 3669 /** |
| 5559 * Order-independent MD5 checksum which identifies this reference set. The | 3670 * Order-independent MD5 checksum which identifies this reference set. The |
| 5560 * checksum is computed by sorting all lower case hexidecimal string | 3671 * checksum is computed by sorting all lower case hexidecimal string |
| 5561 * reference.md5checksum (for all reference in this set) in ascending | 3672 * `reference.md5checksum` (for all reference in this set) in ascending |
| 5562 * lexicographic order, concatenating, and taking the MD5 of that value. The | 3673 * lexicographic order, concatenating, and taking the MD5 of that value. The |
| 5563 * resulting value is represented in lower case hexadecimal format. | 3674 * resulting value is represented in lower case hexadecimal format. |
| 5564 */ | 3675 */ |
| 5565 core.String md5checksum; | 3676 core.String md5checksum; |
| 5566 /** | 3677 /** |
| 5567 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating | 3678 * ID from http://www.ncbi.nlm.nih.gov/taxonomy (e.g. 9606->human) indicating |
| 5568 * the species which this assembly is intended to model. Note that contained | 3679 * the species which this assembly is intended to model. Note that contained |
| 5569 * references may specify a different ncbiTaxonId, as assemblies may contain | 3680 * references may specify a different `ncbiTaxonId`, as assemblies may contain |
| 5570 * reference sequences which do not belong to the modeled species, e.g. EBV in | 3681 * reference sequences which do not belong to the modeled species, e.g. EBV in |
| 5571 * a human reference genome. | 3682 * a human reference genome. |
| 5572 */ | 3683 */ |
| 5573 core.int ncbiTaxonId; | 3684 core.int ncbiTaxonId; |
| 5574 /** | 3685 /** |
| 5575 * The IDs of the reference objects that are part of this set. | 3686 * The IDs of the reference objects that are part of this set. |
| 5576 * Reference.md5checksum must be unique within this set. | 3687 * `Reference.md5checksum` must be unique within this set. |
| 5577 */ | 3688 */ |
| 5578 core.List<core.String> referenceIds; | 3689 core.List<core.String> referenceIds; |
| 5579 /** | 3690 /** |
| 5580 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally | 3691 * All known corresponding accession IDs in INSDC (GenBank/ENA/DDBJ) ideally |
| 5581 * with a version number, for example NC_000001.11. | 3692 * with a version number, for example `NC_000001.11`. |
| 5582 */ | 3693 */ |
| 5583 core.List<core.String> sourceAccessions; | 3694 core.List<core.String> sourceAccessions; |
| 5584 /** The URI from which the references were obtained. */ | 3695 /** The URI from which the references were obtained. */ |
| 5585 core.String sourceURI; | 3696 core.String sourceUri; |
| 5586 | 3697 |
| 5587 ReferenceSet(); | 3698 ReferenceSet(); |
| 5588 | 3699 |
| 5589 ReferenceSet.fromJson(core.Map _json) { | 3700 ReferenceSet.fromJson(core.Map _json) { |
| 5590 if (_json.containsKey("assemblyId")) { | 3701 if (_json.containsKey("assemblyId")) { |
| 5591 assemblyId = _json["assemblyId"]; | 3702 assemblyId = _json["assemblyId"]; |
| 5592 } | 3703 } |
| 5593 if (_json.containsKey("description")) { | 3704 if (_json.containsKey("description")) { |
| 5594 description = _json["description"]; | 3705 description = _json["description"]; |
| 5595 } | 3706 } |
| 5596 if (_json.containsKey("id")) { | 3707 if (_json.containsKey("id")) { |
| 5597 id = _json["id"]; | 3708 id = _json["id"]; |
| 5598 } | 3709 } |
| 5599 if (_json.containsKey("md5checksum")) { | 3710 if (_json.containsKey("md5checksum")) { |
| 5600 md5checksum = _json["md5checksum"]; | 3711 md5checksum = _json["md5checksum"]; |
| 5601 } | 3712 } |
| 5602 if (_json.containsKey("ncbiTaxonId")) { | 3713 if (_json.containsKey("ncbiTaxonId")) { |
| 5603 ncbiTaxonId = _json["ncbiTaxonId"]; | 3714 ncbiTaxonId = _json["ncbiTaxonId"]; |
| 5604 } | 3715 } |
| 5605 if (_json.containsKey("referenceIds")) { | 3716 if (_json.containsKey("referenceIds")) { |
| 5606 referenceIds = _json["referenceIds"]; | 3717 referenceIds = _json["referenceIds"]; |
| 5607 } | 3718 } |
| 5608 if (_json.containsKey("sourceAccessions")) { | 3719 if (_json.containsKey("sourceAccessions")) { |
| 5609 sourceAccessions = _json["sourceAccessions"]; | 3720 sourceAccessions = _json["sourceAccessions"]; |
| 5610 } | 3721 } |
| 5611 if (_json.containsKey("sourceURI")) { | 3722 if (_json.containsKey("sourceUri")) { |
| 5612 sourceURI = _json["sourceURI"]; | 3723 sourceUri = _json["sourceUri"]; |
| 5613 } | 3724 } |
| 5614 } | 3725 } |
| 5615 | 3726 |
| 5616 core.Map toJson() { | 3727 core.Map toJson() { |
| 5617 var _json = new core.Map(); | 3728 var _json = new core.Map(); |
| 5618 if (assemblyId != null) { | 3729 if (assemblyId != null) { |
| 5619 _json["assemblyId"] = assemblyId; | 3730 _json["assemblyId"] = assemblyId; |
| 5620 } | 3731 } |
| 5621 if (description != null) { | 3732 if (description != null) { |
| 5622 _json["description"] = description; | 3733 _json["description"] = description; |
| 5623 } | 3734 } |
| 5624 if (id != null) { | 3735 if (id != null) { |
| 5625 _json["id"] = id; | 3736 _json["id"] = id; |
| 5626 } | 3737 } |
| 5627 if (md5checksum != null) { | 3738 if (md5checksum != null) { |
| 5628 _json["md5checksum"] = md5checksum; | 3739 _json["md5checksum"] = md5checksum; |
| 5629 } | 3740 } |
| 5630 if (ncbiTaxonId != null) { | 3741 if (ncbiTaxonId != null) { |
| 5631 _json["ncbiTaxonId"] = ncbiTaxonId; | 3742 _json["ncbiTaxonId"] = ncbiTaxonId; |
| 5632 } | 3743 } |
| 5633 if (referenceIds != null) { | 3744 if (referenceIds != null) { |
| 5634 _json["referenceIds"] = referenceIds; | 3745 _json["referenceIds"] = referenceIds; |
| 5635 } | 3746 } |
| 5636 if (sourceAccessions != null) { | 3747 if (sourceAccessions != null) { |
| 5637 _json["sourceAccessions"] = sourceAccessions; | 3748 _json["sourceAccessions"] = sourceAccessions; |
| 5638 } | 3749 } |
| 5639 if (sourceURI != null) { | 3750 if (sourceUri != null) { |
| 5640 _json["sourceURI"] = sourceURI; | 3751 _json["sourceUri"] = sourceUri; |
| 5641 } | 3752 } |
| 5642 return _json; | 3753 return _json; |
| 5643 } | 3754 } |
| 5644 } | |
| 5645 | |
| 5646 class SearchAnnotationSetsRequest { | |
| 5647 /** | |
| 5648 * The dataset IDs to search within. Caller must have READ access to these | |
| 5649 * datasets. | |
| 5650 */ | |
| 5651 core.List<core.String> datasetIds; | |
| 5652 /** | |
| 5653 * Only return annotations sets for which a substring of the name matches this | |
| 5654 * string (case insensitive). | |
| 5655 */ | |
| 5656 core.String name; | |
| 5657 /** | |
| 5658 * Specifies number of results to return in a single page. If unspecified, it | |
| 5659 * will default to 128. The maximum value is 1024. | |
| 5660 */ | |
| 5661 core.int pageSize; | |
| 5662 /** | |
| 5663 * The continuation token, which is used to page through large result sets. To | |
| 5664 * get the next page of results, set this parameter to the value of | |
| 5665 * nextPageToken from the previous response. | |
| 5666 */ | |
| 5667 core.String pageToken; | |
| 5668 /** | |
| 5669 * If specified, only annotation sets associated with the given reference set | |
| 5670 * are returned. | |
| 5671 */ | |
| 5672 core.String referenceSetId; | |
| 5673 /** | |
| 5674 * If specified, only annotation sets that have any of these types are | |
| 5675 * returned. | |
| 5676 */ | |
| 5677 core.List<core.String> types; | |
| 5678 | |
| 5679 SearchAnnotationSetsRequest(); | |
| 5680 | |
| 5681 SearchAnnotationSetsRequest.fromJson(core.Map _json) { | |
| 5682 if (_json.containsKey("datasetIds")) { | |
| 5683 datasetIds = _json["datasetIds"]; | |
| 5684 } | |
| 5685 if (_json.containsKey("name")) { | |
| 5686 name = _json["name"]; | |
| 5687 } | |
| 5688 if (_json.containsKey("pageSize")) { | |
| 5689 pageSize = _json["pageSize"]; | |
| 5690 } | |
| 5691 if (_json.containsKey("pageToken")) { | |
| 5692 pageToken = _json["pageToken"]; | |
| 5693 } | |
| 5694 if (_json.containsKey("referenceSetId")) { | |
| 5695 referenceSetId = _json["referenceSetId"]; | |
| 5696 } | |
| 5697 if (_json.containsKey("types")) { | |
| 5698 types = _json["types"]; | |
| 5699 } | |
| 5700 } | |
| 5701 | |
| 5702 core.Map toJson() { | |
| 5703 var _json = new core.Map(); | |
| 5704 if (datasetIds != null) { | |
| 5705 _json["datasetIds"] = datasetIds; | |
| 5706 } | |
| 5707 if (name != null) { | |
| 5708 _json["name"] = name; | |
| 5709 } | |
| 5710 if (pageSize != null) { | |
| 5711 _json["pageSize"] = pageSize; | |
| 5712 } | |
| 5713 if (pageToken != null) { | |
| 5714 _json["pageToken"] = pageToken; | |
| 5715 } | |
| 5716 if (referenceSetId != null) { | |
| 5717 _json["referenceSetId"] = referenceSetId; | |
| 5718 } | |
| 5719 if (types != null) { | |
| 5720 _json["types"] = types; | |
| 5721 } | |
| 5722 return _json; | |
| 5723 } | |
| 5724 } | |
| 5725 | |
| 5726 class SearchAnnotationSetsResponse { | |
| 5727 /** The matching annotation sets. */ | |
| 5728 core.List<AnnotationSet> annotationSets; | |
| 5729 /** | |
| 5730 * The continuation token, which is used to page through large result sets. | |
| 5731 * Provide this value in a subsequent request to return the next page of | |
| 5732 * results. This field will be empty if there aren't any additional results. | |
| 5733 */ | |
| 5734 core.String nextPageToken; | |
| 5735 | |
| 5736 SearchAnnotationSetsResponse(); | |
| 5737 | |
| 5738 SearchAnnotationSetsResponse.fromJson(core.Map _json) { | |
| 5739 if (_json.containsKey("annotationSets")) { | |
| 5740 annotationSets = _json["annotationSets"].map((value) => new AnnotationSet.
fromJson(value)).toList(); | |
| 5741 } | |
| 5742 if (_json.containsKey("nextPageToken")) { | |
| 5743 nextPageToken = _json["nextPageToken"]; | |
| 5744 } | |
| 5745 } | |
| 5746 | |
| 5747 core.Map toJson() { | |
| 5748 var _json = new core.Map(); | |
| 5749 if (annotationSets != null) { | |
| 5750 _json["annotationSets"] = annotationSets.map((value) => (value).toJson()).
toList(); | |
| 5751 } | |
| 5752 if (nextPageToken != null) { | |
| 5753 _json["nextPageToken"] = nextPageToken; | |
| 5754 } | |
| 5755 return _json; | |
| 5756 } | |
| 5757 } | |
| 5758 | |
| 5759 class SearchAnnotationsRequest { | |
| 5760 /** | |
| 5761 * The annotation sets to search within. The caller must have READ access to | |
| 5762 * these annotation sets. Required. All queried annotation sets must have the | |
| 5763 * same type. | |
| 5764 */ | |
| 5765 core.List<core.String> annotationSetIds; | |
| 5766 /** | |
| 5767 * Specifies number of results to return in a single page. If unspecified, it | |
| 5768 * will default to 256. The maximum value is 2048. | |
| 5769 */ | |
| 5770 core.int pageSize; | |
| 5771 /** | |
| 5772 * The continuation token, which is used to page through large result sets. To | |
| 5773 * get the next page of results, set this parameter to the value of | |
| 5774 * nextPageToken from the previous response. | |
| 5775 */ | |
| 5776 core.String pageToken; | |
| 5777 /** | |
| 5778 * If specified, this query matches only annotations that overlap this range. | |
| 5779 */ | |
| 5780 QueryRange range; | |
| 5781 | |
| 5782 SearchAnnotationsRequest(); | |
| 5783 | |
| 5784 SearchAnnotationsRequest.fromJson(core.Map _json) { | |
| 5785 if (_json.containsKey("annotationSetIds")) { | |
| 5786 annotationSetIds = _json["annotationSetIds"]; | |
| 5787 } | |
| 5788 if (_json.containsKey("pageSize")) { | |
| 5789 pageSize = _json["pageSize"]; | |
| 5790 } | |
| 5791 if (_json.containsKey("pageToken")) { | |
| 5792 pageToken = _json["pageToken"]; | |
| 5793 } | |
| 5794 if (_json.containsKey("range")) { | |
| 5795 range = new QueryRange.fromJson(_json["range"]); | |
| 5796 } | |
| 5797 } | |
| 5798 | |
| 5799 core.Map toJson() { | |
| 5800 var _json = new core.Map(); | |
| 5801 if (annotationSetIds != null) { | |
| 5802 _json["annotationSetIds"] = annotationSetIds; | |
| 5803 } | |
| 5804 if (pageSize != null) { | |
| 5805 _json["pageSize"] = pageSize; | |
| 5806 } | |
| 5807 if (pageToken != null) { | |
| 5808 _json["pageToken"] = pageToken; | |
| 5809 } | |
| 5810 if (range != null) { | |
| 5811 _json["range"] = (range).toJson(); | |
| 5812 } | |
| 5813 return _json; | |
| 5814 } | |
| 5815 } | |
| 5816 | |
| 5817 class SearchAnnotationsResponse { | |
| 5818 /** The matching annotations. */ | |
| 5819 core.List<Annotation> annotations; | |
| 5820 /** | |
| 5821 * The continuation token, which is used to page through large result sets. | |
| 5822 * Provide this value in a subsequent request to return the next page of | |
| 5823 * results. This field will be empty if there aren't any additional results. | |
| 5824 */ | |
| 5825 core.String nextPageToken; | |
| 5826 | |
| 5827 SearchAnnotationsResponse(); | |
| 5828 | |
| 5829 SearchAnnotationsResponse.fromJson(core.Map _json) { | |
| 5830 if (_json.containsKey("annotations")) { | |
| 5831 annotations = _json["annotations"].map((value) => new Annotation.fromJson(
value)).toList(); | |
| 5832 } | |
| 5833 if (_json.containsKey("nextPageToken")) { | |
| 5834 nextPageToken = _json["nextPageToken"]; | |
| 5835 } | |
| 5836 } | |
| 5837 | |
| 5838 core.Map toJson() { | |
| 5839 var _json = new core.Map(); | |
| 5840 if (annotations != null) { | |
| 5841 _json["annotations"] = annotations.map((value) => (value).toJson()).toList
(); | |
| 5842 } | |
| 5843 if (nextPageToken != null) { | |
| 5844 _json["nextPageToken"] = nextPageToken; | |
| 5845 } | |
| 5846 return _json; | |
| 5847 } | |
| 5848 } | 3755 } |
| 5849 | 3756 |
| 5850 /** The call set search request. */ | 3757 /** The call set search request. */ |
| 5851 class SearchCallSetsRequest { | 3758 class SearchCallSetsRequest { |
| 5852 /** | 3759 /** |
| 5853 * Only return call sets for which a substring of the name matches this | 3760 * Only return call sets for which a substring of the name matches this |
| 5854 * string. | 3761 * string. |
| 5855 */ | 3762 */ |
| 5856 core.String name; | 3763 core.String name; |
| 5857 /** | 3764 /** |
| 5858 * The maximum number of call sets to return. If unspecified, defaults to | 3765 * The maximum number of call sets to return. If unspecified, defaults to |
| 5859 * 1000. | 3766 * 1000. |
| 5860 */ | 3767 */ |
| 5861 core.int pageSize; | 3768 core.int pageSize; |
| 5862 /** | 3769 /** |
| 5863 * The continuation token, which is used to page through large result sets. To | 3770 * The continuation token, which is used to page through large result sets. To |
| 5864 * get the next page of results, set this parameter to the value of | 3771 * get the next page of results, set this parameter to the value of |
| 5865 * nextPageToken from the previous response. | 3772 * `nextPageToken` from the previous response. |
| 5866 */ | 3773 */ |
| 5867 core.String pageToken; | 3774 core.String pageToken; |
| 5868 /** | 3775 /** |
| 5869 * Restrict the query to call sets within the given variant sets. At least one | 3776 * Restrict the query to call sets within the given variant sets. At least one |
| 5870 * ID must be provided. | 3777 * ID must be provided. |
| 5871 */ | 3778 */ |
| 5872 core.List<core.String> variantSetIds; | 3779 core.List<core.String> variantSetIds; |
| 5873 | 3780 |
| 5874 SearchCallSetsRequest(); | 3781 SearchCallSetsRequest(); |
| 5875 | 3782 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5918 core.String nextPageToken; | 3825 core.String nextPageToken; |
| 5919 | 3826 |
| 5920 SearchCallSetsResponse(); | 3827 SearchCallSetsResponse(); |
| 5921 | 3828 |
| 5922 SearchCallSetsResponse.fromJson(core.Map _json) { | 3829 SearchCallSetsResponse.fromJson(core.Map _json) { |
| 5923 if (_json.containsKey("callSets")) { | 3830 if (_json.containsKey("callSets")) { |
| 5924 callSets = _json["callSets"].map((value) => new CallSet.fromJson(value)).t
oList(); | 3831 callSets = _json["callSets"].map((value) => new CallSet.fromJson(value)).t
oList(); |
| 5925 } | 3832 } |
| 5926 if (_json.containsKey("nextPageToken")) { | 3833 if (_json.containsKey("nextPageToken")) { |
| 5927 nextPageToken = _json["nextPageToken"]; | 3834 nextPageToken = _json["nextPageToken"]; |
| 5928 } | |
| 5929 } | |
| 5930 | |
| 5931 core.Map toJson() { | |
| 5932 var _json = new core.Map(); | |
| 5933 if (callSets != null) { | |
| 5934 _json["callSets"] = callSets.map((value) => (value).toJson()).toList(); | |
| 5935 } | |
| 5936 if (nextPageToken != null) { | |
| 5937 _json["nextPageToken"] = nextPageToken; | |
| 5938 } | |
| 5939 return _json; | |
| 5940 } | |
| 5941 } | |
| 5942 | |
| 5943 /** The jobs search request. */ | |
| 5944 class SearchJobsRequest { | |
| 5945 /** | |
| 5946 * If specified, only jobs created on or after this date, given in | |
| 5947 * milliseconds since Unix epoch, will be returned. | |
| 5948 */ | |
| 5949 core.String createdAfter; | |
| 5950 /** | |
| 5951 * If specified, only jobs created prior to this date, given in milliseconds | |
| 5952 * since Unix epoch, will be returned. | |
| 5953 */ | |
| 5954 core.String createdBefore; | |
| 5955 /** | |
| 5956 * Specifies the number of results to return in a single page. Defaults to | |
| 5957 * 128. The maximum value is 256. | |
| 5958 */ | |
| 5959 core.int pageSize; | |
| 5960 /** | |
| 5961 * The continuation token which is used to page through large result sets. To | |
| 5962 * get the next page of results, set this parameter to the value of the | |
| 5963 * nextPageToken from the previous response. | |
| 5964 */ | |
| 5965 core.String pageToken; | |
| 5966 /** | |
| 5967 * Required. Only return jobs which belong to this Google Developers Console | |
| 5968 * project. | |
| 5969 */ | |
| 5970 core.String projectNumber; | |
| 5971 /** Only return jobs which have a matching status. */ | |
| 5972 core.List<core.String> status; | |
| 5973 | |
| 5974 SearchJobsRequest(); | |
| 5975 | |
| 5976 SearchJobsRequest.fromJson(core.Map _json) { | |
| 5977 if (_json.containsKey("createdAfter")) { | |
| 5978 createdAfter = _json["createdAfter"]; | |
| 5979 } | |
| 5980 if (_json.containsKey("createdBefore")) { | |
| 5981 createdBefore = _json["createdBefore"]; | |
| 5982 } | |
| 5983 if (_json.containsKey("pageSize")) { | |
| 5984 pageSize = _json["pageSize"]; | |
| 5985 } | |
| 5986 if (_json.containsKey("pageToken")) { | |
| 5987 pageToken = _json["pageToken"]; | |
| 5988 } | |
| 5989 if (_json.containsKey("projectNumber")) { | |
| 5990 projectNumber = _json["projectNumber"]; | |
| 5991 } | |
| 5992 if (_json.containsKey("status")) { | |
| 5993 status = _json["status"]; | |
| 5994 } | |
| 5995 } | |
| 5996 | |
| 5997 core.Map toJson() { | |
| 5998 var _json = new core.Map(); | |
| 5999 if (createdAfter != null) { | |
| 6000 _json["createdAfter"] = createdAfter; | |
| 6001 } | |
| 6002 if (createdBefore != null) { | |
| 6003 _json["createdBefore"] = createdBefore; | |
| 6004 } | |
| 6005 if (pageSize != null) { | |
| 6006 _json["pageSize"] = pageSize; | |
| 6007 } | |
| 6008 if (pageToken != null) { | |
| 6009 _json["pageToken"] = pageToken; | |
| 6010 } | |
| 6011 if (projectNumber != null) { | |
| 6012 _json["projectNumber"] = projectNumber; | |
| 6013 } | |
| 6014 if (status != null) { | |
| 6015 _json["status"] = status; | |
| 6016 } | |
| 6017 return _json; | |
| 6018 } | |
| 6019 } | |
| 6020 | |
| 6021 /** The job search response. */ | |
| 6022 class SearchJobsResponse { | |
| 6023 /** The list of jobs results, ordered newest to oldest. */ | |
| 6024 core.List<Job> jobs; | |
| 6025 /** | |
| 6026 * The continuation token which is used to page through large result sets. | |
| 6027 * Provide this value is a subsequent request to return the next page of | |
| 6028 * results. This field will be empty if there are no more results. | |
| 6029 */ | |
| 6030 core.String nextPageToken; | |
| 6031 | |
| 6032 SearchJobsResponse(); | |
| 6033 | |
| 6034 SearchJobsResponse.fromJson(core.Map _json) { | |
| 6035 if (_json.containsKey("jobs")) { | |
| 6036 jobs = _json["jobs"].map((value) => new Job.fromJson(value)).toList(); | |
| 6037 } | |
| 6038 if (_json.containsKey("nextPageToken")) { | |
| 6039 nextPageToken = _json["nextPageToken"]; | |
| 6040 } | 3835 } |
| 6041 } | 3836 } |
| 6042 | 3837 |
| 6043 core.Map toJson() { | 3838 core.Map toJson() { |
| 6044 var _json = new core.Map(); | 3839 var _json = new core.Map(); |
| 6045 if (jobs != null) { | 3840 if (callSets != null) { |
| 6046 _json["jobs"] = jobs.map((value) => (value).toJson()).toList(); | 3841 _json["callSets"] = callSets.map((value) => (value).toJson()).toList(); |
| 6047 } | 3842 } |
| 6048 if (nextPageToken != null) { | 3843 if (nextPageToken != null) { |
| 6049 _json["nextPageToken"] = nextPageToken; | 3844 _json["nextPageToken"] = nextPageToken; |
| 6050 } | 3845 } |
| 6051 return _json; | 3846 return _json; |
| 6052 } | 3847 } |
| 6053 } | 3848 } |
| 6054 | 3849 |
| 6055 /** The read group set search request. */ | 3850 /** The read group set search request. */ |
| 6056 class SearchReadGroupSetsRequest { | 3851 class SearchReadGroupSetsRequest { |
| 6057 /** | 3852 /** |
| 6058 * Restricts this query to read group sets within the given datasets. At least | 3853 * Restricts this query to read group sets within the given datasets. At least |
| 6059 * one ID must be provided. | 3854 * one ID must be provided. |
| 6060 */ | 3855 */ |
| 6061 core.List<core.String> datasetIds; | 3856 core.List<core.String> datasetIds; |
| 6062 /** | 3857 /** |
| 6063 * Only return read group sets for which a substring of the name matches this | 3858 * Only return read group sets for which a substring of the name matches this |
| 6064 * string. | 3859 * string. |
| 6065 */ | 3860 */ |
| 6066 core.String name; | 3861 core.String name; |
| 6067 /** | 3862 /** |
| 6068 * Specifies number of results to return in a single page. If unspecified, it | 3863 * Specifies number of results to return in a single page. If unspecified, it |
| 6069 * will default to 256. The maximum value is 1024. | 3864 * will default to 256. The maximum value is 1024. |
| 6070 */ | 3865 */ |
| 6071 core.int pageSize; | 3866 core.int pageSize; |
| 6072 /** | 3867 /** |
| 6073 * The continuation token, which is used to page through large result sets. To | 3868 * The continuation token, which is used to page through large result sets. To |
| 6074 * get the next page of results, set this parameter to the value of | 3869 * get the next page of results, set this parameter to the value of |
| 6075 * nextPageToken from the previous response. | 3870 * `nextPageToken` from the previous response. |
| 6076 */ | 3871 */ |
| 6077 core.String pageToken; | 3872 core.String pageToken; |
| 6078 | 3873 |
| 6079 SearchReadGroupSetsRequest(); | 3874 SearchReadGroupSetsRequest(); |
| 6080 | 3875 |
| 6081 SearchReadGroupSetsRequest.fromJson(core.Map _json) { | 3876 SearchReadGroupSetsRequest.fromJson(core.Map _json) { |
| 6082 if (_json.containsKey("datasetIds")) { | 3877 if (_json.containsKey("datasetIds")) { |
| 6083 datasetIds = _json["datasetIds"]; | 3878 datasetIds = _json["datasetIds"]; |
| 6084 } | 3879 } |
| 6085 if (_json.containsKey("name")) { | 3880 if (_json.containsKey("name")) { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6142 _json["readGroupSets"] = readGroupSets.map((value) => (value).toJson()).to
List(); | 3937 _json["readGroupSets"] = readGroupSets.map((value) => (value).toJson()).to
List(); |
| 6143 } | 3938 } |
| 6144 return _json; | 3939 return _json; |
| 6145 } | 3940 } |
| 6146 } | 3941 } |
| 6147 | 3942 |
| 6148 /** The read search request. */ | 3943 /** The read search request. */ |
| 6149 class SearchReadsRequest { | 3944 class SearchReadsRequest { |
| 6150 /** | 3945 /** |
| 6151 * The end position of the range on the reference, 0-based exclusive. If | 3946 * The end position of the range on the reference, 0-based exclusive. If |
| 6152 * specified, referenceName must also be specified. | 3947 * specified, `referenceName` must also be specified. |
| 6153 */ | 3948 */ |
| 6154 core.String end; | 3949 core.String end; |
| 6155 /** | 3950 /** |
| 6156 * Specifies number of results to return in a single page. If unspecified, it | 3951 * Specifies number of results to return in a single page. If unspecified, it |
| 6157 * will default to 256. The maximum value is 2048. | 3952 * will default to 256. The maximum value is 2048. |
| 6158 */ | 3953 */ |
| 6159 core.int pageSize; | 3954 core.int pageSize; |
| 6160 /** | 3955 /** |
| 6161 * The continuation token, which is used to page through large result sets. To | 3956 * The continuation token, which is used to page through large result sets. To |
| 6162 * get the next page of results, set this parameter to the value of | 3957 * get the next page of results, set this parameter to the value of |
| 6163 * nextPageToken from the previous response. | 3958 * `nextPageToken` from the previous response. |
| 6164 */ | 3959 */ |
| 6165 core.String pageToken; | 3960 core.String pageToken; |
| 6166 /** | 3961 /** |
| 6167 * The IDs of the read groups within which to search for reads. All specified | 3962 * The IDs of the read groups within which to search for reads. All specified |
| 6168 * read groups must belong to the same read group sets. Must specify one of | 3963 * read groups must belong to the same read group sets. Must specify one of |
| 6169 * readGroupSetIds or readGroupIds. | 3964 * `readGroupSetIds` or `readGroupIds`. |
| 6170 */ | 3965 */ |
| 6171 core.List<core.String> readGroupIds; | 3966 core.List<core.String> readGroupIds; |
| 6172 /** | 3967 /** |
| 6173 * The IDs of the read groups sets within which to search for reads. All | 3968 * The IDs of the read groups sets within which to search for reads. All |
| 6174 * specified read group sets must be aligned against a common set of reference | 3969 * specified read group sets must be aligned against a common set of reference |
| 6175 * sequences; this defines the genomic coordinates for the query. Must specify | 3970 * sequences; this defines the genomic coordinates for the query. Must specify |
| 6176 * one of readGroupSetIds or readGroupIds. | 3971 * one of `readGroupSetIds` or `readGroupIds`. |
| 6177 */ | 3972 */ |
| 6178 core.List<core.String> readGroupSetIds; | 3973 core.List<core.String> readGroupSetIds; |
| 6179 /** | 3974 /** |
| 6180 * The reference sequence name, for example chr1, 1, or chrX. If set to *, | 3975 * The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to |
| 6181 * only unmapped reads are returned. | 3976 * *, only unmapped reads are returned. |
| 6182 */ | 3977 */ |
| 6183 core.String referenceName; | 3978 core.String referenceName; |
| 6184 /** | 3979 /** |
| 6185 * The start position of the range on the reference, 0-based inclusive. If | 3980 * The start position of the range on the reference, 0-based inclusive. If |
| 6186 * specified, referenceName must also be specified. | 3981 * specified, `referenceName` must also be specified. |
| 6187 */ | 3982 */ |
| 6188 core.String start; | 3983 core.String start; |
| 6189 | 3984 |
| 6190 SearchReadsRequest(); | 3985 SearchReadsRequest(); |
| 6191 | 3986 |
| 6192 SearchReadsRequest.fromJson(core.Map _json) { | 3987 SearchReadsRequest.fromJson(core.Map _json) { |
| 6193 if (_json.containsKey("end")) { | 3988 if (_json.containsKey("end")) { |
| 6194 end = _json["end"]; | 3989 end = _json["end"]; |
| 6195 } | 3990 } |
| 6196 if (_json.containsKey("pageSize")) { | 3991 if (_json.containsKey("pageSize")) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6238 } | 4033 } |
| 6239 return _json; | 4034 return _json; |
| 6240 } | 4035 } |
| 6241 } | 4036 } |
| 6242 | 4037 |
| 6243 /** The read search response. */ | 4038 /** The read search response. */ |
| 6244 class SearchReadsResponse { | 4039 class SearchReadsResponse { |
| 6245 /** | 4040 /** |
| 6246 * The list of matching alignments sorted by mapped genomic coordinate, if | 4041 * The list of matching alignments sorted by mapped genomic coordinate, if |
| 6247 * any, ascending in position within the same reference. Unmapped reads, which | 4042 * any, ascending in position within the same reference. Unmapped reads, which |
| 6248 * have no position, are returned last and are further sorted in ascending | 4043 * have no position, are returned contiguously and are sorted in ascending |
| 6249 * lexicographic order by fragment name. | 4044 * lexicographic order by fragment name. |
| 6250 */ | 4045 */ |
| 6251 core.List<Read> alignments; | 4046 core.List<Read> alignments; |
| 6252 /** | 4047 /** |
| 6253 * The continuation token, which is used to page through large result sets. | 4048 * The continuation token, which is used to page through large result sets. |
| 6254 * Provide this value in a subsequent request to return the next page of | 4049 * Provide this value in a subsequent request to return the next page of |
| 6255 * results. This field will be empty if there aren't any additional results. | 4050 * results. This field will be empty if there aren't any additional results. |
| 6256 */ | 4051 */ |
| 6257 core.String nextPageToken; | 4052 core.String nextPageToken; |
| 6258 | 4053 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6275 if (nextPageToken != null) { | 4070 if (nextPageToken != null) { |
| 6276 _json["nextPageToken"] = nextPageToken; | 4071 _json["nextPageToken"] = nextPageToken; |
| 6277 } | 4072 } |
| 6278 return _json; | 4073 return _json; |
| 6279 } | 4074 } |
| 6280 } | 4075 } |
| 6281 | 4076 |
| 6282 class SearchReferenceSetsRequest { | 4077 class SearchReferenceSetsRequest { |
| 6283 /** | 4078 /** |
| 6284 * If present, return references for which the accession matches any of these | 4079 * If present, return references for which the accession matches any of these |
| 6285 * strings. Best to give a version number, for example GCF_000001405.26. If | 4080 * strings. Best to give a version number, for example `GCF_000001405.26`. If |
| 6286 * only the main accession number is given then all records with that main | 4081 * only the main accession number is given then all records with that main |
| 6287 * accession will be returned, whichever version. Note that different versions | 4082 * accession will be returned, whichever version. Note that different versions |
| 6288 * will have different sequences. | 4083 * will have different sequences. |
| 6289 */ | 4084 */ |
| 6290 core.List<core.String> accessions; | 4085 core.List<core.String> accessions; |
| 6291 /** | 4086 /** |
| 6292 * If present, return reference sets for which a substring of their assemblyId | 4087 * If present, return reference sets for which a substring of their |
| 6293 * matches this string (case insensitive). | 4088 * `assemblyId` matches this string (case insensitive). |
| 6294 */ | 4089 */ |
| 6295 core.String assemblyId; | 4090 core.String assemblyId; |
| 6296 /** | 4091 /** |
| 6297 * If present, return references for which the md5checksum matches. See | 4092 * If present, return references for which the `md5checksum` matches. See |
| 6298 * ReferenceSet.md5checksum for details. | 4093 * `ReferenceSet.md5checksum` for details. |
| 6299 */ | 4094 */ |
| 6300 core.List<core.String> md5checksums; | 4095 core.List<core.String> md5checksums; |
| 6301 /** Specifies the maximum number of results to return in a single page. */ | 4096 /** Specifies the maximum number of results to return in a single page. */ |
| 6302 core.int pageSize; | 4097 core.int pageSize; |
| 6303 /** | 4098 /** |
| 6304 * The continuation token, which is used to page through large result sets. To | 4099 * The continuation token, which is used to page through large result sets. To |
| 6305 * get the next page of results, set this parameter to the value of | 4100 * get the next page of results, set this parameter to the value of |
| 6306 * nextPageToken from the previous response. | 4101 * `nextPageToken` from the previous response. |
| 6307 */ | 4102 */ |
| 6308 core.String pageToken; | 4103 core.String pageToken; |
| 6309 | 4104 |
| 6310 SearchReferenceSetsRequest(); | 4105 SearchReferenceSetsRequest(); |
| 6311 | 4106 |
| 6312 SearchReferenceSetsRequest.fromJson(core.Map _json) { | 4107 SearchReferenceSetsRequest.fromJson(core.Map _json) { |
| 6313 if (_json.containsKey("accessions")) { | 4108 if (_json.containsKey("accessions")) { |
| 6314 accessions = _json["accessions"]; | 4109 accessions = _json["accessions"]; |
| 6315 } | 4110 } |
| 6316 if (_json.containsKey("assemblyId")) { | 4111 if (_json.containsKey("assemblyId")) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6377 if (referenceSets != null) { | 4172 if (referenceSets != null) { |
| 6378 _json["referenceSets"] = referenceSets.map((value) => (value).toJson()).to
List(); | 4173 _json["referenceSets"] = referenceSets.map((value) => (value).toJson()).to
List(); |
| 6379 } | 4174 } |
| 6380 return _json; | 4175 return _json; |
| 6381 } | 4176 } |
| 6382 } | 4177 } |
| 6383 | 4178 |
| 6384 class SearchReferencesRequest { | 4179 class SearchReferencesRequest { |
| 6385 /** | 4180 /** |
| 6386 * If present, return references for which the accession matches this string. | 4181 * If present, return references for which the accession matches this string. |
| 6387 * Best to give a version number, for example GCF_000001405.26. If only the | 4182 * Best to give a version number, for example `GCF_000001405.26`. If only the |
| 6388 * main accession number is given then all records with that main accession | 4183 * main accession number is given then all records with that main accession |
| 6389 * will be returned, whichever version. Note that different versions will have | 4184 * will be returned, whichever version. Note that different versions will have |
| 6390 * different sequences. | 4185 * different sequences. |
| 6391 */ | 4186 */ |
| 6392 core.List<core.String> accessions; | 4187 core.List<core.String> accessions; |
| 6393 /** | 4188 /** |
| 6394 * If present, return references for which the md5checksum matches. See | 4189 * If present, return references for which the `md5checksum` matches. See |
| 6395 * Reference.md5checksum for construction details. | 4190 * `Reference.md5checksum` for construction details. |
| 6396 */ | 4191 */ |
| 6397 core.List<core.String> md5checksums; | 4192 core.List<core.String> md5checksums; |
| 6398 /** Specifies the maximum number of results to return in a single page. */ | 4193 /** Specifies the maximum number of results to return in a single page. */ |
| 6399 core.int pageSize; | 4194 core.int pageSize; |
| 6400 /** | 4195 /** |
| 6401 * The continuation token, which is used to page through large result sets. To | 4196 * The continuation token, which is used to page through large result sets. To |
| 6402 * get the next page of results, set this parameter to the value of | 4197 * get the next page of results, set this parameter to the value of |
| 6403 * nextPageToken from the previous response. | 4198 * `nextPageToken` from the previous response. |
| 6404 */ | 4199 */ |
| 6405 core.String pageToken; | 4200 core.String pageToken; |
| 6406 /** If present, return only references which belong to this reference set. */ | 4201 /** If present, return only references which belong to this reference set. */ |
| 6407 core.String referenceSetId; | 4202 core.String referenceSetId; |
| 6408 | 4203 |
| 6409 SearchReferencesRequest(); | 4204 SearchReferencesRequest(); |
| 6410 | 4205 |
| 6411 SearchReferencesRequest.fromJson(core.Map _json) { | 4206 SearchReferencesRequest.fromJson(core.Map _json) { |
| 6412 if (_json.containsKey("accessions")) { | 4207 if (_json.containsKey("accessions")) { |
| 6413 accessions = _json["accessions"]; | 4208 accessions = _json["accessions"]; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6485 /** | 4280 /** |
| 6486 * Exactly one dataset ID must be provided here. Only variant sets which | 4281 * Exactly one dataset ID must be provided here. Only variant sets which |
| 6487 * belong to this dataset will be returned. | 4282 * belong to this dataset will be returned. |
| 6488 */ | 4283 */ |
| 6489 core.List<core.String> datasetIds; | 4284 core.List<core.String> datasetIds; |
| 6490 /** The maximum number of variant sets to return in a request. */ | 4285 /** The maximum number of variant sets to return in a request. */ |
| 6491 core.int pageSize; | 4286 core.int pageSize; |
| 6492 /** | 4287 /** |
| 6493 * The continuation token, which is used to page through large result sets. To | 4288 * The continuation token, which is used to page through large result sets. To |
| 6494 * get the next page of results, set this parameter to the value of | 4289 * get the next page of results, set this parameter to the value of |
| 6495 * nextPageToken from the previous response. | 4290 * `nextPageToken` from the previous response. |
| 6496 */ | 4291 */ |
| 6497 core.String pageToken; | 4292 core.String pageToken; |
| 6498 | 4293 |
| 6499 SearchVariantSetsRequest(); | 4294 SearchVariantSetsRequest(); |
| 6500 | 4295 |
| 6501 SearchVariantSetsRequest.fromJson(core.Map _json) { | 4296 SearchVariantSetsRequest.fromJson(core.Map _json) { |
| 6502 if (_json.containsKey("datasetIds")) { | 4297 if (_json.containsKey("datasetIds")) { |
| 6503 datasetIds = _json["datasetIds"]; | 4298 datasetIds = _json["datasetIds"]; |
| 6504 } | 4299 } |
| 6505 if (_json.containsKey("pageSize")) { | 4300 if (_json.containsKey("pageSize")) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6579 * unspecified, defaults to 5000. | 4374 * unspecified, defaults to 5000. |
| 6580 */ | 4375 */ |
| 6581 core.int maxCalls; | 4376 core.int maxCalls; |
| 6582 /** | 4377 /** |
| 6583 * The maximum number of variants to return. If unspecified, defaults to 5000. | 4378 * The maximum number of variants to return. If unspecified, defaults to 5000. |
| 6584 */ | 4379 */ |
| 6585 core.int pageSize; | 4380 core.int pageSize; |
| 6586 /** | 4381 /** |
| 6587 * The continuation token, which is used to page through large result sets. To | 4382 * The continuation token, which is used to page through large result sets. To |
| 6588 * get the next page of results, set this parameter to the value of | 4383 * get the next page of results, set this parameter to the value of |
| 6589 * nextPageToken from the previous response. | 4384 * `nextPageToken` from the previous response. |
| 6590 */ | 4385 */ |
| 6591 core.String pageToken; | 4386 core.String pageToken; |
| 6592 /** Required. Only return variants in this reference sequence. */ | 4387 /** Required. Only return variants in this reference sequence. */ |
| 6593 core.String referenceName; | 4388 core.String referenceName; |
| 6594 /** | 4389 /** |
| 6595 * The beginning of the window (0-based, inclusive) for which overlapping | 4390 * The beginning of the window (0-based, inclusive) for which overlapping |
| 6596 * variants should be returned. If unspecified, defaults to 0. | 4391 * variants should be returned. If unspecified, defaults to 0. |
| 6597 */ | 4392 */ |
| 6598 core.String start; | 4393 core.String start; |
| 6599 /** Only return variants which have exactly this name. */ | 4394 /** Only return variants which have exactly this name. */ |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6698 _json["nextPageToken"] = nextPageToken; | 4493 _json["nextPageToken"] = nextPageToken; |
| 6699 } | 4494 } |
| 6700 if (variants != null) { | 4495 if (variants != null) { |
| 6701 _json["variants"] = variants.map((value) => (value).toJson()).toList(); | 4496 _json["variants"] = variants.map((value) => (value).toJson()).toList(); |
| 6702 } | 4497 } |
| 6703 return _json; | 4498 return _json; |
| 6704 } | 4499 } |
| 6705 } | 4500 } |
| 6706 | 4501 |
| 6707 /** | 4502 /** |
| 6708 * A transcript represents the assertion that a particular region of the | 4503 * The `Status` type defines a logical error model that is suitable for |
| 6709 * reference genome may be transcribed as RNA. | 4504 * different programming environments, including REST APIs and RPC APIs. It is |
| 4505 * used by [gRPC](https://github.com/grpc). The error model is designed to be: - |
| 4506 * Simple to use and understand for most users - Flexible enough to meet |
| 4507 * unexpected needs # Overview The `Status` message contains three pieces of |
| 4508 * data: error code, error message, and error details. The error code should be |
| 4509 * an enum value of [google.rpc.Code][google.rpc.Code], but it may accept |
| 4510 * additional error codes if needed. The error message should be a |
| 4511 * developer-facing English message that helps developers *understand* and |
| 4512 * *resolve* the error. If a localized user-facing error message is needed, put |
| 4513 * the localized message in the error details or localize it in the client. The |
| 4514 * optional error details may contain arbitrary information about the error. |
| 4515 * There is a predefined set of error detail types in the package `google.rpc` |
| 4516 * which can be used for common error conditions. # Language mapping The |
| 4517 * `Status` message is the logical representation of the error model, but it is |
| 4518 * not necessarily the actual wire format. When the `Status` message is exposed |
| 4519 * in different client libraries and different wire protocols, it can be mapped |
| 4520 * differently. For example, it will likely be mapped to some exceptions in |
| 4521 * Java, but more likely mapped to some error codes in C. # Other uses The error |
| 4522 * model and the `Status` message can be used in a variety of environments, |
| 4523 * either with or without APIs, to provide a consistent developer experience |
| 4524 * across different environments. Example uses of this error model include: - |
| 4525 * Partial errors. If a service needs to return partial errors to the client, it |
| 4526 * may embed the `Status` in the normal response to indicate the partial errors. |
| 4527 * - Workflow errors. A typical workflow has multiple steps. Each step may have |
| 4528 * a `Status` message for error reporting purpose. - Batch operations. If a |
| 4529 * client uses batch request and batch response, the `Status` message should be |
| 4530 * used directly inside batch response, one for each error sub-response. - |
| 4531 * Asynchronous operations. If an API call embeds asynchronous operation results |
| 4532 * in its response, the status of those operations should be represented |
| 4533 * directly using the `Status` message. - Logging. If some API errors are stored |
| 4534 * in logs, the message `Status` could be used directly after any stripping |
| 4535 * needed for security/privacy reasons. |
| 6710 */ | 4536 */ |
| 6711 class Transcript { | 4537 class Status { |
| 6712 /** | 4538 /** |
| 6713 * The range of the coding sequence for this transcript, if any. To determine | 4539 * The status code, which should be an enum value of |
| 6714 * the exact ranges of coding sequence, intersect this range with those of the | 4540 * [google.rpc.Code][google.rpc.Code]. |
| 6715 * exons, if any. If there are any exons, the codingSequence must start and | 4541 */ |
| 6716 * end within them. | 4542 core.int code; |
| 4543 /** |
| 4544 * A list of messages that carry the error details. There will be a common set |
| 4545 * of message types for APIs to use. |
| 6717 * | 4546 * |
| 6718 * Note that in some cases, the reference genome will not exactly match the | 4547 * The values for Object must be JSON objects. It can consist of `num`, |
| 6719 * observed mRNA transcript e.g. due to variance in the source genome from | 4548 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 6720 * reference. In these cases, exon.frame will not necessarily match the | |
| 6721 * expected reference reading frame and coding exon reference bases cannot | |
| 6722 * necessarily be concatenated to produce the original transcript mRNA. | |
| 6723 */ | 4549 */ |
| 6724 TranscriptCodingSequence codingSequence; | 4550 core.List<core.Map<core.String, core.Object>> details; |
| 6725 /** | 4551 /** |
| 6726 * The exons that compose this transcript. This field should be unset for | 4552 * A developer-facing error message, which should be in English. Any |
| 6727 * genomes where transcript splicing does not occur, for example prokaryotes. | 4553 * user-facing error message should be localized and sent in the |
| 6728 * | 4554 * [google.rpc.Status.details][google.rpc.Status.details] field, or localized |
| 6729 * | 4555 * by the client. |
| 6730 * Introns are regions of the transcript that are not included in the spliced | |
| 6731 * RNA product. Though not explicitly modeled here, intron ranges can be | |
| 6732 * deduced; all regions of this transcript that are not exons are introns. | |
| 6733 * | |
| 6734 * | |
| 6735 * Exonic sequences do not necessarily code for a translational product (amino | |
| 6736 * acids). Only the regions of exons bounded by the codingSequence correspond | |
| 6737 * to coding DNA sequence. | |
| 6738 * | |
| 6739 * | |
| 6740 * Exons are ordered by start position and may not overlap. | |
| 6741 */ | 4556 */ |
| 6742 core.List<TranscriptExon> exons; | 4557 core.String message; |
| 6743 /** | |
| 6744 * The annotation ID of the gene from which this transcript is transcribed. | |
| 6745 */ | |
| 6746 core.String geneId; | |
| 6747 | 4558 |
| 6748 Transcript(); | 4559 Status(); |
| 6749 | 4560 |
| 6750 Transcript.fromJson(core.Map _json) { | 4561 Status.fromJson(core.Map _json) { |
| 6751 if (_json.containsKey("codingSequence")) { | 4562 if (_json.containsKey("code")) { |
| 6752 codingSequence = new TranscriptCodingSequence.fromJson(_json["codingSequen
ce"]); | 4563 code = _json["code"]; |
| 6753 } | 4564 } |
| 6754 if (_json.containsKey("exons")) { | 4565 if (_json.containsKey("details")) { |
| 6755 exons = _json["exons"].map((value) => new TranscriptExon.fromJson(value)).
toList(); | 4566 details = _json["details"]; |
| 6756 } | 4567 } |
| 6757 if (_json.containsKey("geneId")) { | 4568 if (_json.containsKey("message")) { |
| 6758 geneId = _json["geneId"]; | 4569 message = _json["message"]; |
| 6759 } | 4570 } |
| 6760 } | 4571 } |
| 6761 | 4572 |
| 6762 core.Map toJson() { | 4573 core.Map toJson() { |
| 6763 var _json = new core.Map(); | 4574 var _json = new core.Map(); |
| 6764 if (codingSequence != null) { | 4575 if (code != null) { |
| 6765 _json["codingSequence"] = (codingSequence).toJson(); | 4576 _json["code"] = code; |
| 6766 } | 4577 } |
| 6767 if (exons != null) { | 4578 if (details != null) { |
| 6768 _json["exons"] = exons.map((value) => (value).toJson()).toList(); | 4579 _json["details"] = details; |
| 6769 } | 4580 } |
| 6770 if (geneId != null) { | 4581 if (message != null) { |
| 6771 _json["geneId"] = geneId; | 4582 _json["message"] = message; |
| 6772 } | 4583 } |
| 6773 return _json; | 4584 return _json; |
| 6774 } | 4585 } |
| 6775 } | 4586 } |
| 6776 | 4587 |
| 6777 class TranscriptCodingSequence { | 4588 class UndeleteDatasetRequest { |
| 6778 /** | |
| 6779 * The end of the coding sequence on this annotation's reference sequence, | |
| 6780 * 0-based exclusive. Note that this position is relative to the reference | |
| 6781 * start, and not the containing annotation start. | |
| 6782 */ | |
| 6783 core.String end; | |
| 6784 /** | |
| 6785 * The start of the coding sequence on this annotation's reference sequence, | |
| 6786 * 0-based inclusive. Note that this position is relative to the reference | |
| 6787 * start, and not the containing annotation start. | |
| 6788 */ | |
| 6789 core.String start; | |
| 6790 | 4589 |
| 6791 TranscriptCodingSequence(); | 4590 UndeleteDatasetRequest(); |
| 6792 | 4591 |
| 6793 TranscriptCodingSequence.fromJson(core.Map _json) { | 4592 UndeleteDatasetRequest.fromJson(core.Map _json) { |
| 6794 if (_json.containsKey("end")) { | |
| 6795 end = _json["end"]; | |
| 6796 } | |
| 6797 if (_json.containsKey("start")) { | |
| 6798 start = _json["start"]; | |
| 6799 } | |
| 6800 } | 4593 } |
| 6801 | 4594 |
| 6802 core.Map toJson() { | 4595 core.Map toJson() { |
| 6803 var _json = new core.Map(); | 4596 var _json = new core.Map(); |
| 6804 if (end != null) { | |
| 6805 _json["end"] = end; | |
| 6806 } | |
| 6807 if (start != null) { | |
| 6808 _json["start"] = start; | |
| 6809 } | |
| 6810 return _json; | 4597 return _json; |
| 6811 } | 4598 } |
| 6812 } | 4599 } |
| 6813 | |
| 6814 class TranscriptExon { | |
| 6815 /** | |
| 6816 * The end position of the exon on this annotation's reference sequence, | |
| 6817 * 0-based exclusive. Note that this is relative to the reference start, and | |
| 6818 * not the containing annotation start. | |
| 6819 */ | |
| 6820 core.String end; | |
| 6821 /** | |
| 6822 * The frame of this exon. Contains a value of 0, 1, or 2, which indicates the | |
| 6823 * offset of the first coding base of the exon within the reading frame of the | |
| 6824 * coding DNA sequence, if any. This field is dependent on the strandedness of | |
| 6825 * this annotation (see Annotation.position.reverseStrand). For forward | |
| 6826 * stranded annotations, this offset is relative to the exon.start. For | |
| 6827 * reverse strand annotations, this offset is relative to the exon.end-1. | |
| 6828 * | |
| 6829 * Unset if this exon does not intersect the coding sequence. Upon creation of | |
| 6830 * a transcript, the frame must be populated for all or none of the coding | |
| 6831 * exons. | |
| 6832 */ | |
| 6833 Int32Value frame; | |
| 6834 /** | |
| 6835 * The start position of the exon on this annotation's reference sequence, | |
| 6836 * 0-based inclusive. Note that this is relative to the reference start, and | |
| 6837 * not the containing annotation start. | |
| 6838 */ | |
| 6839 core.String start; | |
| 6840 | |
| 6841 TranscriptExon(); | |
| 6842 | |
| 6843 TranscriptExon.fromJson(core.Map _json) { | |
| 6844 if (_json.containsKey("end")) { | |
| 6845 end = _json["end"]; | |
| 6846 } | |
| 6847 if (_json.containsKey("frame")) { | |
| 6848 frame = new Int32Value.fromJson(_json["frame"]); | |
| 6849 } | |
| 6850 if (_json.containsKey("start")) { | |
| 6851 start = _json["start"]; | |
| 6852 } | |
| 6853 } | |
| 6854 | |
| 6855 core.Map toJson() { | |
| 6856 var _json = new core.Map(); | |
| 6857 if (end != null) { | |
| 6858 _json["end"] = end; | |
| 6859 } | |
| 6860 if (frame != null) { | |
| 6861 _json["frame"] = (frame).toJson(); | |
| 6862 } | |
| 6863 if (start != null) { | |
| 6864 _json["start"] = start; | |
| 6865 } | |
| 6866 return _json; | |
| 6867 } | |
| 6868 } | |
| 6869 | 4600 |
| 6870 /** | 4601 /** |
| 6871 * A variant represents a change in DNA sequence relative to a reference | 4602 * A variant represents a change in DNA sequence relative to a reference |
| 6872 * sequence. For example, a variant could represent a SNP or an insertion. | 4603 * sequence. For example, a variant could represent a SNP or an insertion. |
| 6873 * Variants belong to a variant set. Each of the calls on a variant represent a | 4604 * Variants belong to a variant set. Each of the calls on a variant represent a |
| 6874 * determination of genotype with respect to that variant. For example, a call | 4605 * determination of genotype with respect to that variant. For example, a call |
| 6875 * might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a | 4606 * might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a |
| 6876 * sample named NA12345. A call belongs to a call set, which contains related | 4607 * sample named NA12345. A call belongs to a call set, which contains related |
| 6877 * calls typically from one sample. | 4608 * calls typically from one sample. |
| 6878 */ | 4609 */ |
| 6879 class Variant { | 4610 class Variant { |
| 6880 /** The bases that appear instead of the reference bases. */ | 4611 /** The bases that appear instead of the reference bases. */ |
| 6881 core.List<core.String> alternateBases; | 4612 core.List<core.String> alternateBases; |
| 6882 /** | 4613 /** |
| 6883 * The variant calls for this particular variant. Each one represents the | 4614 * The variant calls for this particular variant. Each one represents the |
| 6884 * determination of genotype with respect to this variant. | 4615 * determination of genotype with respect to this variant. |
| 6885 */ | 4616 */ |
| 6886 core.List<Call> calls; | 4617 core.List<VariantCall> calls; |
| 6887 /** The date this variant was created, in milliseconds from the epoch. */ | 4618 /** The date this variant was created, in milliseconds from the epoch. */ |
| 6888 core.String created; | 4619 core.String created; |
| 6889 /** | 4620 /** |
| 6890 * The end position (0-based) of this variant. This corresponds to the first | 4621 * The end position (0-based) of this variant. This corresponds to the first |
| 6891 * base after the last base in the reference allele. So, the length of the | 4622 * base after the last base in the reference allele. So, the length of the |
| 6892 * reference allele is (end - start). This is useful for variants that don't | 4623 * reference allele is (end - start). This is useful for variants that don't |
| 6893 * explicitly give alternate bases, for example large deletions. | 4624 * explicitly give alternate bases, for example large deletions. |
| 6894 */ | 4625 */ |
| 6895 core.String end; | 4626 core.String end; |
| 6896 /** | 4627 /** |
| 6897 * A list of filters (normally quality filters) this variant has failed. PASS | 4628 * A list of filters (normally quality filters) this variant has failed. |
| 6898 * indicates this variant has passed all filters. | 4629 * `PASS` indicates this variant has passed all filters. |
| 6899 */ | 4630 */ |
| 6900 core.List<core.String> filter; | 4631 core.List<core.String> filter; |
| 6901 /** The Google generated ID of the variant, immutable. */ | 4632 /** The server-generated variant ID, unique across all variants. */ |
| 6902 core.String id; | 4633 core.String id; |
| 6903 /** A string which maps to an array of values. */ | 4634 /** |
| 6904 core.Map<core.String, core.List<core.String>> info; | 4635 * A map of additional variant information. This must be of the form map |
| 4636 * (string key mapping to a list of string values). |
| 4637 * |
| 4638 * The values for Object must be JSON objects. It can consist of `num`, |
| 4639 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4640 */ |
| 4641 core.Map<core.String, core.List<core.Object>> info; |
| 6905 /** Names for the variant, for example a RefSNP ID. */ | 4642 /** Names for the variant, for example a RefSNP ID. */ |
| 6906 core.List<core.String> names; | 4643 core.List<core.String> names; |
| 6907 /** | 4644 /** |
| 6908 * A measure of how likely this variant is to be real. A higher value is | 4645 * A measure of how likely this variant is to be real. A higher value is |
| 6909 * better. | 4646 * better. |
| 6910 */ | 4647 */ |
| 6911 core.double quality; | 4648 core.double quality; |
| 6912 /** | 4649 /** |
| 6913 * The reference bases for this variant. They start at the given position. | 4650 * The reference bases for this variant. They start at the given position. |
| 6914 */ | 4651 */ |
| 6915 core.String referenceBases; | 4652 core.String referenceBases; |
| 6916 /** The reference on which this variant occurs. (such as chr20 or X) */ | 4653 /** The reference on which this variant occurs. (such as `chr20` or `X`) */ |
| 6917 core.String referenceName; | 4654 core.String referenceName; |
| 6918 /** | 4655 /** |
| 6919 * The position at which this variant occurs (0-based). This corresponds to | 4656 * The position at which this variant occurs (0-based). This corresponds to |
| 6920 * the first base of the string of reference bases. | 4657 * the first base of the string of reference bases. |
| 6921 */ | 4658 */ |
| 6922 core.String start; | 4659 core.String start; |
| 6923 /** The ID of the variant set this variant belongs to. */ | 4660 /** The ID of the variant set this variant belongs to. */ |
| 6924 core.String variantSetId; | 4661 core.String variantSetId; |
| 6925 | 4662 |
| 6926 Variant(); | 4663 Variant(); |
| 6927 | 4664 |
| 6928 Variant.fromJson(core.Map _json) { | 4665 Variant.fromJson(core.Map _json) { |
| 6929 if (_json.containsKey("alternateBases")) { | 4666 if (_json.containsKey("alternateBases")) { |
| 6930 alternateBases = _json["alternateBases"]; | 4667 alternateBases = _json["alternateBases"]; |
| 6931 } | 4668 } |
| 6932 if (_json.containsKey("calls")) { | 4669 if (_json.containsKey("calls")) { |
| 6933 calls = _json["calls"].map((value) => new Call.fromJson(value)).toList(); | 4670 calls = _json["calls"].map((value) => new VariantCall.fromJson(value)).toL
ist(); |
| 6934 } | 4671 } |
| 6935 if (_json.containsKey("created")) { | 4672 if (_json.containsKey("created")) { |
| 6936 created = _json["created"]; | 4673 created = _json["created"]; |
| 6937 } | 4674 } |
| 6938 if (_json.containsKey("end")) { | 4675 if (_json.containsKey("end")) { |
| 6939 end = _json["end"]; | 4676 end = _json["end"]; |
| 6940 } | 4677 } |
| 6941 if (_json.containsKey("filter")) { | 4678 if (_json.containsKey("filter")) { |
| 6942 filter = _json["filter"]; | 4679 filter = _json["filter"]; |
| 6943 } | 4680 } |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7005 if (start != null) { | 4742 if (start != null) { |
| 7006 _json["start"] = start; | 4743 _json["start"] = start; |
| 7007 } | 4744 } |
| 7008 if (variantSetId != null) { | 4745 if (variantSetId != null) { |
| 7009 _json["variantSetId"] = variantSetId; | 4746 _json["variantSetId"] = variantSetId; |
| 7010 } | 4747 } |
| 7011 return _json; | 4748 return _json; |
| 7012 } | 4749 } |
| 7013 } | 4750 } |
| 7014 | 4751 |
| 7015 /** A Variant annotation. */ | 4752 /** |
| 7016 class VariantAnnotation { | 4753 * A call represents the determination of genotype with respect to a particular |
| 4754 * variant. It may include associated information such as quality and phasing. |
| 4755 * For example, a call might assign a probability of 0.32 to the occurrence of a |
| 4756 * SNP named rs1234 in a call set with the name NA12345. |
| 4757 */ |
| 4758 class VariantCall { |
| 4759 /** The ID of the call set this variant call belongs to. */ |
| 4760 core.String callSetId; |
| 4761 /** The name of the call set this variant call belongs to. */ |
| 4762 core.String callSetName; |
| 7017 /** | 4763 /** |
| 7018 * The alternate allele for this variant. If multiple alternate alleles exist | 4764 * The genotype of this variant call. Each value represents either the value |
| 7019 * at this location, create a separate variant for each one, as they may | 4765 * of the `referenceBases` field or a 1-based index into `alternateBases`. If |
| 7020 * represent distinct conditions. | 4766 * a variant had a `referenceBases` value of `T` and an `alternateBases` value |
| 4767 * of `["A", "C"]`, and the `genotype` was `[2, 1]`, that would mean the call |
| 4768 * represented the heterozygous value `CA` for this variant. If the `genotype` |
| 4769 * was instead `[0, 1]`, the represented value would be `TA`. Ordering of the |
| 4770 * genotype values is important if the `phaseset` is present. If a genotype is |
| 4771 * not called (that is, a `.` is present in the GT string) -1 is returned. |
| 7021 */ | 4772 */ |
| 7022 core.String alternateBases; | 4773 core.List<core.int> genotype; |
| 7023 /** | 4774 /** |
| 7024 * Describes the clinical significance of a variant. It is adapted from the | 4775 * The genotype likelihoods for this variant call. Each array entry represents |
| 7025 * ClinVar controlled vocabulary for clinical significance described at: | 4776 * how likely a specific genotype is for this call. The value ordering is |
| 7026 * http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ | 4777 * defined by the GL tag in the VCF spec. If Phred-scaled genotype likelihood |
| 7027 * Possible string values are: | 4778 * scores (PL) are available and log10(P) genotype likelihood scores (GL) are |
| 7028 * - "ASSOCIATION" | 4779 * not, PL scores are converted to GL scores. If both are available, PL scores |
| 7029 * - "BENIGN" | 4780 * are stored in `info`. |
| 7030 * - "CLINICAL_SIGNIFICANCE_UNSPECIFIED" | |
| 7031 * - "CONFERS_SENSITIVITY" | |
| 7032 * - "DRUG_RESPONSE" | |
| 7033 * - "HISTOCOMPATIBILITY" | |
| 7034 * - "LIKELY_BENIGN" | |
| 7035 * - "LIKELY_PATHOGENIC" | |
| 7036 * - "MULTIPLE_REPORTED" | |
| 7037 * - "OTHER" | |
| 7038 * - "PATHOGENIC" | |
| 7039 * - "PROTECTIVE" | |
| 7040 * - "RISK_FACTOR" | |
| 7041 * - "UNCERTAIN" | |
| 7042 */ | 4781 */ |
| 7043 core.String clinicalSignificance; | 4782 core.List<core.double> genotypeLikelihood; |
| 7044 /** | 4783 /** |
| 7045 * The set of conditions associated with this variant. A condition describes | 4784 * A map of additional variant call information. This must be of the form map |
| 7046 * the way a variant influences human health. | 4785 * (string key mapping to a list of string values). |
| 4786 * |
| 4787 * The values for Object must be JSON objects. It can consist of `num`, |
| 4788 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 7047 */ | 4789 */ |
| 7048 core.List<VariantAnnotationCondition> conditions; | 4790 core.Map<core.String, core.List<core.Object>> info; |
| 7049 /** | 4791 /** |
| 7050 * Effect of the variant on the coding sequence. | 4792 * If this field is present, this variant call's genotype ordering implies the |
| 7051 * Possible string values are: | 4793 * phase of the bases and is consistent with any other variant calls in the |
| 7052 * - "EFFECT_UNSPECIFIED" | 4794 * same reference sequence which have the same phaseset value. When importing |
| 7053 * - "FRAMESHIFT" | 4795 * data from VCF, if the genotype data was phased but no phase set was |
| 7054 * - "FRAME_PRESERVING_INDEL" | 4796 * specified this field will be set to `*`. |
| 7055 * - "NONSYNONYMOUS_SNP" | |
| 7056 * - "OTHER" | |
| 7057 * - "SPLICE_SITE_DISRUPTION" | |
| 7058 * - "STOP_GAIN" | |
| 7059 * - "STOP_LOSS" | |
| 7060 * - "SYNONYMOUS_SNP" | |
| 7061 */ | 4797 */ |
| 7062 core.String effect; | 4798 core.String phaseset; |
| 7063 /** | |
| 7064 * Google annotation ID of the gene affected by this variant. This should be | |
| 7065 * provided when the variant is created. | |
| 7066 */ | |
| 7067 core.String geneId; | |
| 7068 /** | |
| 7069 * Google annotation IDs of the transcripts affected by this variant. These | |
| 7070 * should be provided when the variant is created. | |
| 7071 */ | |
| 7072 core.List<core.String> transcriptIds; | |
| 7073 /** | |
| 7074 * Type has been adapted from ClinVar's list of variant types. | |
| 7075 * Possible string values are: | |
| 7076 * - "CNV" | |
| 7077 * - "DELETION" | |
| 7078 * - "INSERTION" | |
| 7079 * - "OTHER" | |
| 7080 * - "SNP" | |
| 7081 * - "STRUCTURAL" | |
| 7082 * - "SUBSTITUTION" | |
| 7083 * - "TYPE_UNSPECIFIED" | |
| 7084 */ | |
| 7085 core.String type; | |
| 7086 | 4799 |
| 7087 VariantAnnotation(); | 4800 VariantCall(); |
| 7088 | 4801 |
| 7089 VariantAnnotation.fromJson(core.Map _json) { | 4802 VariantCall.fromJson(core.Map _json) { |
| 7090 if (_json.containsKey("alternateBases")) { | 4803 if (_json.containsKey("callSetId")) { |
| 7091 alternateBases = _json["alternateBases"]; | 4804 callSetId = _json["callSetId"]; |
| 7092 } | 4805 } |
| 7093 if (_json.containsKey("clinicalSignificance")) { | 4806 if (_json.containsKey("callSetName")) { |
| 7094 clinicalSignificance = _json["clinicalSignificance"]; | 4807 callSetName = _json["callSetName"]; |
| 7095 } | 4808 } |
| 7096 if (_json.containsKey("conditions")) { | 4809 if (_json.containsKey("genotype")) { |
| 7097 conditions = _json["conditions"].map((value) => new VariantAnnotationCondi
tion.fromJson(value)).toList(); | 4810 genotype = _json["genotype"]; |
| 7098 } | 4811 } |
| 7099 if (_json.containsKey("effect")) { | 4812 if (_json.containsKey("genotypeLikelihood")) { |
| 7100 effect = _json["effect"]; | 4813 genotypeLikelihood = _json["genotypeLikelihood"]; |
| 7101 } | 4814 } |
| 7102 if (_json.containsKey("geneId")) { | 4815 if (_json.containsKey("info")) { |
| 7103 geneId = _json["geneId"]; | 4816 info = _json["info"]; |
| 7104 } | 4817 } |
| 7105 if (_json.containsKey("transcriptIds")) { | 4818 if (_json.containsKey("phaseset")) { |
| 7106 transcriptIds = _json["transcriptIds"]; | 4819 phaseset = _json["phaseset"]; |
| 7107 } | |
| 7108 if (_json.containsKey("type")) { | |
| 7109 type = _json["type"]; | |
| 7110 } | 4820 } |
| 7111 } | 4821 } |
| 7112 | 4822 |
| 7113 core.Map toJson() { | 4823 core.Map toJson() { |
| 7114 var _json = new core.Map(); | 4824 var _json = new core.Map(); |
| 7115 if (alternateBases != null) { | 4825 if (callSetId != null) { |
| 7116 _json["alternateBases"] = alternateBases; | 4826 _json["callSetId"] = callSetId; |
| 7117 } | 4827 } |
| 7118 if (clinicalSignificance != null) { | 4828 if (callSetName != null) { |
| 7119 _json["clinicalSignificance"] = clinicalSignificance; | 4829 _json["callSetName"] = callSetName; |
| 7120 } | 4830 } |
| 7121 if (conditions != null) { | 4831 if (genotype != null) { |
| 7122 _json["conditions"] = conditions.map((value) => (value).toJson()).toList()
; | 4832 _json["genotype"] = genotype; |
| 7123 } | 4833 } |
| 7124 if (effect != null) { | 4834 if (genotypeLikelihood != null) { |
| 7125 _json["effect"] = effect; | 4835 _json["genotypeLikelihood"] = genotypeLikelihood; |
| 7126 } | 4836 } |
| 7127 if (geneId != null) { | 4837 if (info != null) { |
| 7128 _json["geneId"] = geneId; | 4838 _json["info"] = info; |
| 7129 } | 4839 } |
| 7130 if (transcriptIds != null) { | 4840 if (phaseset != null) { |
| 7131 _json["transcriptIds"] = transcriptIds; | 4841 _json["phaseset"] = phaseset; |
| 7132 } | |
| 7133 if (type != null) { | |
| 7134 _json["type"] = type; | |
| 7135 } | 4842 } |
| 7136 return _json; | 4843 return _json; |
| 7137 } | 4844 } |
| 7138 } | |
| 7139 | |
| 7140 class VariantAnnotationCondition { | |
| 7141 /** | |
| 7142 * The MedGen concept id associated with this gene. Search for these IDs at | |
| 7143 * http://www.ncbi.nlm.nih.gov/medgen/ | |
| 7144 */ | |
| 7145 core.String conceptId; | |
| 7146 /** The set of external IDs for this condition. */ | |
| 7147 core.List<ExternalId> externalIds; | |
| 7148 /** A set of names for the condition. */ | |
| 7149 core.List<core.String> names; | |
| 7150 /** | |
| 7151 * The OMIM id for this condition. Search for these IDs at http://omim.org/ | |
| 7152 */ | |
| 7153 core.String omimId; | |
| 7154 | |
| 7155 VariantAnnotationCondition(); | |
| 7156 | |
| 7157 VariantAnnotationCondition.fromJson(core.Map _json) { | |
| 7158 if (_json.containsKey("conceptId")) { | |
| 7159 conceptId = _json["conceptId"]; | |
| 7160 } | |
| 7161 if (_json.containsKey("externalIds")) { | |
| 7162 externalIds = _json["externalIds"].map((value) => new ExternalId.fromJson(
value)).toList(); | |
| 7163 } | |
| 7164 if (_json.containsKey("names")) { | |
| 7165 names = _json["names"]; | |
| 7166 } | |
| 7167 if (_json.containsKey("omimId")) { | |
| 7168 omimId = _json["omimId"]; | |
| 7169 } | |
| 7170 } | |
| 7171 | |
| 7172 core.Map toJson() { | |
| 7173 var _json = new core.Map(); | |
| 7174 if (conceptId != null) { | |
| 7175 _json["conceptId"] = conceptId; | |
| 7176 } | |
| 7177 if (externalIds != null) { | |
| 7178 _json["externalIds"] = externalIds.map((value) => (value).toJson()).toList
(); | |
| 7179 } | |
| 7180 if (names != null) { | |
| 7181 _json["names"] = names; | |
| 7182 } | |
| 7183 if (omimId != null) { | |
| 7184 _json["omimId"] = omimId; | |
| 7185 } | |
| 7186 return _json; | |
| 7187 } | |
| 7188 } | 4845 } |
| 7189 | 4846 |
| 7190 /** | 4847 /** |
| 7191 * A variant set is a collection of call sets and variants. It contains summary | 4848 * A variant set is a collection of call sets and variants. It contains summary |
| 7192 * statistics of those contents. A variant set belongs to a dataset. | 4849 * statistics of those contents. A variant set belongs to a dataset. |
| 7193 */ | 4850 */ |
| 7194 class VariantSet { | 4851 class VariantSet { |
| 7195 /** The dataset to which this variant set belongs. Immutable. */ | 4852 /** The dataset to which this variant set belongs. */ |
| 7196 core.String datasetId; | 4853 core.String datasetId; |
| 7197 /** The Google-generated ID of the variant set. Immutable. */ | 4854 /** The server-generated variant set ID, unique across all variant sets. */ |
| 7198 core.String id; | 4855 core.String id; |
| 7199 /** The metadata associated with this variant set. */ | 4856 /** The metadata associated with this variant set. */ |
| 7200 core.List<Metadata> metadata; | 4857 core.List<VariantSetMetadata> metadata; |
| 7201 /** | 4858 /** |
| 7202 * A list of all references used by the variants in a variant set with | 4859 * A list of all references used by the variants in a variant set with |
| 7203 * associated coordinate upper bounds for each one. | 4860 * associated coordinate upper bounds for each one. |
| 7204 */ | 4861 */ |
| 7205 core.List<ReferenceBound> referenceBounds; | 4862 core.List<ReferenceBound> referenceBounds; |
| 7206 | 4863 |
| 7207 VariantSet(); | 4864 VariantSet(); |
| 7208 | 4865 |
| 7209 VariantSet.fromJson(core.Map _json) { | 4866 VariantSet.fromJson(core.Map _json) { |
| 7210 if (_json.containsKey("datasetId")) { | 4867 if (_json.containsKey("datasetId")) { |
| 7211 datasetId = _json["datasetId"]; | 4868 datasetId = _json["datasetId"]; |
| 7212 } | 4869 } |
| 7213 if (_json.containsKey("id")) { | 4870 if (_json.containsKey("id")) { |
| 7214 id = _json["id"]; | 4871 id = _json["id"]; |
| 7215 } | 4872 } |
| 7216 if (_json.containsKey("metadata")) { | 4873 if (_json.containsKey("metadata")) { |
| 7217 metadata = _json["metadata"].map((value) => new Metadata.fromJson(value)).
toList(); | 4874 metadata = _json["metadata"].map((value) => new VariantSetMetadata.fromJso
n(value)).toList(); |
| 7218 } | 4875 } |
| 7219 if (_json.containsKey("referenceBounds")) { | 4876 if (_json.containsKey("referenceBounds")) { |
| 7220 referenceBounds = _json["referenceBounds"].map((value) => new ReferenceBou
nd.fromJson(value)).toList(); | 4877 referenceBounds = _json["referenceBounds"].map((value) => new ReferenceBou
nd.fromJson(value)).toList(); |
| 7221 } | 4878 } |
| 7222 } | 4879 } |
| 7223 | 4880 |
| 7224 core.Map toJson() { | 4881 core.Map toJson() { |
| 7225 var _json = new core.Map(); | 4882 var _json = new core.Map(); |
| 7226 if (datasetId != null) { | 4883 if (datasetId != null) { |
| 7227 _json["datasetId"] = datasetId; | 4884 _json["datasetId"] = datasetId; |
| 7228 } | 4885 } |
| 7229 if (id != null) { | 4886 if (id != null) { |
| 7230 _json["id"] = id; | 4887 _json["id"] = id; |
| 7231 } | 4888 } |
| 7232 if (metadata != null) { | 4889 if (metadata != null) { |
| 7233 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 4890 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
| 7234 } | 4891 } |
| 7235 if (referenceBounds != null) { | 4892 if (referenceBounds != null) { |
| 7236 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 4893 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
| 7237 } | 4894 } |
| 7238 return _json; | 4895 return _json; |
| 7239 } | 4896 } |
| 7240 } | 4897 } |
| 4898 |
| 4899 /** |
| 4900 * Metadata describes a single piece of variant call metadata. These data |
| 4901 * include a top level key and either a single value string (value) or a list of |
| 4902 * key-value pairs (info.) Value and info are mutually exclusive. |
| 4903 */ |
| 4904 class VariantSetMetadata { |
| 4905 /** A textual description of this metadata. */ |
| 4906 core.String description; |
| 4907 /** |
| 4908 * User-provided ID field, not enforced by this API. Two or more pieces of |
| 4909 * structured metadata with identical id and key fields are considered |
| 4910 * equivalent. |
| 4911 */ |
| 4912 core.String id; |
| 4913 /** |
| 4914 * Remaining structured metadata key-value pairs. This must be of the form map |
| 4915 * (string key mapping to a list of string values). |
| 4916 * |
| 4917 * The values for Object must be JSON objects. It can consist of `num`, |
| 4918 * `String`, `bool` and `null` as well as `Map` and `List` values. |
| 4919 */ |
| 4920 core.Map<core.String, core.List<core.Object>> info; |
| 4921 /** The top-level key. */ |
| 4922 core.String key; |
| 4923 /** |
| 4924 * The number of values that can be included in a field described by this |
| 4925 * metadata. |
| 4926 */ |
| 4927 core.String number; |
| 4928 /** |
| 4929 * The type of data. Possible types include: Integer, Float, Flag, Character, |
| 4930 * and String. |
| 4931 * Possible string values are: |
| 4932 * - "TYPE_UNSPECIFIED" : A TYPE_UNSPECIFIED. |
| 4933 * - "INTEGER" : A INTEGER. |
| 4934 * - "FLOAT" : A FLOAT. |
| 4935 * - "FLAG" : A FLAG. |
| 4936 * - "CHARACTER" : A CHARACTER. |
| 4937 * - "STRING" : A STRING. |
| 4938 */ |
| 4939 core.String type; |
| 4940 /** The value field for simple metadata */ |
| 4941 core.String value; |
| 4942 |
| 4943 VariantSetMetadata(); |
| 4944 |
| 4945 VariantSetMetadata.fromJson(core.Map _json) { |
| 4946 if (_json.containsKey("description")) { |
| 4947 description = _json["description"]; |
| 4948 } |
| 4949 if (_json.containsKey("id")) { |
| 4950 id = _json["id"]; |
| 4951 } |
| 4952 if (_json.containsKey("info")) { |
| 4953 info = _json["info"]; |
| 4954 } |
| 4955 if (_json.containsKey("key")) { |
| 4956 key = _json["key"]; |
| 4957 } |
| 4958 if (_json.containsKey("number")) { |
| 4959 number = _json["number"]; |
| 4960 } |
| 4961 if (_json.containsKey("type")) { |
| 4962 type = _json["type"]; |
| 4963 } |
| 4964 if (_json.containsKey("value")) { |
| 4965 value = _json["value"]; |
| 4966 } |
| 4967 } |
| 4968 |
| 4969 core.Map toJson() { |
| 4970 var _json = new core.Map(); |
| 4971 if (description != null) { |
| 4972 _json["description"] = description; |
| 4973 } |
| 4974 if (id != null) { |
| 4975 _json["id"] = id; |
| 4976 } |
| 4977 if (info != null) { |
| 4978 _json["info"] = info; |
| 4979 } |
| 4980 if (key != null) { |
| 4981 _json["key"] = key; |
| 4982 } |
| 4983 if (number != null) { |
| 4984 _json["number"] = number; |
| 4985 } |
| 4986 if (type != null) { |
| 4987 _json["type"] = type; |
| 4988 } |
| 4989 if (value != null) { |
| 4990 _json["value"] = value; |
| 4991 } |
| 4992 return _json; |
| 4993 } |
| 4994 } |
| OLD | NEW |