blob: a6a10e94477ebfac1560cad76994cd5ba18f8822 [file] [log] [blame]
Takashi Matsuo06694102015-09-11 13:55:40 -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_v1.html">Genomics API</a> . <a href="genomics_v1.variants.html">variants</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(body, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080079<p class="firstline">Creates a new variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070080<p class="toc_element">
81 <code><a href="#delete">delete(variantId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080082<p class="firstline">Deletes a variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070083<p class="toc_element">
84 <code><a href="#get">get(variantId, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080085<p class="firstline">Gets a variant by ID. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070086<p class="toc_element">
87 <code><a href="#import_">import_(body, x__xgafv=None)</a></code></p>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -070088<p class="firstline">Creates variant data by asynchronously importing the provided information. For the definitions of variant sets and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) The variants for import will be merged with any existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant, and Variant info fields are merged as specified in infoMergeConfig. 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 variant set.</p>
89<p class="toc_element">
90 <code><a href="#merge">merge(body, x__xgafv=None)</a></code></p>
91<p class="firstline">Merges the given variants with existing variants. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each variant will be merged with an existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant. Variant info fields are merged as specified in the infoMergeConfig field of the MergeVariantsRequest. Please exercise caution when using this method! It is easy to introduce mistakes in existing variants and difficult to back out of them. For example, suppose you were trying to merge a new variant with an existing one and both variants contain calls that belong to callsets with the same callset ID. // Existing variant - irrelevant fields trimmed for clarity { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 0, 1 ], } ] } // New variant with conflicting call information { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 1, 1 ], } ] } The resulting merged variant would overwrite the existing calls with those from the new variant: { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 1, 1 ], } ] } This may be the desired outcome, but it is up to the user to determine if if that is indeed the case.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070092<p class="toc_element">
93 <code><a href="#patch">patch(variantId, body, x__xgafv=None, updateMask=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080094<p class="firstline">Updates a variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) This method supports patch semantics. Returns the modified variant without its calls.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -070095<p class="toc_element">
96 <code><a href="#search">search(body, x__xgafv=None)</a></code></p>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -080097<p class="firstline">Gets a list of variants matching the criteria. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126).</p>
98<p class="toc_element">
99 <code><a href="#stream">stream(body, x__xgafv=None)</a></code></p>
100<p class="firstline">Returns a stream of all the variants matching the search request, ordered by reference name, position, and ID.</p>
Takashi Matsuo06694102015-09-11 13:55:40 -0700101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="create">create(body, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800104 <pre>Creates a new variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
Takashi Matsuo06694102015-09-11 13:55:40 -0700105
106Args:
107 body: object, The request body. (required)
108 The object takes the form of:
109
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800110{ # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700111 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
112 "a_key": [
113 "",
114 ],
115 },
116 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
117 "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.
118 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
119 { # 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.
120 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
121 "a_key": [
122 "",
123 ],
124 },
125 "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.
126 42,
127 ],
128 "callSetId": "A String", # The ID of the call set this variant call belongs to.
129 "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 `*`.
130 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
131 3.14,
132 ],
133 "callSetName": "A String", # The name of the call set this variant call belongs to.
134 },
135 ],
136 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
137 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
138 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
139 "A String",
140 ],
141 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
142 "names": [ # Names for the variant, for example a RefSNP ID.
143 "A String",
144 ],
145 "alternateBases": [ # The bases that appear instead of the reference bases.
146 "A String",
147 ],
148 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
149 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
150 "id": "A String", # The server-generated variant ID, unique across all variants.
151}
152
153 x__xgafv: string, V1 error format.
154
155Returns:
156 An object of the form:
157
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800158 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700159 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
160 "a_key": [
161 "",
162 ],
163 },
164 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
165 "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.
166 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
167 { # 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.
168 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
169 "a_key": [
170 "",
171 ],
172 },
173 "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.
174 42,
175 ],
176 "callSetId": "A String", # The ID of the call set this variant call belongs to.
177 "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 `*`.
178 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
179 3.14,
180 ],
181 "callSetName": "A String", # The name of the call set this variant call belongs to.
182 },
183 ],
184 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
185 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
186 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
187 "A String",
188 ],
189 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
190 "names": [ # Names for the variant, for example a RefSNP ID.
191 "A String",
192 ],
193 "alternateBases": [ # The bases that appear instead of the reference bases.
194 "A String",
195 ],
196 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
197 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
198 "id": "A String", # The server-generated variant ID, unique across all variants.
199 }</pre>
200</div>
201
202<div class="method">
203 <code class="details" id="delete">delete(variantId, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800204 <pre>Deletes a variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
Takashi Matsuo06694102015-09-11 13:55:40 -0700205
206Args:
207 variantId: string, The ID of the variant to be deleted. (required)
208 x__xgafv: string, V1 error format.
209
210Returns:
211 An object of the form:
212
213 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
214 }</pre>
215</div>
216
217<div class="method">
218 <code class="details" id="get">get(variantId, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800219 <pre>Gets a variant by ID. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
Takashi Matsuo06694102015-09-11 13:55:40 -0700220
221Args:
222 variantId: string, The ID of the variant. (required)
223 x__xgafv: string, V1 error format.
224
225Returns:
226 An object of the form:
227
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800228 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700229 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
230 "a_key": [
231 "",
232 ],
233 },
234 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
235 "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.
236 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
237 { # 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.
238 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
239 "a_key": [
240 "",
241 ],
242 },
243 "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.
244 42,
245 ],
246 "callSetId": "A String", # The ID of the call set this variant call belongs to.
247 "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 `*`.
248 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
249 3.14,
250 ],
251 "callSetName": "A String", # The name of the call set this variant call belongs to.
252 },
253 ],
254 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
255 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
256 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
257 "A String",
258 ],
259 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
260 "names": [ # Names for the variant, for example a RefSNP ID.
261 "A String",
262 ],
263 "alternateBases": [ # The bases that appear instead of the reference bases.
264 "A String",
265 ],
266 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
267 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
268 "id": "A String", # The server-generated variant ID, unique across all variants.
269 }</pre>
270</div>
271
272<div class="method">
273 <code class="details" id="import_">import_(body, x__xgafv=None)</code>
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700274 <pre>Creates variant data by asynchronously importing the provided information. For the definitions of variant sets and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) The variants for import will be merged with any existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant, and Variant info fields are merged as specified in infoMergeConfig. 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 variant set.
Takashi Matsuo06694102015-09-11 13:55:40 -0700275
276Args:
277 body: object, The request body. (required)
278 The object takes the form of:
279
280{ # The variant data import request.
281 "variantSetId": "A String", # Required. The variant set to which variant data should be imported.
282 "normalizeReferenceNames": True or False, # Convert reference names to the canonical representation. hg19 haploytypes (those reference names containing "_hap") are not modified in any way. All other reference names are modified according to the following rules: The reference name is capitalized. The "chr" prefix is dropped for all autosomes and sex chromsomes. For example "chr17" becomes "17" and "chrX" becomes "X". All mitochondrial chromosomes ("chrM", "chrMT", etc) become "MT".
283 "sourceUris": [ # A list of URIs referencing variant files in Google Cloud Storage. URIs can include wildcards [as described here](https://cloud.google.com/storage/docs/gsutil/addlhelp/WildcardNames). Note that recursive wildcards ('**') are not supported.
284 "A String",
285 ],
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700286 "infoMergeConfig": { # A mapping between info field keys and the InfoMergeOperations to be performed on them. This is plumbed down to the MergeVariantRequests generated by the resulting import job.
287 "a_key": "A String",
288 },
Takashi Matsuo06694102015-09-11 13:55:40 -0700289 "format": "A String", # The format of the variant data being imported. If unspecified, defaults to to `VCF`.
290 }
291
292 x__xgafv: string, V1 error format.
293
294Returns:
295 An object of the form:
296
297 { # This resource represents a long-running operation that is the result of a network API call.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800298 "response": { # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If importing Variants, an ImportVariantsResponse is returned. For exports, an empty response is returned.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700299 "a_key": "", # Properties of the object. Contains field @type with type URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700300 },
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700301 "error": { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons. # The error result of the operation in case of failure or cancellation.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800302 "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
303 "code": 42, # The status code, which should be an enum value of google.rpc.Code.
Takashi Matsuo06694102015-09-11 13:55:40 -0700304 "details": [ # A list of messages that carry the error details. There will be a common set of message types for APIs to use.
305 {
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700306 "a_key": "", # Properties of the object. Contains field @type with type URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700307 },
308 ],
309 },
310 "done": True or False, # If the value is `false`, it means the operation is still in progress. If true, the operation is completed, and either `error` or `response` is available.
311 "name": "A String", # The server-assigned name, which is only unique within the same service that originally returns it. For example: `operations/CJHU7Oi_ChDrveSpBRjfuL-qzoWAgEw`
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800312 "metadata": { # An OperationMetadata object. This will always be returned with the Operation.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700313 "a_key": "", # Properties of the object. Contains field @type with type URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700314 },
315 }</pre>
316</div>
317
318<div class="method">
Jon Wayne Parrott0a471d32016-05-19 10:54:38 -0700319 <code class="details" id="merge">merge(body, x__xgafv=None)</code>
320 <pre>Merges the given variants with existing variants. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each variant will be merged with an existing variant that matches its reference sequence, start, end, reference bases, and alternative bases. If no such variant exists, a new one will be created. When variants are merged, the call information from the new variant is added to the existing variant. Variant info fields are merged as specified in the infoMergeConfig field of the MergeVariantsRequest. Please exercise caution when using this method! It is easy to introduce mistakes in existing variants and difficult to back out of them. For example, suppose you were trying to merge a new variant with an existing one and both variants contain calls that belong to callsets with the same callset ID. // Existing variant - irrelevant fields trimmed for clarity { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 0, 1 ], } ] } // New variant with conflicting call information { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 1, 1 ], } ] } The resulting merged variant would overwrite the existing calls with those from the new variant: { "variantSetId": "10473108253681171589", "referenceName": "1", "start": "10582", "referenceBases": "G", "alternateBases": [ "A" ], "calls": [ { "callSetId": "10473108253681171589-0", "callSetName": "CALLSET0", "genotype": [ 1, 1 ], } ] } This may be the desired outcome, but it is up to the user to determine if if that is indeed the case.
321
322Args:
323 body: object, The request body. (required)
324 The object takes the form of:
325
326{
327 "variantSetId": "A String", # The destination variant set.
328 "variants": [ # The variants to be merged with existing variants.
329 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
330 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
331 "a_key": [
332 "",
333 ],
334 },
335 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
336 "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.
337 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
338 { # 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.
339 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
340 "a_key": [
341 "",
342 ],
343 },
344 "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.
345 42,
346 ],
347 "callSetId": "A String", # The ID of the call set this variant call belongs to.
348 "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 `*`.
349 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
350 3.14,
351 ],
352 "callSetName": "A String", # The name of the call set this variant call belongs to.
353 },
354 ],
355 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
356 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
357 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
358 "A String",
359 ],
360 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
361 "names": [ # Names for the variant, for example a RefSNP ID.
362 "A String",
363 ],
364 "alternateBases": [ # The bases that appear instead of the reference bases.
365 "A String",
366 ],
367 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
368 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
369 "id": "A String", # The server-generated variant ID, unique across all variants.
370 },
371 ],
372 "infoMergeConfig": { # A mapping between info field keys and the InfoMergeOperations to be performed on them.
373 "a_key": "A String",
374 },
375 }
376
377 x__xgafv: string, V1 error format.
378
379Returns:
380 An object of the form:
381
382 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
383 }</pre>
384</div>
385
386<div class="method">
Takashi Matsuo06694102015-09-11 13:55:40 -0700387 <code class="details" id="patch">patch(variantId, body, x__xgafv=None, updateMask=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800388 <pre>Updates a variant. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) This method supports patch semantics. Returns the modified variant without its calls.
Takashi Matsuo06694102015-09-11 13:55:40 -0700389
390Args:
391 variantId: string, The ID of the variant to be updated. (required)
392 body: object, The request body. (required)
393 The object takes the form of:
394
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800395{ # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700396 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
397 "a_key": [
398 "",
399 ],
400 },
401 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
402 "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.
403 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
404 { # 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.
405 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
406 "a_key": [
407 "",
408 ],
409 },
410 "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.
411 42,
412 ],
413 "callSetId": "A String", # The ID of the call set this variant call belongs to.
414 "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 `*`.
415 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
416 3.14,
417 ],
418 "callSetName": "A String", # The name of the call set this variant call belongs to.
419 },
420 ],
421 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
422 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
423 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
424 "A String",
425 ],
426 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
427 "names": [ # Names for the variant, for example a RefSNP ID.
428 "A String",
429 ],
430 "alternateBases": [ # The bases that appear instead of the reference bases.
431 "A String",
432 ],
433 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
434 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
435 "id": "A String", # The server-generated variant ID, unique across all variants.
436}
437
438 x__xgafv: string, V1 error format.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800439 updateMask: string, An optional mask specifying which fields to update. At this time, mutable fields are names and info. Acceptable values are "names" and "info". If unspecified, all mutable fields will be updated.
Takashi Matsuo06694102015-09-11 13:55:40 -0700440
441Returns:
442 An object of the form:
443
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800444 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700445 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
446 "a_key": [
447 "",
448 ],
449 },
450 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
451 "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.
452 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
453 { # 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.
454 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
455 "a_key": [
456 "",
457 ],
458 },
459 "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.
460 42,
461 ],
462 "callSetId": "A String", # The ID of the call set this variant call belongs to.
463 "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 `*`.
464 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
465 3.14,
466 ],
467 "callSetName": "A String", # The name of the call set this variant call belongs to.
468 },
469 ],
470 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
471 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
472 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
473 "A String",
474 ],
475 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
476 "names": [ # Names for the variant, for example a RefSNP ID.
477 "A String",
478 ],
479 "alternateBases": [ # The bases that appear instead of the reference bases.
480 "A String",
481 ],
482 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
483 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
484 "id": "A String", # The server-generated variant ID, unique across all variants.
485 }</pre>
486</div>
487
488<div class="method">
489 <code class="details" id="search">search(body, x__xgafv=None)</code>
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800490 <pre>Gets a list of variants matching the criteria. For the definitions of variants and other genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L126).
Takashi Matsuo06694102015-09-11 13:55:40 -0700491
492Args:
493 body: object, The request body. (required)
494 The object takes the form of:
495
496{ # The variant search request.
497 "end": "A String", # The end of the window, 0-based exclusive. If unspecified or 0, defaults to the length of the reference.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800498 "pageSize": 42, # The maximum number of variants to return in a single page. If unspecified, defaults to 5000. The maximum value is 10000.
Takashi Matsuo06694102015-09-11 13:55:40 -0700499 "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.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800500 "maxCalls": 42, # The maximum number of calls to return in a single page. Note that this limit may be exceeded in the event that a matching variant contains more calls than the requested maximum. If unspecified, defaults to 5000. The maximum value is 10000.
Takashi Matsuo06694102015-09-11 13:55:40 -0700501 "start": "A String", # The beginning of the window (0-based, inclusive) for which overlapping variants should be returned. If unspecified, defaults to 0.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700502 "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.
Takashi Matsuo06694102015-09-11 13:55:40 -0700503 "A String",
504 ],
505 "variantName": "A String", # Only return variants which have exactly this name.
506 "referenceName": "A String", # Required. Only return variants in this reference sequence.
507 "variantSetIds": [ # At most one variant set ID must be provided. Only variants from this variant set will be returned. If omitted, a call set id must be included in the request.
508 "A String",
509 ],
510 }
511
512 x__xgafv: string, V1 error format.
513
514Returns:
515 An object of the form:
516
517 { # The variant search response.
518 "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.
519 "variants": [ # The list of matching Variants.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800520 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
521 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
522 "a_key": [
523 "",
524 ],
525 },
526 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
527 "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.
528 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
529 { # 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.
530 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
531 "a_key": [
532 "",
533 ],
534 },
535 "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.
536 42,
537 ],
538 "callSetId": "A String", # The ID of the call set this variant call belongs to.
539 "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 `*`.
540 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
541 3.14,
542 ],
543 "callSetName": "A String", # The name of the call set this variant call belongs to.
544 },
545 ],
546 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
547 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
548 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
549 "A String",
550 ],
551 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
552 "names": [ # Names for the variant, for example a RefSNP ID.
553 "A String",
554 ],
555 "alternateBases": [ # The bases that appear instead of the reference bases.
556 "A String",
557 ],
558 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
559 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
560 "id": "A String", # The server-generated variant ID, unique across all variants.
561 },
562 ],
563 }</pre>
564</div>
565
566<div class="method">
567 <code class="details" id="stream">stream(body, x__xgafv=None)</code>
568 <pre>Returns a stream of all the variants matching the search request, ordered by reference name, position, and ID.
569
570Args:
571 body: object, The request body. (required)
572 The object takes the form of:
573
574{ # The stream variants request.
575 "variantSetId": "A String", # The variant set ID from which to stream variants.
576 "end": "A String", # The end of the window (0-based, exclusive) for which overlapping variants should be returned.
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700577 "projectId": "A String", # The Google Cloud project ID which will be billed for this access. The caller must have WRITE access to this project. Required.
Jon Wayne Parrott36e41bc2016-02-19 16:02:29 -0800578 "start": "A String", # The beginning of the window (0-based, inclusive) for which overlapping variants should be returned.
579 "callSetIds": [ # Only return variant calls which belong to call sets with these IDs. Leaving this blank returns all variant calls.
580 "A String",
581 ],
582 "referenceName": "A String", # Required. Only return variants in this reference sequence.
583 }
584
585 x__xgafv: string, V1 error format.
586
587Returns:
588 An object of the form:
589
590 {
591 "variants": [
592 { # A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. For more genomics resource definitions, see [Fundamentals of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics) Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Takashi Matsuo06694102015-09-11 13:55:40 -0700593 "info": { # A map of additional variant information. This must be of the form map (string key mapping to a list of string values).
594 "a_key": [
595 "",
596 ],
597 },
598 "variantSetId": "A String", # The ID of the variant set this variant belongs to.
599 "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.
600 "calls": [ # The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
601 { # 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.
602 "info": { # A map of additional variant call information. This must be of the form map (string key mapping to a list of string values).
603 "a_key": [
604 "",
605 ],
606 },
607 "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.
608 42,
609 ],
610 "callSetId": "A String", # The ID of the call set this variant call belongs to.
611 "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 `*`.
612 "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. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in `info`.
613 3.14,
614 ],
615 "callSetName": "A String", # The name of the call set this variant call belongs to.
616 },
617 ],
618 "created": "A String", # The date this variant was created, in milliseconds from the epoch.
619 "referenceBases": "A String", # The reference bases for this variant. They start at the given position.
620 "filter": [ # A list of filters (normally quality filters) this variant has failed. `PASS` indicates this variant has passed all filters.
621 "A String",
622 ],
623 "start": "A String", # The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
624 "names": [ # Names for the variant, for example a RefSNP ID.
625 "A String",
626 ],
627 "alternateBases": [ # The bases that appear instead of the reference bases.
628 "A String",
629 ],
630 "referenceName": "A String", # The reference on which this variant occurs. (such as `chr20` or `X`)
631 "quality": 3.14, # A measure of how likely this variant is to be real. A higher value is better.
632 "id": "A String", # The server-generated variant ID, unique across all variants.
633 },
634 ],
635 }</pre>
636</div>
637
638</body></html>