blob: feff75223f9419f84a264a83af215b44b443389c [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="genomics_v1beta.html">Genomics API</a> . <a href="genomics_v1beta.variants.html">variants</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(body)</a></code></p>
79<p class="firstline">Creates a new variant.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(variantId)</a></code></p>
82<p class="firstline">Deletes a variant.</p>
83<p class="toc_element">
84 <code><a href="#export">export(body)</a></code></p>
85<p class="firstline">Exports variant data to an external destination.</p>
86<p class="toc_element">
87 <code><a href="#get">get(variantId)</a></code></p>
88<p class="firstline">Gets a variant by ID.</p>
89<p class="toc_element">
Craig Citro065b5302014-08-14 00:47:23 -070090 <code><a href="#import_">import_(body)</a></code></p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -070091<p class="firstline">Creates variant data by asynchronously importing the provided information. The variants for import will be merged with any existing data and each other according to the behavior of mergeVariants. In particular, this means for merged VCF variants that have conflicting INFO fields, some data will be arbitrarily discarded. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a VariantSet.</p>
Craig Citro065b5302014-08-14 00:47:23 -070092<p class="toc_element">
93 <code><a href="#search">search(body)</a></code></p>
94<p class="firstline">Gets a list of variants matching the criteria.</p>
95<p class="toc_element">
96 <code><a href="#update">update(variantId, body)</a></code></p>
Craig Citro0e5b9bf2014-10-15 10:26:14 -070097<p class="firstline">Updates a variant's names and info fields. All other modifications are silently ignored. Returns the modified variant without its calls.</p>
Craig Citro065b5302014-08-14 00:47:23 -070098<h3>Method Details</h3>
99<div class="method">
100 <code class="details" id="create">create(body)</code>
101 <pre>Creates a new variant.
102
103Args:
104 body: object, The request body. (required)
105 The object takes the form of:
106
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700107{ # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700108 "info": { # A map of additional variant information.
109 "a_key": [ # A string which maps to an array of values.
110 "A String",
111 ],
112 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700113 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
114 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700115 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700116 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700117 "info": { # A map of additional variant call information.
118 "a_key": [ # A string which maps to an array of values.
119 "A String",
120 ],
121 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700122 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700123 42,
124 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700125 "callSetId": "A String", # The ID of the call set this variant call belongs to.
126 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700127 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
128 3.14,
129 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700130 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700131 },
132 ],
133 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
134 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700135 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
136 "A String",
137 ],
138 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700139 "names": [ # Names for the variant, for example a RefSNP ID.
140 "A String",
141 ],
142 "alternateBases": [ # The bases that appear instead of the reference bases.
143 "A String",
144 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700145 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
146 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700147 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700148}
149
150
151Returns:
152 An object of the form:
153
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700154 { # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700155 "info": { # A map of additional variant information.
156 "a_key": [ # A string which maps to an array of values.
157 "A String",
158 ],
159 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700160 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
161 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700162 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700163 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700164 "info": { # A map of additional variant call information.
165 "a_key": [ # A string which maps to an array of values.
166 "A String",
167 ],
168 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700169 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700170 42,
171 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700172 "callSetId": "A String", # The ID of the call set this variant call belongs to.
173 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700174 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
175 3.14,
176 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700177 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700178 },
179 ],
180 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
181 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700182 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
183 "A String",
184 ],
185 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700186 "names": [ # Names for the variant, for example a RefSNP ID.
187 "A String",
188 ],
189 "alternateBases": [ # The bases that appear instead of the reference bases.
190 "A String",
191 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700192 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
193 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700194 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700195 }</pre>
196</div>
197
198<div class="method">
199 <code class="details" id="delete">delete(variantId)</code>
200 <pre>Deletes a variant.
201
202Args:
203 variantId: string, The ID of the variant to be deleted. (required)
204</pre>
205</div>
206
207<div class="method">
208 <code class="details" id="export">export(body)</code>
209 <pre>Exports variant data to an external destination.
210
211Args:
212 body: object, The request body. (required)
213 The object takes the form of:
214
215{ # The variant data export request.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700216 "variantSetId": "A String", # Required. The ID of the variant set that contains variant data which should be exported. The caller must have READ access to this variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700217 "format": "A String", # The format for the exported data.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700218 "projectId": "A String", # The Google Cloud project number that owns the destination BigQuery dataset. The caller must have WRITE access to this project. This project will also own the resulting export job.
219 "callSetIds": [ # If provided, only variant call information from the specified call sets will be exported. By default all variant calls are exported.
Craig Citro065b5302014-08-14 00:47:23 -0700220 "A String",
221 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700222 "bigqueryDataset": "A String", # The BigQuery dataset to export data to. Note that this is distinct from the Genomics concept of "dataset".
223 "bigqueryTable": "A String", # The BigQuery table to export data to. If the table doesn't exist, it will be created. If it already exists, it will be overwritten.
Craig Citro065b5302014-08-14 00:47:23 -0700224 }
225
226
227Returns:
228 An object of the form:
229
230 { # The variant data export response.
231 "jobId": "A String", # A job ID that can be used to get status information.
232 }</pre>
233</div>
234
235<div class="method">
236 <code class="details" id="get">get(variantId)</code>
237 <pre>Gets a variant by ID.
238
239Args:
240 variantId: string, The ID of the variant. (required)
241
242Returns:
243 An object of the form:
244
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700245 { # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700246 "info": { # A map of additional variant information.
247 "a_key": [ # A string which maps to an array of values.
248 "A String",
249 ],
250 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700251 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
252 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700253 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700254 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700255 "info": { # A map of additional variant call information.
256 "a_key": [ # A string which maps to an array of values.
257 "A String",
258 ],
259 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700260 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700261 42,
262 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700263 "callSetId": "A String", # The ID of the call set this variant call belongs to.
264 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700265 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
266 3.14,
267 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700268 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700269 },
270 ],
271 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
272 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700273 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
274 "A String",
275 ],
276 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700277 "names": [ # Names for the variant, for example a RefSNP ID.
278 "A String",
279 ],
280 "alternateBases": [ # The bases that appear instead of the reference bases.
281 "A String",
282 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700283 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
284 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700285 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700286 }</pre>
287</div>
288
289<div class="method">
290 <code class="details" id="import_">import_(body)</code>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700291 <pre>Creates variant data by asynchronously importing the provided information. The variants for import will be merged with any existing data and each other according to the behavior of mergeVariants. In particular, this means for merged VCF variants that have conflicting INFO fields, some data will be arbitrarily discarded. As a special case, for single-sample VCF files, QUAL and FILTER fields will be moved to the call level; these are sometimes interpreted in a call-specific context. Imported VCF headers are appended to the metadata already in a VariantSet.
Craig Citro065b5302014-08-14 00:47:23 -0700292
293Args:
294 body: object, The request body. (required)
295 The object takes the form of:
296
297{ # The variant data import request.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700298 "variantSetId": "A String", # Required. The variant set to which variant data should be imported.
Craig Citro065b5302014-08-14 00:47:23 -0700299 "sourceUris": [ # A list of URIs pointing at VCF files in Google Cloud Storage. See the VCF Specification for more details on the input format.
300 "A String",
301 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700302 "format": "A String", # The format of the variant data being imported.
Craig Citro065b5302014-08-14 00:47:23 -0700303 }
304
305
306Returns:
307 An object of the form:
308
309 { # The variant data import response.
310 "jobId": "A String", # A job ID that can be used to get status information.
311 }</pre>
312</div>
313
314<div class="method">
Craig Citro065b5302014-08-14 00:47:23 -0700315 <code class="details" id="search">search(body)</code>
316 <pre>Gets a list of variants matching the criteria.
317
318Args:
319 body: object, The request body. (required)
320 The object takes the form of:
321
322{ # The variant search request.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700323 "end": "A String", # Required. The end of the window (0-based, exclusive) for which overlapping variants should be returned.
324 "pageSize": 42, # The maximum number of variants to return.
325 "start": "A String", # Required. The beginning of the window (0-based, inclusive) for which overlapping variants should be returned.
326 "maxCalls": 42, # The maximum number of calls to return. However, at least one variant will always be returned, even if it has more calls than this limit.
327 "pageToken": "A String", # The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of nextPageToken from the previous response.
328 "callSetIds": [ # Only return variant calls which belong to call sets with these ids. Leaving this blank returns all variant calls. If a variant has no calls belonging to any of these call sets, it won't be returned at all. Currently, variants with no calls from any call set will never be returned.
Craig Citro065b5302014-08-14 00:47:23 -0700329 "A String",
330 ],
331 "variantName": "A String", # Only return variants which have exactly this name.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700332 "referenceName": "A String", # Required. Only return variants in this reference sequence.
333 "variantSetIds": [ # Exactly one variant set ID must be provided. Only variants from this variant set will be returned.
334 "A String",
335 ],
Craig Citro065b5302014-08-14 00:47:23 -0700336 }
337
338
339Returns:
340 An object of the form:
341
342 { # The variant search response.
343 "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. This field will be empty if there aren't any additional results.
344 "variants": [ # The list of matching Variants.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700345 { # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700346 "info": { # A map of additional variant information.
347 "a_key": [ # A string which maps to an array of values.
348 "A String",
349 ],
350 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700351 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
352 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700353 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700354 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700355 "info": { # A map of additional variant call information.
356 "a_key": [ # A string which maps to an array of values.
357 "A String",
358 ],
359 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700360 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700361 42,
362 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700363 "callSetId": "A String", # The ID of the call set this variant call belongs to.
364 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700365 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
366 3.14,
367 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700368 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700369 },
370 ],
371 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
372 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700373 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
374 "A String",
375 ],
376 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700377 "names": [ # Names for the variant, for example a RefSNP ID.
378 "A String",
379 ],
380 "alternateBases": [ # The bases that appear instead of the reference bases.
381 "A String",
382 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700383 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
384 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700385 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700386 },
387 ],
388 }</pre>
389</div>
390
391<div class="method">
392 <code class="details" id="update">update(variantId, body)</code>
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700393 <pre>Updates a variant's names and info fields. All other modifications are silently ignored. Returns the modified variant without its calls.
Craig Citro065b5302014-08-14 00:47:23 -0700394
395Args:
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700396 variantId: string, The ID of the variant to be updated. (required)
Craig Citro065b5302014-08-14 00:47:23 -0700397 body: object, The request body. (required)
398 The object takes the form of:
399
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700400{ # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700401 "info": { # A map of additional variant information.
402 "a_key": [ # A string which maps to an array of values.
403 "A String",
404 ],
405 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700406 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
407 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700408 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700409 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700410 "info": { # A map of additional variant call information.
411 "a_key": [ # A string which maps to an array of values.
412 "A String",
413 ],
414 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700415 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700416 42,
417 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700418 "callSetId": "A String", # The ID of the call set this variant call belongs to.
419 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700420 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
421 3.14,
422 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700423 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700424 },
425 ],
426 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
427 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700428 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
429 "A String",
430 ],
431 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700432 "names": [ # Names for the variant, for example a RefSNP ID.
433 "A String",
434 ],
435 "alternateBases": [ # The bases that appear instead of the reference bases.
436 "A String",
437 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700438 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
439 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700440 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700441}
442
443
444Returns:
445 An object of the form:
446
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700447 { # A Variant represents a change in DNA sequence relative to some reference. For example, a Variant could represent a SNP or an insertion. Variants belong to a variant set.
Craig Citro065b5302014-08-14 00:47:23 -0700448 "info": { # A map of additional variant information.
449 "a_key": [ # A string which maps to an array of values.
450 "A String",
451 ],
452 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700453 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
454 "end": "A String", # The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
Craig Citro065b5302014-08-14 00:47:23 -0700455 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700456 { # A Call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a Call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.
Craig Citro065b5302014-08-14 00:47:23 -0700457 "info": { # A map of additional variant call information.
458 "a_key": [ # A string which maps to an array of values.
459 "A String",
460 ],
461 },
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700462 "genotype": [ # The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned.
Craig Citro065b5302014-08-14 00:47:23 -0700463 42,
464 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700465 "callSetId": "A String", # The ID of the call set this variant call belongs to.
466 "phaseset": "A String", # If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *.
Craig Citro065b5302014-08-14 00:47:23 -0700467 "genotypeLikelihood": [ # The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec.
468 3.14,
469 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700470 "callSetName": "A String", # The name of the call set this variant call belongs to.
Craig Citro065b5302014-08-14 00:47:23 -0700471 },
472 ],
473 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
474 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700475 "filter": [ # A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
476 "A String",
477 ],
478 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
Craig Citro065b5302014-08-14 00:47:23 -0700479 "names": [ # Names for the variant, for example a RefSNP ID.
480 "A String",
481 ],
482 "alternateBases": [ # The bases that appear instead of the reference bases.
483 "A String",
484 ],
Craig Citro0e5b9bf2014-10-15 10:26:14 -0700485 "referenceName": "A String", # The reference on which this variant occurs. (such as chr20 or X)
486 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
Craig Citro065b5302014-08-14 00:47:23 -0700487 "id": "A String", # The Google generated ID of the variant, immutable.
Craig Citro065b5302014-08-14 00:47:23 -0700488 }</pre>
489</div>
490
491</body></html>