Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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.annotations.html">annotations</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="#batchCreate">batchCreate(body, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 79 | <p class="firstline">Creates one or more new annotations atomically. All annotations must</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 80 | <p class="toc_element"> |
| 81 | <code><a href="#create">create(body, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 82 | <p class="firstline">Creates a new annotation. Caller must have WRITE permission</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 83 | <p class="toc_element"> |
| 84 | <code><a href="#delete">delete(annotationId, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 85 | <p class="firstline">Deletes an annotation. Caller must have WRITE permission for</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 86 | <p class="toc_element"> |
| 87 | <code><a href="#get">get(annotationId, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 88 | <p class="firstline">Gets an annotation. Caller must have READ permission</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#search">search(body, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 91 | <p class="firstline">Searches for annotations that match the given criteria. Results are</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p> |
| 94 | <p class="firstline">Retrieves the next page of results.</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
| 96 | <code><a href="#update">update(annotationId, body, updateMask=None, x__xgafv=None)</a></code></p> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 97 | <p class="firstline">Updates an annotation. Caller must have</p> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
| 100 | <code class="details" id="batchCreate">batchCreate(body, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 101 | <pre>Creates one or more new annotations atomically. All annotations must |
| 102 | belong to the same annotation set. Caller must have WRITE |
| 103 | permission for this annotation set. For optimal performance, batch |
| 104 | positionally adjacent annotations together. |
| 105 | |
| 106 | If the request has a systemic issue, such as an attempt to write to |
| 107 | an inaccessible annotation set, the entire RPC will fail accordingly. For |
| 108 | lesser data issues, when possible an error will be isolated to the |
| 109 | corresponding batch entry in the response; the remaining well formed |
| 110 | annotations will be created normally. |
| 111 | |
| 112 | For details on the requirements for each individual annotation resource, |
| 113 | see |
| 114 | CreateAnnotation. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 115 | |
| 116 | Args: |
| 117 | body: object, The request body. (required) |
| 118 | The object takes the form of: |
| 119 | |
| 120 | { |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 121 | "requestId": "A String", # A unique request ID which enables the server to detect duplicated requests. |
| 122 | # If provided, duplicated requests will result in the same response; if not |
| 123 | # provided, duplicated requests may result in duplicated data. For a given |
| 124 | # annotation set, callers should not reuse `request_id`s when writing |
| 125 | # different batches of annotations - behavior in this case is undefined. |
| 126 | # A common approach is to use a UUID. For batch jobs where worker crashes are |
| 127 | # a possibility, consider using some unique variant of a worker or run ID. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 128 | "annotations": [ # The annotations to be created. At most 4096 can be specified in a single |
| 129 | # request. |
| 130 | { # An annotation describes a region of reference genome. The value of an |
| 131 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 132 | # info tags. An annotation is not inherently associated with a specific |
| 133 | # sample or individual (though a client could choose to use annotations in |
| 134 | # this way). Example canonical annotation types are `GENE` and |
| 135 | # `VARIANT`. |
| 136 | "info": { # A map of additional read alignment information. This must be of the form |
| 137 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 138 | "a_key": [ |
| 139 | "", |
| 140 | ], |
| 141 | }, |
| 142 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 143 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 144 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 145 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 146 | # set's type. |
| 147 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 148 | # genome, the coding sequence, and/or higher level consequences at the |
| 149 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 150 | # of type `VARIANT`. |
| 151 | "conditions": [ # The set of conditions associated with this variant. |
| 152 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 153 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 154 | "externalIds": [ # The set of external IDs for this condition. |
| 155 | { |
| 156 | "sourceName": "A String", # The name of the source of this data. |
| 157 | "id": "A String", # The id used by the source of this data. |
| 158 | }, |
| 159 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 160 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 161 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 162 | "omimId": "A String", # The OMIM id for this condition. |
| 163 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 164 | "names": [ # A set of names for the condition. |
| 165 | "A String", |
| 166 | ], |
| 167 | }, |
| 168 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 169 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 170 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 171 | # should be provided when the variant is created. |
| 172 | "A String", |
| 173 | ], |
| 174 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 175 | # exist at this location, create a separate variant for each one, as they |
| 176 | # may represent distinct conditions. |
| 177 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 178 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 179 | # significance described at: |
| 180 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 181 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 182 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 183 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 184 | }, |
| 185 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 186 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 187 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 188 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 189 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 190 | # strand. Note that regardless of this field, the start/end position of the |
| 191 | # range always refer to the forward strand. |
| 192 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 193 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 194 | # pattern would be represented as a separate transcript object. This field |
| 195 | # is only set for annotations of type `TRANSCRIPT`. |
| 196 | # reference genome may be transcribed as RNA. |
| 197 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 198 | # the exact ranges of coding sequence, intersect this range with those of the |
| 199 | # exons, if any. If there are any |
| 200 | # exons, the |
| 201 | # codingSequence must start |
| 202 | # and end within them. |
| 203 | # |
| 204 | # Note that in some cases, the reference genome will not exactly match the |
| 205 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 206 | # reference. In these cases, |
| 207 | # exon.frame will not necessarily |
| 208 | # match the expected reference reading frame and coding exon reference bases |
| 209 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 210 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 211 | # 0-based inclusive. Note that this position is relative to the reference |
| 212 | # start, and *not* the containing annotation start. |
| 213 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 214 | # 0-based exclusive. Note that this position is relative to the reference |
| 215 | # start, and *not* the containing annotation start. |
| 216 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 217 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 218 | # this transcript. This field should be unset for genomes where transcript |
| 219 | # splicing does not occur, for example prokaryotes. |
| 220 | # |
| 221 | # Introns are regions of the transcript that are not included in the |
| 222 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 223 | # be deduced; all regions of this transcript that are not exons are introns. |
| 224 | # |
| 225 | # Exonic sequences do not necessarily code for a translational product |
| 226 | # (amino acids). Only the regions of exons bounded by the |
| 227 | # codingSequence correspond |
| 228 | # to coding DNA sequence. |
| 229 | # |
| 230 | # Exons are ordered by start position and may not overlap. |
| 231 | { |
| 232 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 233 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 234 | # **not** the containing annotation start. |
| 235 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 236 | # the offset of the first coding base of the exon within the reading frame |
| 237 | # of the coding DNA sequence, if any. This field is dependent on the |
| 238 | # strandedness of this annotation (see |
| 239 | # Annotation.reverse_strand). |
| 240 | # For forward stranded annotations, this offset is relative to the |
| 241 | # exon.start. For reverse |
| 242 | # strand annotations, this offset is relative to the |
| 243 | # exon.end `- 1`. |
| 244 | # |
| 245 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 246 | # of a transcript, the frame must be populated for all or none of the |
| 247 | # coding exons. |
| 248 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 249 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 250 | # *not* the containing annotation start. |
| 251 | }, |
| 252 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 253 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 254 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 255 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 256 | }, |
| 257 | ], |
| 258 | } |
| 259 | |
| 260 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 261 | Allowed values |
| 262 | 1 - v1 error format |
| 263 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 264 | |
| 265 | Returns: |
| 266 | An object of the form: |
| 267 | |
| 268 | { |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 269 | "entries": [ # The resulting per-annotation entries, ordered consistently with the |
| 270 | # original request. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 271 | { |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 272 | "status": { # The `Status` type defines a logical error model that is suitable for different # The creation status. |
| 273 | # programming environments, including REST APIs and RPC APIs. It is used by |
| 274 | # [gRPC](https://github.com/grpc). The error model is designed to be: |
| 275 | # |
| 276 | # - Simple to use and understand for most users |
| 277 | # - Flexible enough to meet unexpected needs |
| 278 | # |
| 279 | # # Overview |
| 280 | # |
| 281 | # The `Status` message contains three pieces of data: error code, error message, |
| 282 | # and error details. The error code should be an enum value of |
| 283 | # google.rpc.Code, but it may accept additional error codes if needed. The |
| 284 | # error message should be a developer-facing English message that helps |
| 285 | # developers *understand* and *resolve* the error. If a localized user-facing |
| 286 | # error message is needed, put the localized message in the error details or |
| 287 | # localize it in the client. The optional error details may contain arbitrary |
| 288 | # information about the error. There is a predefined set of error detail types |
| 289 | # in the package `google.rpc` which can be used for common error conditions. |
| 290 | # |
| 291 | # # Language mapping |
| 292 | # |
| 293 | # The `Status` message is the logical representation of the error model, but it |
| 294 | # is not necessarily the actual wire format. When the `Status` message is |
| 295 | # exposed in different client libraries and different wire protocols, it can be |
| 296 | # mapped differently. For example, it will likely be mapped to some exceptions |
| 297 | # in Java, but more likely mapped to some error codes in C. |
| 298 | # |
| 299 | # # Other uses |
| 300 | # |
| 301 | # The error model and the `Status` message can be used in a variety of |
| 302 | # environments, either with or without APIs, to provide a |
| 303 | # consistent developer experience across different environments. |
| 304 | # |
| 305 | # Example uses of this error model include: |
| 306 | # |
| 307 | # - Partial errors. If a service needs to return partial errors to the client, |
| 308 | # it may embed the `Status` in the normal response to indicate the partial |
| 309 | # errors. |
| 310 | # |
| 311 | # - Workflow errors. A typical workflow has multiple steps. Each step may |
| 312 | # have a `Status` message for error reporting purpose. |
| 313 | # |
| 314 | # - Batch operations. If a client uses batch request and batch response, the |
| 315 | # `Status` message should be used directly inside batch response, one for |
| 316 | # each error sub-response. |
| 317 | # |
| 318 | # - Asynchronous operations. If an API call embeds asynchronous operation |
| 319 | # results in its response, the status of those operations should be |
| 320 | # represented directly using the `Status` message. |
| 321 | # |
| 322 | # - Logging. If some API errors are stored in logs, the message `Status` could |
| 323 | # be used directly after any stripping needed for security/privacy reasons. |
| 324 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 325 | # user-facing error message should be localized and sent in the |
| 326 | # google.rpc.Status.details field, or localized by the client. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 327 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 328 | "details": [ # A list of messages that carry the error details. There will be a |
| 329 | # common set of message types for APIs to use. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 330 | { |
Jon Wayne Parrott | 7d5badb | 2016-08-16 12:44:29 -0700 | [diff] [blame] | 331 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 332 | }, |
| 333 | ], |
| 334 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 335 | "annotation": { # An annotation describes a region of reference genome. The value of an # The created annotation, if creation was successful. |
| 336 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 337 | # info tags. An annotation is not inherently associated with a specific |
| 338 | # sample or individual (though a client could choose to use annotations in |
| 339 | # this way). Example canonical annotation types are `GENE` and |
| 340 | # `VARIANT`. |
| 341 | "info": { # A map of additional read alignment information. This must be of the form |
| 342 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 343 | "a_key": [ |
| 344 | "", |
| 345 | ], |
| 346 | }, |
| 347 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 348 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 349 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 350 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 351 | # set's type. |
| 352 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 353 | # genome, the coding sequence, and/or higher level consequences at the |
| 354 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 355 | # of type `VARIANT`. |
| 356 | "conditions": [ # The set of conditions associated with this variant. |
| 357 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 358 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 359 | "externalIds": [ # The set of external IDs for this condition. |
| 360 | { |
| 361 | "sourceName": "A String", # The name of the source of this data. |
| 362 | "id": "A String", # The id used by the source of this data. |
| 363 | }, |
| 364 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 365 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 366 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 367 | "omimId": "A String", # The OMIM id for this condition. |
| 368 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 369 | "names": [ # A set of names for the condition. |
| 370 | "A String", |
| 371 | ], |
| 372 | }, |
| 373 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 374 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 375 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 376 | # should be provided when the variant is created. |
| 377 | "A String", |
| 378 | ], |
| 379 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 380 | # exist at this location, create a separate variant for each one, as they |
| 381 | # may represent distinct conditions. |
| 382 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 383 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 384 | # significance described at: |
| 385 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 386 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 387 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 388 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 389 | }, |
| 390 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 391 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 392 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 393 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 394 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 395 | # strand. Note that regardless of this field, the start/end position of the |
| 396 | # range always refer to the forward strand. |
| 397 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 398 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 399 | # pattern would be represented as a separate transcript object. This field |
| 400 | # is only set for annotations of type `TRANSCRIPT`. |
| 401 | # reference genome may be transcribed as RNA. |
| 402 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 403 | # the exact ranges of coding sequence, intersect this range with those of the |
| 404 | # exons, if any. If there are any |
| 405 | # exons, the |
| 406 | # codingSequence must start |
| 407 | # and end within them. |
| 408 | # |
| 409 | # Note that in some cases, the reference genome will not exactly match the |
| 410 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 411 | # reference. In these cases, |
| 412 | # exon.frame will not necessarily |
| 413 | # match the expected reference reading frame and coding exon reference bases |
| 414 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 415 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 416 | # 0-based inclusive. Note that this position is relative to the reference |
| 417 | # start, and *not* the containing annotation start. |
| 418 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 419 | # 0-based exclusive. Note that this position is relative to the reference |
| 420 | # start, and *not* the containing annotation start. |
| 421 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 422 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 423 | # this transcript. This field should be unset for genomes where transcript |
| 424 | # splicing does not occur, for example prokaryotes. |
| 425 | # |
| 426 | # Introns are regions of the transcript that are not included in the |
| 427 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 428 | # be deduced; all regions of this transcript that are not exons are introns. |
| 429 | # |
| 430 | # Exonic sequences do not necessarily code for a translational product |
| 431 | # (amino acids). Only the regions of exons bounded by the |
| 432 | # codingSequence correspond |
| 433 | # to coding DNA sequence. |
| 434 | # |
| 435 | # Exons are ordered by start position and may not overlap. |
| 436 | { |
| 437 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 438 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 439 | # **not** the containing annotation start. |
| 440 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 441 | # the offset of the first coding base of the exon within the reading frame |
| 442 | # of the coding DNA sequence, if any. This field is dependent on the |
| 443 | # strandedness of this annotation (see |
| 444 | # Annotation.reverse_strand). |
| 445 | # For forward stranded annotations, this offset is relative to the |
| 446 | # exon.start. For reverse |
| 447 | # strand annotations, this offset is relative to the |
| 448 | # exon.end `- 1`. |
| 449 | # |
| 450 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 451 | # of a transcript, the frame must be populated for all or none of the |
| 452 | # coding exons. |
| 453 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 454 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 455 | # *not* the containing annotation start. |
| 456 | }, |
| 457 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 458 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 459 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 460 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 461 | }, |
| 462 | }, |
| 463 | ], |
| 464 | }</pre> |
| 465 | </div> |
| 466 | |
| 467 | <div class="method"> |
| 468 | <code class="details" id="create">create(body, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 469 | <pre>Creates a new annotation. Caller must have WRITE permission |
| 470 | for the associated annotation set. |
| 471 | |
| 472 | The following fields are required: |
| 473 | |
| 474 | * annotationSetId |
| 475 | * referenceName or |
| 476 | referenceId |
| 477 | |
| 478 | ### Transcripts |
| 479 | |
| 480 | For annotations of type TRANSCRIPT, the following fields of |
| 481 | transcript must be provided: |
| 482 | |
| 483 | * exons.start |
| 484 | * exons.end |
| 485 | |
| 486 | All other fields may be optionally specified, unless documented as being |
| 487 | server-generated (for example, the `id` field). The annotated |
| 488 | range must be no longer than 100Mbp (mega base pairs). See the |
| 489 | Annotation resource |
| 490 | for additional restrictions on each field. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 491 | |
| 492 | Args: |
| 493 | body: object, The request body. (required) |
| 494 | The object takes the form of: |
| 495 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 496 | { # An annotation describes a region of reference genome. The value of an |
| 497 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 498 | # info tags. An annotation is not inherently associated with a specific |
| 499 | # sample or individual (though a client could choose to use annotations in |
| 500 | # this way). Example canonical annotation types are `GENE` and |
| 501 | # `VARIANT`. |
| 502 | "info": { # A map of additional read alignment information. This must be of the form |
| 503 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 504 | "a_key": [ |
| 505 | "", |
| 506 | ], |
| 507 | }, |
| 508 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 509 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 510 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 511 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 512 | # set's type. |
| 513 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 514 | # genome, the coding sequence, and/or higher level consequences at the |
| 515 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 516 | # of type `VARIANT`. |
| 517 | "conditions": [ # The set of conditions associated with this variant. |
| 518 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 519 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 520 | "externalIds": [ # The set of external IDs for this condition. |
| 521 | { |
| 522 | "sourceName": "A String", # The name of the source of this data. |
| 523 | "id": "A String", # The id used by the source of this data. |
| 524 | }, |
| 525 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 526 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 527 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 528 | "omimId": "A String", # The OMIM id for this condition. |
| 529 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 530 | "names": [ # A set of names for the condition. |
| 531 | "A String", |
| 532 | ], |
| 533 | }, |
| 534 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 535 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 536 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 537 | # should be provided when the variant is created. |
| 538 | "A String", |
| 539 | ], |
| 540 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 541 | # exist at this location, create a separate variant for each one, as they |
| 542 | # may represent distinct conditions. |
| 543 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 544 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 545 | # significance described at: |
| 546 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 547 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 548 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 549 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 550 | }, |
| 551 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 552 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 553 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 554 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 555 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 556 | # strand. Note that regardless of this field, the start/end position of the |
| 557 | # range always refer to the forward strand. |
| 558 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 559 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 560 | # pattern would be represented as a separate transcript object. This field |
| 561 | # is only set for annotations of type `TRANSCRIPT`. |
| 562 | # reference genome may be transcribed as RNA. |
| 563 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 564 | # the exact ranges of coding sequence, intersect this range with those of the |
| 565 | # exons, if any. If there are any |
| 566 | # exons, the |
| 567 | # codingSequence must start |
| 568 | # and end within them. |
| 569 | # |
| 570 | # Note that in some cases, the reference genome will not exactly match the |
| 571 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 572 | # reference. In these cases, |
| 573 | # exon.frame will not necessarily |
| 574 | # match the expected reference reading frame and coding exon reference bases |
| 575 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 576 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 577 | # 0-based inclusive. Note that this position is relative to the reference |
| 578 | # start, and *not* the containing annotation start. |
| 579 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 580 | # 0-based exclusive. Note that this position is relative to the reference |
| 581 | # start, and *not* the containing annotation start. |
| 582 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 583 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 584 | # this transcript. This field should be unset for genomes where transcript |
| 585 | # splicing does not occur, for example prokaryotes. |
| 586 | # |
| 587 | # Introns are regions of the transcript that are not included in the |
| 588 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 589 | # be deduced; all regions of this transcript that are not exons are introns. |
| 590 | # |
| 591 | # Exonic sequences do not necessarily code for a translational product |
| 592 | # (amino acids). Only the regions of exons bounded by the |
| 593 | # codingSequence correspond |
| 594 | # to coding DNA sequence. |
| 595 | # |
| 596 | # Exons are ordered by start position and may not overlap. |
| 597 | { |
| 598 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 599 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 600 | # **not** the containing annotation start. |
| 601 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 602 | # the offset of the first coding base of the exon within the reading frame |
| 603 | # of the coding DNA sequence, if any. This field is dependent on the |
| 604 | # strandedness of this annotation (see |
| 605 | # Annotation.reverse_strand). |
| 606 | # For forward stranded annotations, this offset is relative to the |
| 607 | # exon.start. For reverse |
| 608 | # strand annotations, this offset is relative to the |
| 609 | # exon.end `- 1`. |
| 610 | # |
| 611 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 612 | # of a transcript, the frame must be populated for all or none of the |
| 613 | # coding exons. |
| 614 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 615 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 616 | # *not* the containing annotation start. |
| 617 | }, |
| 618 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 619 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 620 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 621 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 622 | } |
| 623 | |
| 624 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 625 | Allowed values |
| 626 | 1 - v1 error format |
| 627 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 628 | |
| 629 | Returns: |
| 630 | An object of the form: |
| 631 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 632 | { # An annotation describes a region of reference genome. The value of an |
| 633 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 634 | # info tags. An annotation is not inherently associated with a specific |
| 635 | # sample or individual (though a client could choose to use annotations in |
| 636 | # this way). Example canonical annotation types are `GENE` and |
| 637 | # `VARIANT`. |
| 638 | "info": { # A map of additional read alignment information. This must be of the form |
| 639 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 640 | "a_key": [ |
| 641 | "", |
| 642 | ], |
| 643 | }, |
| 644 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 645 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 646 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 647 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 648 | # set's type. |
| 649 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 650 | # genome, the coding sequence, and/or higher level consequences at the |
| 651 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 652 | # of type `VARIANT`. |
| 653 | "conditions": [ # The set of conditions associated with this variant. |
| 654 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 655 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 656 | "externalIds": [ # The set of external IDs for this condition. |
| 657 | { |
| 658 | "sourceName": "A String", # The name of the source of this data. |
| 659 | "id": "A String", # The id used by the source of this data. |
| 660 | }, |
| 661 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 662 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 663 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 664 | "omimId": "A String", # The OMIM id for this condition. |
| 665 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 666 | "names": [ # A set of names for the condition. |
| 667 | "A String", |
| 668 | ], |
| 669 | }, |
| 670 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 671 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 672 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 673 | # should be provided when the variant is created. |
| 674 | "A String", |
| 675 | ], |
| 676 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 677 | # exist at this location, create a separate variant for each one, as they |
| 678 | # may represent distinct conditions. |
| 679 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 680 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 681 | # significance described at: |
| 682 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 683 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 684 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 685 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 686 | }, |
| 687 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 688 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 689 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 690 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 691 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 692 | # strand. Note that regardless of this field, the start/end position of the |
| 693 | # range always refer to the forward strand. |
| 694 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 695 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 696 | # pattern would be represented as a separate transcript object. This field |
| 697 | # is only set for annotations of type `TRANSCRIPT`. |
| 698 | # reference genome may be transcribed as RNA. |
| 699 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 700 | # the exact ranges of coding sequence, intersect this range with those of the |
| 701 | # exons, if any. If there are any |
| 702 | # exons, the |
| 703 | # codingSequence must start |
| 704 | # and end within them. |
| 705 | # |
| 706 | # Note that in some cases, the reference genome will not exactly match the |
| 707 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 708 | # reference. In these cases, |
| 709 | # exon.frame will not necessarily |
| 710 | # match the expected reference reading frame and coding exon reference bases |
| 711 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 712 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 713 | # 0-based inclusive. Note that this position is relative to the reference |
| 714 | # start, and *not* the containing annotation start. |
| 715 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 716 | # 0-based exclusive. Note that this position is relative to the reference |
| 717 | # start, and *not* the containing annotation start. |
| 718 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 719 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 720 | # this transcript. This field should be unset for genomes where transcript |
| 721 | # splicing does not occur, for example prokaryotes. |
| 722 | # |
| 723 | # Introns are regions of the transcript that are not included in the |
| 724 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 725 | # be deduced; all regions of this transcript that are not exons are introns. |
| 726 | # |
| 727 | # Exonic sequences do not necessarily code for a translational product |
| 728 | # (amino acids). Only the regions of exons bounded by the |
| 729 | # codingSequence correspond |
| 730 | # to coding DNA sequence. |
| 731 | # |
| 732 | # Exons are ordered by start position and may not overlap. |
| 733 | { |
| 734 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 735 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 736 | # **not** the containing annotation start. |
| 737 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 738 | # the offset of the first coding base of the exon within the reading frame |
| 739 | # of the coding DNA sequence, if any. This field is dependent on the |
| 740 | # strandedness of this annotation (see |
| 741 | # Annotation.reverse_strand). |
| 742 | # For forward stranded annotations, this offset is relative to the |
| 743 | # exon.start. For reverse |
| 744 | # strand annotations, this offset is relative to the |
| 745 | # exon.end `- 1`. |
| 746 | # |
| 747 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 748 | # of a transcript, the frame must be populated for all or none of the |
| 749 | # coding exons. |
| 750 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 751 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 752 | # *not* the containing annotation start. |
| 753 | }, |
| 754 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 755 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 756 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 757 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 758 | }</pre> |
| 759 | </div> |
| 760 | |
| 761 | <div class="method"> |
| 762 | <code class="details" id="delete">delete(annotationId, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 763 | <pre>Deletes an annotation. Caller must have WRITE permission for |
| 764 | the associated annotation set. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 765 | |
| 766 | Args: |
| 767 | annotationId: string, The ID of the annotation to be deleted. (required) |
| 768 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 769 | Allowed values |
| 770 | 1 - v1 error format |
| 771 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 772 | |
| 773 | Returns: |
| 774 | An object of the form: |
| 775 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 776 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 777 | # empty messages in your APIs. A typical example is to use it as the request |
| 778 | # or the response type of an API method. For instance: |
| 779 | # |
| 780 | # service Foo { |
| 781 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 782 | # } |
| 783 | # |
| 784 | # The JSON representation for `Empty` is empty JSON object `{}`. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 785 | }</pre> |
| 786 | </div> |
| 787 | |
| 788 | <div class="method"> |
| 789 | <code class="details" id="get">get(annotationId, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 790 | <pre>Gets an annotation. Caller must have READ permission |
| 791 | for the associated annotation set. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 792 | |
| 793 | Args: |
| 794 | annotationId: string, The ID of the annotation to be retrieved. (required) |
| 795 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 796 | Allowed values |
| 797 | 1 - v1 error format |
| 798 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 799 | |
| 800 | Returns: |
| 801 | An object of the form: |
| 802 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 803 | { # An annotation describes a region of reference genome. The value of an |
| 804 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 805 | # info tags. An annotation is not inherently associated with a specific |
| 806 | # sample or individual (though a client could choose to use annotations in |
| 807 | # this way). Example canonical annotation types are `GENE` and |
| 808 | # `VARIANT`. |
| 809 | "info": { # A map of additional read alignment information. This must be of the form |
| 810 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 811 | "a_key": [ |
| 812 | "", |
| 813 | ], |
| 814 | }, |
| 815 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 816 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 817 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 818 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 819 | # set's type. |
| 820 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 821 | # genome, the coding sequence, and/or higher level consequences at the |
| 822 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 823 | # of type `VARIANT`. |
| 824 | "conditions": [ # The set of conditions associated with this variant. |
| 825 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 826 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 827 | "externalIds": [ # The set of external IDs for this condition. |
| 828 | { |
| 829 | "sourceName": "A String", # The name of the source of this data. |
| 830 | "id": "A String", # The id used by the source of this data. |
| 831 | }, |
| 832 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 833 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 834 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 835 | "omimId": "A String", # The OMIM id for this condition. |
| 836 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 837 | "names": [ # A set of names for the condition. |
| 838 | "A String", |
| 839 | ], |
| 840 | }, |
| 841 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 842 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 843 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 844 | # should be provided when the variant is created. |
| 845 | "A String", |
| 846 | ], |
| 847 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 848 | # exist at this location, create a separate variant for each one, as they |
| 849 | # may represent distinct conditions. |
| 850 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 851 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 852 | # significance described at: |
| 853 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 854 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 855 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 856 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 857 | }, |
| 858 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 859 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 860 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 861 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 862 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 863 | # strand. Note that regardless of this field, the start/end position of the |
| 864 | # range always refer to the forward strand. |
| 865 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 866 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 867 | # pattern would be represented as a separate transcript object. This field |
| 868 | # is only set for annotations of type `TRANSCRIPT`. |
| 869 | # reference genome may be transcribed as RNA. |
| 870 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 871 | # the exact ranges of coding sequence, intersect this range with those of the |
| 872 | # exons, if any. If there are any |
| 873 | # exons, the |
| 874 | # codingSequence must start |
| 875 | # and end within them. |
| 876 | # |
| 877 | # Note that in some cases, the reference genome will not exactly match the |
| 878 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 879 | # reference. In these cases, |
| 880 | # exon.frame will not necessarily |
| 881 | # match the expected reference reading frame and coding exon reference bases |
| 882 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 883 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 884 | # 0-based inclusive. Note that this position is relative to the reference |
| 885 | # start, and *not* the containing annotation start. |
| 886 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 887 | # 0-based exclusive. Note that this position is relative to the reference |
| 888 | # start, and *not* the containing annotation start. |
| 889 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 890 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 891 | # this transcript. This field should be unset for genomes where transcript |
| 892 | # splicing does not occur, for example prokaryotes. |
| 893 | # |
| 894 | # Introns are regions of the transcript that are not included in the |
| 895 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 896 | # be deduced; all regions of this transcript that are not exons are introns. |
| 897 | # |
| 898 | # Exonic sequences do not necessarily code for a translational product |
| 899 | # (amino acids). Only the regions of exons bounded by the |
| 900 | # codingSequence correspond |
| 901 | # to coding DNA sequence. |
| 902 | # |
| 903 | # Exons are ordered by start position and may not overlap. |
| 904 | { |
| 905 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 906 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 907 | # **not** the containing annotation start. |
| 908 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 909 | # the offset of the first coding base of the exon within the reading frame |
| 910 | # of the coding DNA sequence, if any. This field is dependent on the |
| 911 | # strandedness of this annotation (see |
| 912 | # Annotation.reverse_strand). |
| 913 | # For forward stranded annotations, this offset is relative to the |
| 914 | # exon.start. For reverse |
| 915 | # strand annotations, this offset is relative to the |
| 916 | # exon.end `- 1`. |
| 917 | # |
| 918 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 919 | # of a transcript, the frame must be populated for all or none of the |
| 920 | # coding exons. |
| 921 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 922 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 923 | # *not* the containing annotation start. |
| 924 | }, |
| 925 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 926 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 927 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 928 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 929 | }</pre> |
| 930 | </div> |
| 931 | |
| 932 | <div class="method"> |
| 933 | <code class="details" id="search">search(body, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 934 | <pre>Searches for annotations that match the given criteria. Results are |
| 935 | ordered by genomic coordinate (by reference sequence, then position). |
| 936 | Annotations with equivalent genomic coordinates are returned in an |
| 937 | unspecified order. This order is consistent, such that two queries for the |
| 938 | same content (regardless of page size) yield annotations in the same order |
| 939 | across their respective streams of paginated responses. Caller must have |
| 940 | READ permission for the queried annotation sets. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 941 | |
| 942 | Args: |
| 943 | body: object, The request body. (required) |
| 944 | The object takes the form of: |
| 945 | |
| 946 | { |
| 947 | "referenceId": "A String", # The ID of the reference to query. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 948 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. If |
| 949 | # referenceId or |
| 950 | # referenceName |
| 951 | # must be specified, Defaults to the length of the reference. |
| 952 | "pageSize": 42, # The maximum number of results to return in a single page. If unspecified, |
| 953 | # defaults to 256. The maximum value is 2048. |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 954 | "pageToken": "A String", # The continuation token, which is used to page through large result sets. |
| 955 | # To get the next page of results, set this parameter to the value of |
| 956 | # `nextPageToken` from the previous response. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 957 | "annotationSetIds": [ # Required. The annotation sets to search within. The caller must have |
| 958 | # `READ` access to these annotation sets. |
| 959 | # All queried annotation sets must have the same type. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 960 | "A String", |
| 961 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 962 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. If |
| 963 | # specified, |
| 964 | # referenceId or |
| 965 | # referenceName |
| 966 | # must be specified. Defaults to 0. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 967 | "referenceName": "A String", # The name of the reference to query, within the reference set associated |
| 968 | # with this query. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 969 | } |
| 970 | |
| 971 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 972 | Allowed values |
| 973 | 1 - v1 error format |
| 974 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 975 | |
| 976 | Returns: |
| 977 | An object of the form: |
| 978 | |
| 979 | { |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 980 | "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. |
| 981 | # Provide this value in a subsequent request to return the next page of |
| 982 | # results. This field will be empty if there aren't any additional results. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 983 | "annotations": [ # The matching annotations. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 984 | { # An annotation describes a region of reference genome. The value of an |
| 985 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 986 | # info tags. An annotation is not inherently associated with a specific |
| 987 | # sample or individual (though a client could choose to use annotations in |
| 988 | # this way). Example canonical annotation types are `GENE` and |
| 989 | # `VARIANT`. |
| 990 | "info": { # A map of additional read alignment information. This must be of the form |
| 991 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 992 | "a_key": [ |
| 993 | "", |
| 994 | ], |
| 995 | }, |
| 996 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 997 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 998 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 999 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 1000 | # set's type. |
| 1001 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 1002 | # genome, the coding sequence, and/or higher level consequences at the |
| 1003 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 1004 | # of type `VARIANT`. |
| 1005 | "conditions": [ # The set of conditions associated with this variant. |
| 1006 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1007 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1008 | "externalIds": [ # The set of external IDs for this condition. |
| 1009 | { |
| 1010 | "sourceName": "A String", # The name of the source of this data. |
| 1011 | "id": "A String", # The id used by the source of this data. |
| 1012 | }, |
| 1013 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1014 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 1015 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1016 | "omimId": "A String", # The OMIM id for this condition. |
| 1017 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1018 | "names": [ # A set of names for the condition. |
| 1019 | "A String", |
| 1020 | ], |
| 1021 | }, |
| 1022 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1023 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 1024 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 1025 | # should be provided when the variant is created. |
| 1026 | "A String", |
| 1027 | ], |
| 1028 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 1029 | # exist at this location, create a separate variant for each one, as they |
| 1030 | # may represent distinct conditions. |
| 1031 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 1032 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 1033 | # significance described at: |
| 1034 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 1035 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 1036 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 1037 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1038 | }, |
| 1039 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 1040 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1041 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 1042 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 1043 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 1044 | # strand. Note that regardless of this field, the start/end position of the |
| 1045 | # range always refer to the forward strand. |
| 1046 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 1047 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 1048 | # pattern would be represented as a separate transcript object. This field |
| 1049 | # is only set for annotations of type `TRANSCRIPT`. |
| 1050 | # reference genome may be transcribed as RNA. |
| 1051 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 1052 | # the exact ranges of coding sequence, intersect this range with those of the |
| 1053 | # exons, if any. If there are any |
| 1054 | # exons, the |
| 1055 | # codingSequence must start |
| 1056 | # and end within them. |
| 1057 | # |
| 1058 | # Note that in some cases, the reference genome will not exactly match the |
| 1059 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 1060 | # reference. In these cases, |
| 1061 | # exon.frame will not necessarily |
| 1062 | # match the expected reference reading frame and coding exon reference bases |
| 1063 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 1064 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 1065 | # 0-based inclusive. Note that this position is relative to the reference |
| 1066 | # start, and *not* the containing annotation start. |
| 1067 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 1068 | # 0-based exclusive. Note that this position is relative to the reference |
| 1069 | # start, and *not* the containing annotation start. |
| 1070 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1071 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 1072 | # this transcript. This field should be unset for genomes where transcript |
| 1073 | # splicing does not occur, for example prokaryotes. |
| 1074 | # |
| 1075 | # Introns are regions of the transcript that are not included in the |
| 1076 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 1077 | # be deduced; all regions of this transcript that are not exons are introns. |
| 1078 | # |
| 1079 | # Exonic sequences do not necessarily code for a translational product |
| 1080 | # (amino acids). Only the regions of exons bounded by the |
| 1081 | # codingSequence correspond |
| 1082 | # to coding DNA sequence. |
| 1083 | # |
| 1084 | # Exons are ordered by start position and may not overlap. |
| 1085 | { |
| 1086 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 1087 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 1088 | # **not** the containing annotation start. |
| 1089 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 1090 | # the offset of the first coding base of the exon within the reading frame |
| 1091 | # of the coding DNA sequence, if any. This field is dependent on the |
| 1092 | # strandedness of this annotation (see |
| 1093 | # Annotation.reverse_strand). |
| 1094 | # For forward stranded annotations, this offset is relative to the |
| 1095 | # exon.start. For reverse |
| 1096 | # strand annotations, this offset is relative to the |
| 1097 | # exon.end `- 1`. |
| 1098 | # |
| 1099 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 1100 | # of a transcript, the frame must be populated for all or none of the |
| 1101 | # coding exons. |
| 1102 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 1103 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 1104 | # *not* the containing annotation start. |
| 1105 | }, |
| 1106 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1107 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1108 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1109 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 1110 | }, |
| 1111 | ], |
| 1112 | }</pre> |
| 1113 | </div> |
| 1114 | |
| 1115 | <div class="method"> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1116 | <code class="details" id="search_next">search_next(previous_request, previous_response)</code> |
| 1117 | <pre>Retrieves the next page of results. |
| 1118 | |
| 1119 | Args: |
| 1120 | previous_request: The request for the previous page. (required) |
| 1121 | previous_response: The response from the request for the previous page. (required) |
| 1122 | |
| 1123 | Returns: |
| 1124 | A request object that you can call 'execute()' on to request the next |
| 1125 | page. Returns None if there are no more items in the collection. |
| 1126 | </pre> |
| 1127 | </div> |
| 1128 | |
| 1129 | <div class="method"> |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1130 | <code class="details" id="update">update(annotationId, body, updateMask=None, x__xgafv=None)</code> |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1131 | <pre>Updates an annotation. Caller must have |
| 1132 | WRITE permission for the associated dataset. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1133 | |
| 1134 | Args: |
| 1135 | annotationId: string, The ID of the annotation to be updated. (required) |
| 1136 | body: object, The request body. (required) |
| 1137 | The object takes the form of: |
| 1138 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1139 | { # An annotation describes a region of reference genome. The value of an |
| 1140 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 1141 | # info tags. An annotation is not inherently associated with a specific |
| 1142 | # sample or individual (though a client could choose to use annotations in |
| 1143 | # this way). Example canonical annotation types are `GENE` and |
| 1144 | # `VARIANT`. |
| 1145 | "info": { # A map of additional read alignment information. This must be of the form |
| 1146 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1147 | "a_key": [ |
| 1148 | "", |
| 1149 | ], |
| 1150 | }, |
| 1151 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 1152 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 1153 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1154 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 1155 | # set's type. |
| 1156 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 1157 | # genome, the coding sequence, and/or higher level consequences at the |
| 1158 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 1159 | # of type `VARIANT`. |
| 1160 | "conditions": [ # The set of conditions associated with this variant. |
| 1161 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1162 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1163 | "externalIds": [ # The set of external IDs for this condition. |
| 1164 | { |
| 1165 | "sourceName": "A String", # The name of the source of this data. |
| 1166 | "id": "A String", # The id used by the source of this data. |
| 1167 | }, |
| 1168 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1169 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 1170 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1171 | "omimId": "A String", # The OMIM id for this condition. |
| 1172 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1173 | "names": [ # A set of names for the condition. |
| 1174 | "A String", |
| 1175 | ], |
| 1176 | }, |
| 1177 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1178 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 1179 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 1180 | # should be provided when the variant is created. |
| 1181 | "A String", |
| 1182 | ], |
| 1183 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 1184 | # exist at this location, create a separate variant for each one, as they |
| 1185 | # may represent distinct conditions. |
| 1186 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 1187 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 1188 | # significance described at: |
| 1189 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 1190 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 1191 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 1192 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1193 | }, |
| 1194 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 1195 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1196 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 1197 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 1198 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 1199 | # strand. Note that regardless of this field, the start/end position of the |
| 1200 | # range always refer to the forward strand. |
| 1201 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 1202 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 1203 | # pattern would be represented as a separate transcript object. This field |
| 1204 | # is only set for annotations of type `TRANSCRIPT`. |
| 1205 | # reference genome may be transcribed as RNA. |
| 1206 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 1207 | # the exact ranges of coding sequence, intersect this range with those of the |
| 1208 | # exons, if any. If there are any |
| 1209 | # exons, the |
| 1210 | # codingSequence must start |
| 1211 | # and end within them. |
| 1212 | # |
| 1213 | # Note that in some cases, the reference genome will not exactly match the |
| 1214 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 1215 | # reference. In these cases, |
| 1216 | # exon.frame will not necessarily |
| 1217 | # match the expected reference reading frame and coding exon reference bases |
| 1218 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 1219 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 1220 | # 0-based inclusive. Note that this position is relative to the reference |
| 1221 | # start, and *not* the containing annotation start. |
| 1222 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 1223 | # 0-based exclusive. Note that this position is relative to the reference |
| 1224 | # start, and *not* the containing annotation start. |
| 1225 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1226 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 1227 | # this transcript. This field should be unset for genomes where transcript |
| 1228 | # splicing does not occur, for example prokaryotes. |
| 1229 | # |
| 1230 | # Introns are regions of the transcript that are not included in the |
| 1231 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 1232 | # be deduced; all regions of this transcript that are not exons are introns. |
| 1233 | # |
| 1234 | # Exonic sequences do not necessarily code for a translational product |
| 1235 | # (amino acids). Only the regions of exons bounded by the |
| 1236 | # codingSequence correspond |
| 1237 | # to coding DNA sequence. |
| 1238 | # |
| 1239 | # Exons are ordered by start position and may not overlap. |
| 1240 | { |
| 1241 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 1242 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 1243 | # **not** the containing annotation start. |
| 1244 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 1245 | # the offset of the first coding base of the exon within the reading frame |
| 1246 | # of the coding DNA sequence, if any. This field is dependent on the |
| 1247 | # strandedness of this annotation (see |
| 1248 | # Annotation.reverse_strand). |
| 1249 | # For forward stranded annotations, this offset is relative to the |
| 1250 | # exon.start. For reverse |
| 1251 | # strand annotations, this offset is relative to the |
| 1252 | # exon.end `- 1`. |
| 1253 | # |
| 1254 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 1255 | # of a transcript, the frame must be populated for all or none of the |
| 1256 | # coding exons. |
| 1257 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 1258 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 1259 | # *not* the containing annotation start. |
| 1260 | }, |
| 1261 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1262 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1263 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1264 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 1265 | } |
| 1266 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1267 | updateMask: string, An optional mask specifying which fields to update. Mutable fields are |
| 1268 | name, |
| 1269 | variant, |
| 1270 | transcript, and |
| 1271 | info. If unspecified, all mutable |
| 1272 | fields will be updated. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1273 | x__xgafv: string, V1 error format. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1274 | Allowed values |
| 1275 | 1 - v1 error format |
| 1276 | 2 - v2 error format |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1277 | |
| 1278 | Returns: |
| 1279 | An object of the form: |
| 1280 | |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1281 | { # An annotation describes a region of reference genome. The value of an |
| 1282 | # annotation may be one of several canonical types, supplemented by arbitrary |
| 1283 | # info tags. An annotation is not inherently associated with a specific |
| 1284 | # sample or individual (though a client could choose to use annotations in |
| 1285 | # this way). Example canonical annotation types are `GENE` and |
| 1286 | # `VARIANT`. |
| 1287 | "info": { # A map of additional read alignment information. This must be of the form |
| 1288 | # map<string, string[]> (string key mapping to a list of string values). |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1289 | "a_key": [ |
| 1290 | "", |
| 1291 | ], |
| 1292 | }, |
| 1293 | "referenceId": "A String", # The ID of the Google Genomics reference associated with this range. |
| 1294 | "end": "A String", # The end position of the range on the reference, 0-based exclusive. |
| 1295 | "name": "A String", # The display name of this annotation. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1296 | "type": "A String", # The data type for this annotation. Must match the containing annotation |
| 1297 | # set's type. |
| 1298 | "variant": { # A variant annotation, which describes the effect of a variant on the |
| 1299 | # genome, the coding sequence, and/or higher level consequences at the |
| 1300 | # organism level e.g. pathogenicity. This field is only set for annotations |
| 1301 | # of type `VARIANT`. |
| 1302 | "conditions": [ # The set of conditions associated with this variant. |
| 1303 | # A condition describes the way a variant influences human health. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1304 | { |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1305 | "externalIds": [ # The set of external IDs for this condition. |
| 1306 | { |
| 1307 | "sourceName": "A String", # The name of the source of this data. |
| 1308 | "id": "A String", # The id used by the source of this data. |
| 1309 | }, |
| 1310 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1311 | "conceptId": "A String", # The MedGen concept id associated with this gene. |
| 1312 | # Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/ |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1313 | "omimId": "A String", # The OMIM id for this condition. |
| 1314 | # Search for these IDs at http://omim.org/ |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1315 | "names": [ # A set of names for the condition. |
| 1316 | "A String", |
| 1317 | ], |
| 1318 | }, |
| 1319 | ], |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1320 | "effect": "A String", # Effect of the variant on the coding sequence. |
| 1321 | "transcriptIds": [ # Google annotation IDs of the transcripts affected by this variant. These |
| 1322 | # should be provided when the variant is created. |
| 1323 | "A String", |
| 1324 | ], |
| 1325 | "alternateBases": "A String", # The alternate allele for this variant. If multiple alternate alleles |
| 1326 | # exist at this location, create a separate variant for each one, as they |
| 1327 | # may represent distinct conditions. |
| 1328 | "clinicalSignificance": "A String", # Describes the clinical significance of a variant. |
| 1329 | # It is adapted from the ClinVar controlled vocabulary for clinical |
| 1330 | # significance described at: |
| 1331 | # http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/ |
| 1332 | "type": "A String", # Type has been adapted from ClinVar's list of variant types. |
| 1333 | "geneId": "A String", # Google annotation ID of the gene affected by this variant. This should |
| 1334 | # be provided when the variant is created. |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1335 | }, |
| 1336 | "start": "A String", # The start position of the range on the reference, 0-based inclusive. |
| 1337 | "annotationSetId": "A String", # The annotation set to which this annotation belongs. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1338 | "referenceName": "A String", # The display name corresponding to the reference specified by |
| 1339 | # `referenceId`, for example `chr1`, `1`, or `chrX`. |
| 1340 | "reverseStrand": True or False, # Whether this range refers to the reverse strand, as opposed to the forward |
| 1341 | # strand. Note that regardless of this field, the start/end position of the |
| 1342 | # range always refer to the forward strand. |
| 1343 | "transcript": { # A transcript represents the assertion that a particular region of the # A transcript value represents the assertion that a particular region of |
| 1344 | # the reference genome may be transcribed as RNA. An alternative splicing |
| 1345 | # pattern would be represented as a separate transcript object. This field |
| 1346 | # is only set for annotations of type `TRANSCRIPT`. |
| 1347 | # reference genome may be transcribed as RNA. |
| 1348 | "codingSequence": { # The range of the coding sequence for this transcript, if any. To determine |
| 1349 | # the exact ranges of coding sequence, intersect this range with those of the |
| 1350 | # exons, if any. If there are any |
| 1351 | # exons, the |
| 1352 | # codingSequence must start |
| 1353 | # and end within them. |
| 1354 | # |
| 1355 | # Note that in some cases, the reference genome will not exactly match the |
| 1356 | # observed mRNA transcript e.g. due to variance in the source genome from |
| 1357 | # reference. In these cases, |
| 1358 | # exon.frame will not necessarily |
| 1359 | # match the expected reference reading frame and coding exon reference bases |
| 1360 | # cannot necessarily be concatenated to produce the original transcript mRNA. |
| 1361 | "start": "A String", # The start of the coding sequence on this annotation's reference sequence, |
| 1362 | # 0-based inclusive. Note that this position is relative to the reference |
| 1363 | # start, and *not* the containing annotation start. |
| 1364 | "end": "A String", # The end of the coding sequence on this annotation's reference sequence, |
| 1365 | # 0-based exclusive. Note that this position is relative to the reference |
| 1366 | # start, and *not* the containing annotation start. |
| 1367 | }, |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1368 | "exons": [ # The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose |
| 1369 | # this transcript. This field should be unset for genomes where transcript |
| 1370 | # splicing does not occur, for example prokaryotes. |
| 1371 | # |
| 1372 | # Introns are regions of the transcript that are not included in the |
| 1373 | # spliced RNA product. Though not explicitly modeled here, intron ranges can |
| 1374 | # be deduced; all regions of this transcript that are not exons are introns. |
| 1375 | # |
| 1376 | # Exonic sequences do not necessarily code for a translational product |
| 1377 | # (amino acids). Only the regions of exons bounded by the |
| 1378 | # codingSequence correspond |
| 1379 | # to coding DNA sequence. |
| 1380 | # |
| 1381 | # Exons are ordered by start position and may not overlap. |
| 1382 | { |
| 1383 | "start": "A String", # The start position of the exon on this annotation's reference sequence, |
| 1384 | # 0-based inclusive. Note that this is relative to the reference start, and |
| 1385 | # **not** the containing annotation start. |
| 1386 | "frame": 42, # The frame of this exon. Contains a value of 0, 1, or 2, which indicates |
| 1387 | # the offset of the first coding base of the exon within the reading frame |
| 1388 | # of the coding DNA sequence, if any. This field is dependent on the |
| 1389 | # strandedness of this annotation (see |
| 1390 | # Annotation.reverse_strand). |
| 1391 | # For forward stranded annotations, this offset is relative to the |
| 1392 | # exon.start. For reverse |
| 1393 | # strand annotations, this offset is relative to the |
| 1394 | # exon.end `- 1`. |
| 1395 | # |
| 1396 | # Unset if this exon does not intersect the coding sequence. Upon creation |
| 1397 | # of a transcript, the frame must be populated for all or none of the |
| 1398 | # coding exons. |
| 1399 | "end": "A String", # The end position of the exon on this annotation's reference sequence, |
| 1400 | # 0-based exclusive. Note that this is relative to the reference start, and |
| 1401 | # *not* the containing annotation start. |
| 1402 | }, |
| 1403 | ], |
Sai Cheemalapati | e833b79 | 2017-03-24 15:06:46 -0700 | [diff] [blame^] | 1404 | "geneId": "A String", # The annotation ID of the gene from which this transcript is transcribed. |
Sai Cheemalapati | c30d2b5 | 2017-03-13 12:12:03 -0400 | [diff] [blame] | 1405 | }, |
Jon Wayne Parrott | 0a471d3 | 2016-05-19 10:54:38 -0700 | [diff] [blame] | 1406 | "id": "A String", # The server-generated annotation ID, unique across all annotations. |
| 1407 | }</pre> |
| 1408 | </div> |
| 1409 | |
| 1410 | </body></html> |