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 12 matching lines...) Expand all Loading... |
23 | 23 |
24 /** View and manage Genomics data */ | 24 /** View and manage Genomics data */ |
25 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; | 25 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; |
26 | 26 |
27 /** View Genomics data */ | 27 /** View Genomics data */ |
28 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; | 28 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; |
29 | 29 |
30 | 30 |
31 final common_internal.ApiRequester _requester; | 31 final common_internal.ApiRequester _requester; |
32 | 32 |
33 BeaconsResourceApi get beacons => new BeaconsResourceApi(_requester); | |
34 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); | 33 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); |
35 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); | 34 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); |
36 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); | 35 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); |
37 JobsResourceApi get jobs => new JobsResourceApi(_requester); | 36 JobsResourceApi get jobs => new JobsResourceApi(_requester); |
38 ReadsResourceApi get reads => new ReadsResourceApi(_requester); | 37 ReadsResourceApi get reads => new ReadsResourceApi(_requester); |
39 ReadsetsResourceApi get readsets => new ReadsetsResourceApi(_requester); | 38 ReadsetsResourceApi get readsets => new ReadsetsResourceApi(_requester); |
40 VariantsResourceApi get variants => new VariantsResourceApi(_requester); | 39 VariantsResourceApi get variants => new VariantsResourceApi(_requester); |
41 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); | 40 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); |
42 | 41 |
43 GenomicsApi(http.Client client) : | 42 GenomicsApi(http.Client client) : |
44 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "genomics/v1beta/"); | 43 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "genomics/v1beta/"); |
45 } | 44 } |
46 | 45 |
47 | 46 |
48 /** Not documented yet. */ | 47 /** Not documented yet. */ |
49 class BeaconsResourceApi { | |
50 final common_internal.ApiRequester _requester; | |
51 | |
52 BeaconsResourceApi(common_internal.ApiRequester client) : | |
53 _requester = client; | |
54 | |
55 /** | |
56 * This is an experimental API that provides a Global Alliance for Genomics | |
57 * and Health Beacon. It may change at any time. | |
58 * | |
59 * Request parameters: | |
60 * | |
61 * [variantSetId] - The ID of the variant set to query over. It must be | |
62 * public. Private variant sets will return an unauthorized exception. | |
63 * | |
64 * [allele] - Required. The allele to look for ('A', 'C', 'G' or 'T'). | |
65 * | |
66 * [position] - Required. The 0-based position to query. | |
67 * | |
68 * [referenceName] - Required. The reference to query over. | |
69 * | |
70 * Completes with a [Beacon]. | |
71 * | |
72 * Completes with a [common.ApiRequestError] if the API endpoint returned an | |
73 * error. | |
74 * | |
75 * If the used [http.Client] completes with an error when making a REST call, | |
76 * this method will complete with the same error. | |
77 */ | |
78 async.Future<Beacon> get(core.String variantSetId, {core.String allele, core.S
tring position, core.String referenceName}) { | |
79 var _url = null; | |
80 var _queryParams = new core.Map(); | |
81 var _uploadMedia = null; | |
82 var _uploadOptions = null; | |
83 var _downloadOptions = common.DownloadOptions.Metadata; | |
84 var _body = null; | |
85 | |
86 if (variantSetId == null) { | |
87 throw new core.ArgumentError("Parameter variantSetId is required."); | |
88 } | |
89 if (allele != null) { | |
90 _queryParams["allele"] = [allele]; | |
91 } | |
92 if (position != null) { | |
93 _queryParams["position"] = [position]; | |
94 } | |
95 if (referenceName != null) { | |
96 _queryParams["referenceName"] = [referenceName]; | |
97 } | |
98 | |
99 | |
100 _url = 'beacons/' + common_internal.Escaper.ecapeVariable('$variantSetId'); | |
101 | |
102 var _response = _requester.request(_url, | |
103 "GET", | |
104 body: _body, | |
105 queryParams: _queryParams, | |
106 uploadOptions: _uploadOptions, | |
107 uploadMedia: _uploadMedia, | |
108 downloadOptions: _downloadOptions); | |
109 return _response.then((data) => new Beacon.fromJson(data)); | |
110 } | |
111 | |
112 } | |
113 | |
114 | |
115 /** Not documented yet. */ | |
116 class CallsetsResourceApi { | 48 class CallsetsResourceApi { |
117 final common_internal.ApiRequester _requester; | 49 final common_internal.ApiRequester _requester; |
118 | 50 |
119 CallsetsResourceApi(common_internal.ApiRequester client) : | 51 CallsetsResourceApi(common_internal.ApiRequester client) : |
120 _requester = client; | 52 _requester = client; |
121 | 53 |
122 /** | 54 /** |
123 * Creates a new call set. | 55 * Creates a new call set. |
124 * | 56 * |
125 * [request] - The metadata request object. | 57 * [request] - The metadata request object. |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 uploadMedia: _uploadMedia, | 89 uploadMedia: _uploadMedia, |
158 downloadOptions: _downloadOptions); | 90 downloadOptions: _downloadOptions); |
159 return _response.then((data) => new CallSet.fromJson(data)); | 91 return _response.then((data) => new CallSet.fromJson(data)); |
160 } | 92 } |
161 | 93 |
162 /** | 94 /** |
163 * Deletes a call set. | 95 * Deletes a call set. |
164 * | 96 * |
165 * Request parameters: | 97 * Request parameters: |
166 * | 98 * |
167 * [callSetId] - The ID of the callset to be deleted. | 99 * [callSetId] - The ID of the call set to be deleted. |
168 * | 100 * |
169 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 101 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
170 * error. | 102 * error. |
171 * | 103 * |
172 * If the used [http.Client] completes with an error when making a REST call, | 104 * If the used [http.Client] completes with an error when making a REST call, |
173 * this method will complete with the same error. | 105 * this method will complete with the same error. |
174 */ | 106 */ |
175 async.Future delete(core.String callSetId) { | 107 async.Future delete(core.String callSetId) { |
176 var _url = null; | 108 var _url = null; |
177 var _queryParams = new core.Map(); | 109 var _queryParams = new core.Map(); |
(...skipping 18 matching lines...) Expand all Loading... |
196 uploadMedia: _uploadMedia, | 128 uploadMedia: _uploadMedia, |
197 downloadOptions: _downloadOptions); | 129 downloadOptions: _downloadOptions); |
198 return _response.then((data) => null); | 130 return _response.then((data) => null); |
199 } | 131 } |
200 | 132 |
201 /** | 133 /** |
202 * Gets a call set by ID. | 134 * Gets a call set by ID. |
203 * | 135 * |
204 * Request parameters: | 136 * Request parameters: |
205 * | 137 * |
206 * [callSetId] - The ID of the callset. | 138 * [callSetId] - The ID of the call set. |
207 * | 139 * |
208 * Completes with a [CallSet]. | 140 * Completes with a [CallSet]. |
209 * | 141 * |
210 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 142 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
211 * error. | 143 * error. |
212 * | 144 * |
213 * If the used [http.Client] completes with an error when making a REST call, | 145 * If the used [http.Client] completes with an error when making a REST call, |
214 * this method will complete with the same error. | 146 * this method will complete with the same error. |
215 */ | 147 */ |
216 async.Future<CallSet> get(core.String callSetId) { | 148 async.Future<CallSet> get(core.String callSetId) { |
(...skipping 21 matching lines...) Expand all Loading... |
238 return _response.then((data) => new CallSet.fromJson(data)); | 170 return _response.then((data) => new CallSet.fromJson(data)); |
239 } | 171 } |
240 | 172 |
241 /** | 173 /** |
242 * Updates a call set. This method supports patch semantics. | 174 * Updates a call set. This method supports patch semantics. |
243 * | 175 * |
244 * [request] - The metadata request object. | 176 * [request] - The metadata request object. |
245 * | 177 * |
246 * Request parameters: | 178 * Request parameters: |
247 * | 179 * |
248 * [callSetId] - The ID of the callset to be updated. | 180 * [callSetId] - The ID of the call set to be updated. |
249 * | 181 * |
250 * Completes with a [CallSet]. | 182 * Completes with a [CallSet]. |
251 * | 183 * |
252 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 184 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
253 * error. | 185 * error. |
254 * | 186 * |
255 * If the used [http.Client] completes with an error when making a REST call, | 187 * If the used [http.Client] completes with an error when making a REST call, |
256 * this method will complete with the same error. | 188 * this method will complete with the same error. |
257 */ | 189 */ |
258 async.Future<CallSet> patch(CallSet request, core.String callSetId) { | 190 async.Future<CallSet> patch(CallSet request, core.String callSetId) { |
(...skipping 20 matching lines...) Expand all Loading... |
279 queryParams: _queryParams, | 211 queryParams: _queryParams, |
280 uploadOptions: _uploadOptions, | 212 uploadOptions: _uploadOptions, |
281 uploadMedia: _uploadMedia, | 213 uploadMedia: _uploadMedia, |
282 downloadOptions: _downloadOptions); | 214 downloadOptions: _downloadOptions); |
283 return _response.then((data) => new CallSet.fromJson(data)); | 215 return _response.then((data) => new CallSet.fromJson(data)); |
284 } | 216 } |
285 | 217 |
286 /** | 218 /** |
287 * Gets a list of call sets matching the criteria. | 219 * Gets a list of call sets matching the criteria. |
288 * | 220 * |
| 221 * Implements GlobalAllianceApi.searchCallSets. |
| 222 * |
289 * [request] - The metadata request object. | 223 * [request] - The metadata request object. |
290 * | 224 * |
291 * Request parameters: | 225 * Request parameters: |
292 * | 226 * |
293 * Completes with a [SearchCallSetsResponse]. | 227 * Completes with a [SearchCallSetsResponse]. |
294 * | 228 * |
295 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 229 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
296 * error. | 230 * error. |
297 * | 231 * |
298 * If the used [http.Client] completes with an error when making a REST call, | 232 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 24 matching lines...) Expand all Loading... |
323 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); | 257 return _response.then((data) => new SearchCallSetsResponse.fromJson(data)); |
324 } | 258 } |
325 | 259 |
326 /** | 260 /** |
327 * Updates a call set. | 261 * Updates a call set. |
328 * | 262 * |
329 * [request] - The metadata request object. | 263 * [request] - The metadata request object. |
330 * | 264 * |
331 * Request parameters: | 265 * Request parameters: |
332 * | 266 * |
333 * [callSetId] - The ID of the callset to be updated. | 267 * [callSetId] - The ID of the call set to be updated. |
334 * | 268 * |
335 * Completes with a [CallSet]. | 269 * Completes with a [CallSet]. |
336 * | 270 * |
337 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 271 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
338 * error. | 272 * error. |
339 * | 273 * |
340 * If the used [http.Client] completes with an error when making a REST call, | 274 * If the used [http.Client] completes with an error when making a REST call, |
341 * this method will complete with the same error. | 275 * this method will complete with the same error. |
342 */ | 276 */ |
343 async.Future<CallSet> update(CallSet request, core.String callSetId) { | 277 async.Future<CallSet> update(CallSet request, core.String callSetId) { |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1511 } | 1445 } |
1512 | 1446 |
1513 /** | 1447 /** |
1514 * Creates variant data by asynchronously importing the provided information. | 1448 * Creates variant data by asynchronously importing the provided information. |
1515 * The variants for import will be merged with any existing data and each | 1449 * The variants for import will be merged with any existing data and each |
1516 * other according to the behavior of mergeVariants. In particular, this means | 1450 * other according to the behavior of mergeVariants. In particular, this means |
1517 * for merged VCF variants that have conflicting INFO fields, some data will | 1451 * for merged VCF variants that have conflicting INFO fields, some data will |
1518 * be arbitrarily discarded. As a special case, for single-sample VCF files, | 1452 * be arbitrarily discarded. As a special case, for single-sample VCF files, |
1519 * QUAL and FILTER fields will be moved to the call level; these are sometimes | 1453 * QUAL and FILTER fields will be moved to the call level; these are sometimes |
1520 * interpreted in a call-specific context. Imported VCF headers are appended | 1454 * interpreted in a call-specific context. Imported VCF headers are appended |
1521 * to the metadata already in a VariantSet. | 1455 * to the metadata already in a variant set. |
1522 * | 1456 * |
1523 * [request] - The metadata request object. | 1457 * [request] - The metadata request object. |
1524 * | 1458 * |
1525 * Request parameters: | 1459 * Request parameters: |
1526 * | 1460 * |
1527 * Completes with a [ImportVariantsResponse]. | 1461 * Completes with a [ImportVariantsResponse]. |
1528 * | 1462 * |
1529 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1463 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1530 * error. | 1464 * error. |
1531 * | 1465 * |
(...skipping 21 matching lines...) Expand all Loading... |
1553 queryParams: _queryParams, | 1487 queryParams: _queryParams, |
1554 uploadOptions: _uploadOptions, | 1488 uploadOptions: _uploadOptions, |
1555 uploadMedia: _uploadMedia, | 1489 uploadMedia: _uploadMedia, |
1556 downloadOptions: _downloadOptions); | 1490 downloadOptions: _downloadOptions); |
1557 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); | 1491 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); |
1558 } | 1492 } |
1559 | 1493 |
1560 /** | 1494 /** |
1561 * Gets a list of variants matching the criteria. | 1495 * Gets a list of variants matching the criteria. |
1562 * | 1496 * |
| 1497 * Implements GlobalAllianceApi.searchVariants. |
| 1498 * |
1563 * [request] - The metadata request object. | 1499 * [request] - The metadata request object. |
1564 * | 1500 * |
1565 * Request parameters: | 1501 * Request parameters: |
1566 * | 1502 * |
1567 * Completes with a [SearchVariantsResponse]. | 1503 * Completes with a [SearchVariantsResponse]. |
1568 * | 1504 * |
1569 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1505 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1570 * error. | 1506 * error. |
1571 * | 1507 * |
1572 * If the used [http.Client] completes with an error when making a REST call, | 1508 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1779 body: _body, | 1715 body: _body, |
1780 queryParams: _queryParams, | 1716 queryParams: _queryParams, |
1781 uploadOptions: _uploadOptions, | 1717 uploadOptions: _uploadOptions, |
1782 uploadMedia: _uploadMedia, | 1718 uploadMedia: _uploadMedia, |
1783 downloadOptions: _downloadOptions); | 1719 downloadOptions: _downloadOptions); |
1784 return _response.then((data) => null); | 1720 return _response.then((data) => null); |
1785 } | 1721 } |
1786 | 1722 |
1787 /** | 1723 /** |
1788 * Updates a variant set's metadata. All other modifications are silently | 1724 * Updates a variant set's metadata. All other modifications are silently |
1789 * ignored. Returns the modified variant set. This method supports patch | 1725 * ignored. This method supports patch semantics. |
1790 * semantics. | |
1791 * | 1726 * |
1792 * [request] - The metadata request object. | 1727 * [request] - The metadata request object. |
1793 * | 1728 * |
1794 * Request parameters: | 1729 * Request parameters: |
1795 * | 1730 * |
1796 * [variantSetId] - The ID of the variant to be updated. | 1731 * [variantSetId] - The ID of the variant to be updated. |
1797 * | 1732 * |
1798 * Completes with a [VariantSet]. | 1733 * Completes with a [VariantSet]. |
1799 * | 1734 * |
1800 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1735 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
(...skipping 26 matching lines...) Expand all Loading... |
1827 queryParams: _queryParams, | 1762 queryParams: _queryParams, |
1828 uploadOptions: _uploadOptions, | 1763 uploadOptions: _uploadOptions, |
1829 uploadMedia: _uploadMedia, | 1764 uploadMedia: _uploadMedia, |
1830 downloadOptions: _downloadOptions); | 1765 downloadOptions: _downloadOptions); |
1831 return _response.then((data) => new VariantSet.fromJson(data)); | 1766 return _response.then((data) => new VariantSet.fromJson(data)); |
1832 } | 1767 } |
1833 | 1768 |
1834 /** | 1769 /** |
1835 * Returns a list of all variant sets matching search criteria. | 1770 * Returns a list of all variant sets matching search criteria. |
1836 * | 1771 * |
| 1772 * Implements GlobalAllianceApi.searchVariantSets. |
| 1773 * |
1837 * [request] - The metadata request object. | 1774 * [request] - The metadata request object. |
1838 * | 1775 * |
1839 * Request parameters: | 1776 * Request parameters: |
1840 * | 1777 * |
1841 * Completes with a [SearchVariantSetsResponse]. | 1778 * Completes with a [SearchVariantSetsResponse]. |
1842 * | 1779 * |
1843 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1780 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
1844 * error. | 1781 * error. |
1845 * | 1782 * |
1846 * If the used [http.Client] completes with an error when making a REST call, | 1783 * If the used [http.Client] completes with an error when making a REST call, |
(...skipping 19 matching lines...) Expand all Loading... |
1866 body: _body, | 1803 body: _body, |
1867 queryParams: _queryParams, | 1804 queryParams: _queryParams, |
1868 uploadOptions: _uploadOptions, | 1805 uploadOptions: _uploadOptions, |
1869 uploadMedia: _uploadMedia, | 1806 uploadMedia: _uploadMedia, |
1870 downloadOptions: _downloadOptions); | 1807 downloadOptions: _downloadOptions); |
1871 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); | 1808 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); |
1872 } | 1809 } |
1873 | 1810 |
1874 /** | 1811 /** |
1875 * Updates a variant set's metadata. All other modifications are silently | 1812 * Updates a variant set's metadata. All other modifications are silently |
1876 * ignored. Returns the modified variant set. | 1813 * ignored. |
1877 * | 1814 * |
1878 * [request] - The metadata request object. | 1815 * [request] - The metadata request object. |
1879 * | 1816 * |
1880 * Request parameters: | 1817 * Request parameters: |
1881 * | 1818 * |
1882 * [variantSetId] - The ID of the variant to be updated. | 1819 * [variantSetId] - The ID of the variant to be updated. |
1883 * | 1820 * |
1884 * Completes with a [VariantSet]. | 1821 * Completes with a [VariantSet]. |
1885 * | 1822 * |
1886 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1823 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
(...skipping 28 matching lines...) Expand all Loading... |
1915 uploadMedia: _uploadMedia, | 1852 uploadMedia: _uploadMedia, |
1916 downloadOptions: _downloadOptions); | 1853 downloadOptions: _downloadOptions); |
1917 return _response.then((data) => new VariantSet.fromJson(data)); | 1854 return _response.then((data) => new VariantSet.fromJson(data)); |
1918 } | 1855 } |
1919 | 1856 |
1920 } | 1857 } |
1921 | 1858 |
1922 | 1859 |
1923 | 1860 |
1924 /** | 1861 /** |
1925 * A beacon represents whether any variant call in a variant set has a specific | 1862 * A call represents the determination of genotype with respect to a particular |
1926 * allele at a particular position. | |
1927 */ | |
1928 class Beacon { | |
1929 /** True if the allele exists on any variant call, false otherwise. */ | |
1930 core.bool exists; | |
1931 | |
1932 | |
1933 Beacon(); | |
1934 | |
1935 Beacon.fromJson(core.Map _json) { | |
1936 if (_json.containsKey("exists")) { | |
1937 exists = _json["exists"]; | |
1938 } | |
1939 } | |
1940 | |
1941 core.Map toJson() { | |
1942 var _json = new core.Map(); | |
1943 if (exists != null) { | |
1944 _json["exists"] = exists; | |
1945 } | |
1946 return _json; | |
1947 } | |
1948 } | |
1949 | |
1950 | |
1951 /** | |
1952 * A Call represents the determination of genotype with respect to a particular | |
1953 * variant. It may include associated information such as quality and phasing. | 1863 * variant. It may include associated information such as quality and phasing. |
1954 * For example, a Call might assign a probability of 0.32 to the occurrence of a | 1864 * For example, a call might assign a probability of 0.32 to the occurrence of a |
1955 * SNP named rs1234 in a call set with the name NA12345. | 1865 * SNP named rs1234 in a call set with the name NA12345. |
1956 */ | 1866 */ |
1957 class Call { | 1867 class Call { |
1958 /** The ID of the call set this variant call belongs to. */ | 1868 /** The ID of the call set this variant call belongs to. */ |
1959 core.String callSetId; | 1869 core.String callSetId; |
1960 | 1870 |
1961 /** The name of the call set this variant call belongs to. */ | 1871 /** The name of the call set this variant call belongs to. */ |
1962 core.String callSetName; | 1872 core.String callSetName; |
1963 | 1873 |
1964 /** | 1874 /** |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 _json["info"] = info; | 1944 _json["info"] = info; |
2035 } | 1945 } |
2036 if (phaseset != null) { | 1946 if (phaseset != null) { |
2037 _json["phaseset"] = phaseset; | 1947 _json["phaseset"] = phaseset; |
2038 } | 1948 } |
2039 return _json; | 1949 return _json; |
2040 } | 1950 } |
2041 } | 1951 } |
2042 | 1952 |
2043 | 1953 |
2044 /** A CallSet is a collection of variant calls. It belongs to a variant set. */ | 1954 /** |
| 1955 * A call set is a collection of variant calls, typically for one sample. It |
| 1956 * belongs to a variant set. |
| 1957 */ |
2045 class CallSet { | 1958 class CallSet { |
2046 /** The date this call set was created in milliseconds from the epoch. */ | 1959 /** The date this call set was created in milliseconds from the epoch. */ |
2047 core.String created; | 1960 core.String created; |
2048 | 1961 |
2049 /** The Google generated ID of the call set, immutable. */ | 1962 /** The Google generated ID of the call set, immutable. */ |
2050 core.String id; | 1963 core.String id; |
2051 | 1964 |
2052 /** A map of additional callset information. */ | 1965 /** A map of additional call set information. */ |
2053 core.Map<core.String, core.List<core.String>> info; | 1966 core.Map<core.String, core.List<core.String>> info; |
2054 | 1967 |
2055 /** The callset name. */ | 1968 /** The call set name. */ |
2056 core.String name; | 1969 core.String name; |
2057 | 1970 |
2058 /** The sample ID this call set corresponds to. */ | 1971 /** The sample ID this call set corresponds to. */ |
2059 core.String sampleId; | 1972 core.String sampleId; |
2060 | 1973 |
2061 /** The IDs of the variant sets this call set belongs to. */ | 1974 /** The IDs of the variant sets this call set belongs to. */ |
2062 core.List<core.String> variantSetIds; | 1975 core.List<core.String> variantSetIds; |
2063 | 1976 |
2064 | 1977 |
2065 CallSet(); | 1978 CallSet(); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2201 _json["projectId"] = projectId; | 2114 _json["projectId"] = projectId; |
2202 } | 2115 } |
2203 return _json; | 2116 return _json; |
2204 } | 2117 } |
2205 } | 2118 } |
2206 | 2119 |
2207 | 2120 |
2208 /** The job creation request. */ | 2121 /** The job creation request. */ |
2209 class ExperimentalCreateJobRequest { | 2122 class ExperimentalCreateJobRequest { |
2210 /** | 2123 /** |
2211 * Specifies whether or not to run the alignment pipeline. At least one of | 2124 * Specifies whether or not to run the alignment pipeline. Either align or |
2212 * align or callVariants must be provided. | 2125 * callVariants must be set. |
2213 */ | 2126 */ |
2214 core.bool align; | 2127 core.bool align; |
2215 | 2128 |
2216 /** | 2129 /** |
2217 * Specifies whether or not to run the variant calling pipeline. If specified, | 2130 * Specifies whether or not to run the variant calling pipeline. Either align |
2218 * alignment will be performed first and the aligned BAMs will passed as input | 2131 * or callVariants must be set. |
2219 * to the variant caller. At least one of align or callVariants must be | |
2220 * provided. | |
2221 */ | 2132 */ |
2222 core.bool callVariants; | 2133 core.bool callVariants; |
2223 | 2134 |
2224 /** | 2135 /** |
2225 * Specifies where to copy the results of certain pipelines. This should be in | 2136 * Specifies where to copy the results of certain pipelines. This should be in |
2226 * the form of gs://bucket/path. | 2137 * the form of gs://bucket/path. |
2227 */ | 2138 */ |
2228 core.String gcsOutputPath; | 2139 core.String gcsOutputPath; |
2229 | 2140 |
2230 /** | 2141 /** |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2938 | 2849 |
2939 /** | 2850 /** |
2940 * The data source of the request, for example, a Google Cloud Storage object | 2851 * The data source of the request, for example, a Google Cloud Storage object |
2941 * path or Readset ID. | 2852 * path or Readset ID. |
2942 */ | 2853 */ |
2943 core.List<core.String> source; | 2854 core.List<core.String> source; |
2944 | 2855 |
2945 /** | 2856 /** |
2946 * The original request type. | 2857 * The original request type. |
2947 * Possible string values are: | 2858 * Possible string values are: |
| 2859 * - "alignReadsets" |
| 2860 * - "callReadsets" |
2948 * - "experimentalCreateJob" | 2861 * - "experimentalCreateJob" |
2949 * - "exportReadsets" | 2862 * - "exportReadsets" |
2950 * - "exportVariants" | 2863 * - "exportVariants" |
2951 * - "importReadsets" | 2864 * - "importReadsets" |
2952 * - "importVariants" | 2865 * - "importVariants" |
2953 * - "unknownType" | 2866 * - "unknownType" |
2954 */ | 2867 */ |
2955 core.String type; | 2868 core.String type; |
2956 | 2869 |
2957 | 2870 |
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4424 } | 4337 } |
4425 if (variants != null) { | 4338 if (variants != null) { |
4426 _json["variants"] = variants.map((value) => (value).toJson()).toList(); | 4339 _json["variants"] = variants.map((value) => (value).toJson()).toList(); |
4427 } | 4340 } |
4428 return _json; | 4341 return _json; |
4429 } | 4342 } |
4430 } | 4343 } |
4431 | 4344 |
4432 | 4345 |
4433 /** | 4346 /** |
4434 * A Variant represents a change in DNA sequence relative to some reference. For | 4347 * A variant represents a change in DNA sequence relative to a reference |
4435 * example, a Variant could represent a SNP or an insertion. Variants belong to | 4348 * sequence. For example, a variant could represent a SNP or an insertion. |
4436 * a variant set. | 4349 * Variants belong to a variant set. Each of the calls on a variant represent a |
| 4350 * determination of genotype with respect to that variant. For example, a call |
| 4351 * might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a |
| 4352 * sample named NA12345. A call belongs to a call set, which contains related |
| 4353 * calls typically from one sample. |
4437 */ | 4354 */ |
4438 class Variant { | 4355 class Variant { |
4439 /** The bases that appear instead of the reference bases. */ | 4356 /** The bases that appear instead of the reference bases. */ |
4440 core.List<core.String> alternateBases; | 4357 core.List<core.String> alternateBases; |
4441 | 4358 |
4442 /** | 4359 /** |
4443 * The variant calls for this particular variant. Each one represents the | 4360 * The variant calls for this particular variant. Each one represents the |
4444 * determination of genotype with respect to this variant. | 4361 * determination of genotype with respect to this variant. |
4445 */ | 4362 */ |
4446 core.List<Call> calls; | 4363 core.List<Call> calls; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4579 } | 4496 } |
4580 if (variantSetId != null) { | 4497 if (variantSetId != null) { |
4581 _json["variantSetId"] = variantSetId; | 4498 _json["variantSetId"] = variantSetId; |
4582 } | 4499 } |
4583 return _json; | 4500 return _json; |
4584 } | 4501 } |
4585 } | 4502 } |
4586 | 4503 |
4587 | 4504 |
4588 /** | 4505 /** |
4589 * A VariantSet represents a collection of Variants and their summary | 4506 * A variant set is a collection of call sets and variants. It contains summary |
4590 * statistics. | 4507 * statistics of those contents. A variant set belongs to a dataset. |
4591 */ | 4508 */ |
4592 class VariantSet { | 4509 class VariantSet { |
4593 /** The dataset to which this variant set belongs. Immutable. */ | 4510 /** The dataset to which this variant set belongs. Immutable. */ |
4594 core.String datasetId; | 4511 core.String datasetId; |
4595 | 4512 |
4596 /** The Google-generated ID of the variant set. Immutable. */ | 4513 /** The Google-generated ID of the variant set. Immutable. */ |
4597 core.String id; | 4514 core.String id; |
4598 | 4515 |
4599 /** The metadata associated with this variant set. */ | 4516 /** The metadata associated with this variant set. */ |
4600 core.List<Metadata> metadata; | 4517 core.List<Metadata> metadata; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4635 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 4552 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
4636 } | 4553 } |
4637 if (referenceBounds != null) { | 4554 if (referenceBounds != null) { |
4638 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 4555 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
4639 } | 4556 } |
4640 return _json; | 4557 return _json; |
4641 } | 4558 } |
4642 } | 4559 } |
4643 | 4560 |
4644 | 4561 |
OLD | NEW |