OLD | NEW |
1 library googleapis_beta.genomics.v1beta; | 1 library googleapis_beta.genomics.v1beta; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1504 body: _body, | 1504 body: _body, |
1505 queryParams: _queryParams, | 1505 queryParams: _queryParams, |
1506 uploadOptions: _uploadOptions, | 1506 uploadOptions: _uploadOptions, |
1507 uploadMedia: _uploadMedia, | 1507 uploadMedia: _uploadMedia, |
1508 downloadOptions: _downloadOptions); | 1508 downloadOptions: _downloadOptions); |
1509 return _response.then((data) => new Variant.fromJson(data)); | 1509 return _response.then((data) => new Variant.fromJson(data)); |
1510 } | 1510 } |
1511 | 1511 |
1512 /** | 1512 /** |
1513 * Creates variant data by asynchronously importing the provided information. | 1513 * Creates variant data by asynchronously importing the provided information. |
1514 * If the destination variant set already contains data, new variants will be | 1514 * The variants for import will be merged with any existing data and each |
1515 * merged according to the behavior of mergeVariants. | 1515 * other according to the behavior of mergeVariants. In particular, this means |
| 1516 * for merged VCF variants that have conflicting INFO fields, some data will |
| 1517 * be arbitrarily discarded. As a special case, for single-sample VCF files, |
| 1518 * QUAL and FILTER fields will be moved to the call level; these are sometimes |
| 1519 * interpreted in a call-specific context. Imported VCF headers are appended |
| 1520 * to the metadata already in a VariantSet. |
1516 * | 1521 * |
1517 * [request] - The metadata request object. | 1522 * [request] - The metadata request object. |
1518 * | 1523 * |
1519 * Request parameters: | 1524 * Request parameters: |
1520 * | 1525 * |
1521 * Completes with a [ImportVariantsResponse]. | 1526 * Completes with a [ImportVariantsResponse]. |
1522 * | 1527 * |
1523 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1528 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1524 * error. | 1529 * error. |
1525 * | 1530 * |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1742 * Request parameters: | 1747 * Request parameters: |
1743 * | 1748 * |
1744 * [variantSetId] - The destination variant set. | 1749 * [variantSetId] - The destination variant set. |
1745 * | 1750 * |
1746 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1751 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1747 * error. | 1752 * error. |
1748 * | 1753 * |
1749 * If the used [http.Client] completes with an error when making a REST call, | 1754 * If the used [http.Client] completes with an error when making a REST call, |
1750 * this method will complete with the same error. | 1755 * this method will complete with the same error. |
1751 */ | 1756 */ |
1752 async.Future mergeVariants(Variant request, core.String variantSetId) { | 1757 async.Future mergeVariants(MergeVariantsRequest request, core.String variantSe
tId) { |
1753 var _url = null; | 1758 var _url = null; |
1754 var _queryParams = new core.Map(); | 1759 var _queryParams = new core.Map(); |
1755 var _uploadMedia = null; | 1760 var _uploadMedia = null; |
1756 var _uploadOptions = null; | 1761 var _uploadOptions = null; |
1757 var _downloadOptions = common.DownloadOptions.Metadata; | 1762 var _downloadOptions = common.DownloadOptions.Metadata; |
1758 var _body = null; | 1763 var _body = null; |
1759 | 1764 |
1760 if (request != null) { | 1765 if (request != null) { |
1761 _body = convert.JSON.encode((request).toJson()); | 1766 _body = convert.JSON.encode((request).toJson()); |
1762 } | 1767 } |
(...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3017 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); | 3022 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); |
3018 } | 3023 } |
3019 if (nextPageToken != null) { | 3024 if (nextPageToken != null) { |
3020 _json["nextPageToken"] = nextPageToken; | 3025 _json["nextPageToken"] = nextPageToken; |
3021 } | 3026 } |
3022 return _json; | 3027 return _json; |
3023 } | 3028 } |
3024 } | 3029 } |
3025 | 3030 |
3026 | 3031 |
| 3032 /** Not documented yet. */ |
| 3033 class MergeVariantsRequest { |
| 3034 /** The variants to be merged with existing variants. */ |
| 3035 core.List<Variant> variants; |
| 3036 |
| 3037 |
| 3038 MergeVariantsRequest(); |
| 3039 |
| 3040 MergeVariantsRequest.fromJson(core.Map _json) { |
| 3041 if (_json.containsKey("variants")) { |
| 3042 variants = _json["variants"].map((value) => new Variant.fromJson(value)).t
oList(); |
| 3043 } |
| 3044 } |
| 3045 |
| 3046 core.Map toJson() { |
| 3047 var _json = new core.Map(); |
| 3048 if (variants != null) { |
| 3049 _json["variants"] = variants.map((value) => (value).toJson()).toList(); |
| 3050 } |
| 3051 return _json; |
| 3052 } |
| 3053 } |
| 3054 |
| 3055 |
3027 /** | 3056 /** |
3028 * Metadata describes a single piece of variant call metadata. These data | 3057 * Metadata describes a single piece of variant call metadata. These data |
3029 * include a top level key and either a single value string (value) or a list of | 3058 * include a top level key and either a single value string (value) or a list of |
3030 * key-value pairs (info.) Value and info are mutually exclusive. | 3059 * key-value pairs (info.) Value and info are mutually exclusive. |
3031 */ | 3060 */ |
3032 class Metadata { | 3061 class Metadata { |
3033 /** A textual description of this metadata. */ | 3062 /** A textual description of this metadata. */ |
3034 core.String description; | 3063 core.String description; |
3035 | 3064 |
3036 /** | 3065 /** |
(...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4195 } | 4224 } |
4196 return _json; | 4225 return _json; |
4197 } | 4226 } |
4198 } | 4227 } |
4199 | 4228 |
4200 | 4229 |
4201 /** The variant search request. */ | 4230 /** The variant search request. */ |
4202 class SearchVariantsRequest { | 4231 class SearchVariantsRequest { |
4203 /** | 4232 /** |
4204 * Only return variant calls which belong to call sets with these ids. Leaving | 4233 * Only return variant calls which belong to call sets with these ids. Leaving |
4205 * this blank returns all variant calls. | 4234 * this blank returns all variant calls. If a variant has no calls belonging |
| 4235 * to any of these call sets, it won't be returned at all. Currently, variants |
| 4236 * with no calls from any call set will never be returned. |
4206 */ | 4237 */ |
4207 core.List<core.String> callSetIds; | 4238 core.List<core.String> callSetIds; |
4208 | 4239 |
4209 /** | 4240 /** |
4210 * Required. The end of the window (0-based, exclusive) for which overlapping | 4241 * Required. The end of the window (0-based, exclusive) for which overlapping |
4211 * variants should be returned. | 4242 * variants should be returned. |
4212 */ | 4243 */ |
4213 core.String end; | 4244 core.String end; |
4214 | 4245 |
4215 /** | 4246 /** |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4555 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 4586 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
4556 } | 4587 } |
4557 if (referenceBounds != null) { | 4588 if (referenceBounds != null) { |
4558 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 4589 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
4559 } | 4590 } |
4560 return _json; | 4591 return _json; |
4561 } | 4592 } |
4562 } | 4593 } |
4563 | 4594 |
4564 | 4595 |
OLD | NEW |