Debian Codegraph @

third_party/googleapis/google/genomics/v1/annotations.proto

raw
1 // Copyright 2016 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 syntax = "proto3";
16
17 package google.genomics.v1;
18
19 import "google/api/annotations.proto";
20 import "google/protobuf/empty.proto";
21 import "google/protobuf/field_mask.proto";
22 import "google/protobuf/struct.proto";
23 import "google/protobuf/wrappers.proto";
24 import "google/rpc/status.proto";
25
26 option cc_enable_arenas = true;
27 option go_package = "google.golang.org/genproto/googleapis/genomics/v1;genomics";
28 option java_multiple_files = true;
29 option java_outer_classname = "AnnotationsProto";
30 option java_package = "com.google.genomics.v1";
31
32
33 // This service provides storage and positional retrieval of genomic
34 // reference annotations, including variant annotations.
35 service AnnotationServiceV1 {
36 // Creates a new annotation set. Caller must have WRITE permission for the
37 // associated dataset.
38 //
39 // The following fields are required:
40 //
41 // * [datasetId][google.genomics.v1.AnnotationSet.dataset_id]
42 // * [referenceSetId][google.genomics.v1.AnnotationSet.reference_set_id]
43 //
44 // All other fields may be optionally specified, unless documented as being
45 // server-generated (for example, the `id` field).
46 rpc CreateAnnotationSet(CreateAnnotationSetRequest) returns (AnnotationSet) {
47 option (google.api.http) = { post: "/v1/annotationsets" body: "annotation_set" };
48 }
49
50 // Gets an annotation set. Caller must have READ permission for
51 // the associated dataset.
52 rpc GetAnnotationSet(GetAnnotationSetRequest) returns (AnnotationSet) {
53 option (google.api.http) = { get: "/v1/annotationsets/{annotation_set_id}" };
54 }
55
56 // Updates an annotation set. The update must respect all mutability
57 // restrictions and other invariants described on the annotation set resource.
58 // Caller must have WRITE permission for the associated dataset.
59 rpc UpdateAnnotationSet(UpdateAnnotationSetRequest) returns (AnnotationSet) {
60 option (google.api.http) = { put: "/v1/annotationsets/{annotation_set_id}" body: "annotation_set" };
61 }
62
63 // Deletes an annotation set. Caller must have WRITE permission
64 // for the associated annotation set.
65 rpc DeleteAnnotationSet(DeleteAnnotationSetRequest) returns (google.protobuf.Empty) {
66 option (google.api.http) = { delete: "/v1/annotationsets/{annotation_set_id}" };
67 }
68
69 // Searches for annotation sets that match the given criteria. Annotation sets
70 // are returned in an unspecified order. This order is consistent, such that
71 // two queries for the same content (regardless of page size) yield annotation
72 // sets in the same order across their respective streams of paginated
73 // responses. Caller must have READ permission for the queried datasets.
74 rpc SearchAnnotationSets(SearchAnnotationSetsRequest) returns (SearchAnnotationSetsResponse) {
75 option (google.api.http) = { post: "/v1/annotationsets/search" body: "*" };
76 }
77
78 // Creates a new annotation. Caller must have WRITE permission
79 // for the associated annotation set.
80 //
81 // The following fields are required:
82 //
83 // * [annotationSetId][google.genomics.v1.Annotation.annotation_set_id]
84 // * [referenceName][google.genomics.v1.Annotation.reference_name] or
85 // [referenceId][google.genomics.v1.Annotation.reference_id]
86 //
87 // ### Transcripts
88 //
89 // For annotations of type TRANSCRIPT, the following fields of
90 // [transcript][google.genomics.v1.Annotation.transcript] must be provided:
91 //
92 // * [exons.start][google.genomics.v1.Transcript.Exon.start]
93 // * [exons.end][google.genomics.v1.Transcript.Exon.end]
94 //
95 // All other fields may be optionally specified, unless documented as being
96 // server-generated (for example, the `id` field). The annotated
97 // range must be no longer than 100Mbp (mega base pairs). See the
98 // [Annotation resource][google.genomics.v1.Annotation]
99 // for additional restrictions on each field.
100 rpc CreateAnnotation(CreateAnnotationRequest) returns (Annotation) {
101 option (google.api.http) = { post: "/v1/annotations" body: "annotation" };
102 }
103
104 // Creates one or more new annotations atomically. All annotations must
105 // belong to the same annotation set. Caller must have WRITE
106 // permission for this annotation set. For optimal performance, batch
107 // positionally adjacent annotations together.
108 //
109 // If the request has a systemic issue, such as an attempt to write to
110 // an inaccessible annotation set, the entire RPC will fail accordingly. For
111 // lesser data issues, when possible an error will be isolated to the
112 // corresponding batch entry in the response; the remaining well formed
113 // annotations will be created normally.
114 //
115 // For details on the requirements for each individual annotation resource,
116 // see
117 // [CreateAnnotation][google.genomics.v1.AnnotationServiceV1.CreateAnnotation].
118 rpc BatchCreateAnnotations(BatchCreateAnnotationsRequest) returns (BatchCreateAnnotationsResponse) {
119 option (google.api.http) = { post: "/v1/annotations:batchCreate" body: "*" };
120 }
121
122 // Gets an annotation. Caller must have READ permission
123 // for the associated annotation set.
124 rpc GetAnnotation(GetAnnotationRequest) returns (Annotation) {
125 option (google.api.http) = { get: "/v1/annotations/{annotation_id}" };
126 }
127
128 // Updates an annotation. Caller must have
129 // WRITE permission for the associated dataset.
130 rpc UpdateAnnotation(UpdateAnnotationRequest) returns (Annotation) {
131 option (google.api.http) = { put: "/v1/annotations/{annotation_id}" body: "annotation" };
132 }
133
134 // Deletes an annotation. Caller must have WRITE permission for
135 // the associated annotation set.
136 rpc DeleteAnnotation(DeleteAnnotationRequest) returns (google.protobuf.Empty) {
137 option (google.api.http) = { delete: "/v1/annotations/{annotation_id}" };
138 }
139
140 // Searches for annotations that match the given criteria. Results are
141 // ordered by genomic coordinate (by reference sequence, then position).
142 // Annotations with equivalent genomic coordinates are returned in an
143 // unspecified order. This order is consistent, such that two queries for the
144 // same content (regardless of page size) yield annotations in the same order
145 // across their respective streams of paginated responses. Caller must have
146 // READ permission for the queried annotation sets.
147 rpc SearchAnnotations(SearchAnnotationsRequest) returns (SearchAnnotationsResponse) {
148 option (google.api.http) = { post: "/v1/annotations/search" body: "*" };
149 }
150 }
151
152 // An annotation set is a logical grouping of annotations that share consistent
153 // type information and provenance. Examples of annotation sets include 'all
154 // genes from refseq', and 'all variant annotations from ClinVar'.
155 message AnnotationSet {
156 // The server-generated annotation set ID, unique across all annotation sets.
157 string id = 1;
158
159 // The dataset to which this annotation set belongs.
160 string dataset_id = 2;
161
162 // The ID of the reference set that defines the coordinate space for this
163 // set's annotations.
164 string reference_set_id = 3;
165
166 // The display name for this annotation set.
167 string name = 4;
168
169 // The source URI describing the file from which this annotation set was
170 // generated, if any.
171 string source_uri = 5;
172
173 // The type of annotations contained within this set.
174 AnnotationType type = 6;
175
176 // A map of additional read alignment information. This must be of the form
177 // map<string, string[]> (string key mapping to a list of string values).
178 map<string, google.protobuf.ListValue> info = 17;
179 }
180
181 // An annotation describes a region of reference genome. The value of an
182 // annotation may be one of several canonical types, supplemented by arbitrary
183 // info tags. An annotation is not inherently associated with a specific
184 // sample or individual (though a client could choose to use annotations in
185 // this way). Example canonical annotation types are `GENE` and
186 // `VARIANT`.
187 message Annotation {
188 // The server-generated annotation ID, unique across all annotations.
189 string id = 1;
190
191 // The annotation set to which this annotation belongs.
192 string annotation_set_id = 2;
193
194 // The display name of this annotation.
195 string name = 3;
196
197 // The ID of the Google Genomics reference associated with this range.
198 string reference_id = 4;
199
200 // The display name corresponding to the reference specified by
201 // `referenceId`, for example `chr1`, `1`, or `chrX`.
202 string reference_name = 5;
203
204 // The start position of the range on the reference, 0-based inclusive.
205 int64 start = 6;
206
207 // The end position of the range on the reference, 0-based exclusive.
208 int64 end = 7;
209
210 // Whether this range refers to the reverse strand, as opposed to the forward
211 // strand. Note that regardless of this field, the start/end position of the
212 // range always refer to the forward strand.
213 bool reverse_strand = 8;
214
215 // The data type for this annotation. Must match the containing annotation
216 // set's type.
217 AnnotationType type = 9;
218
219 oneof value {
220 // A variant annotation, which describes the effect of a variant on the
221 // genome, the coding sequence, and/or higher level consequences at the
222 // organism level e.g. pathogenicity. This field is only set for annotations
223 // of type `VARIANT`.
224 VariantAnnotation variant = 10;
225
226 // A transcript value represents the assertion that a particular region of
227 // the reference genome may be transcribed as RNA. An alternative splicing
228 // pattern would be represented as a separate transcript object. This field
229 // is only set for annotations of type `TRANSCRIPT`.
230 Transcript transcript = 11;
231 }
232
233 // A map of additional read alignment information. This must be of the form
234 // map<string, string[]> (string key mapping to a list of string values).
235 map<string, google.protobuf.ListValue> info = 12;
236 }
237
238 message VariantAnnotation {
239 message ClinicalCondition {
240 // A set of names for the condition.
241 repeated string names = 1;
242
243 // The set of external IDs for this condition.
244 repeated ExternalId external_ids = 2;
245
246 // The MedGen concept id associated with this gene.
247 // Search for these IDs at http://www.ncbi.nlm.nih.gov/medgen/
248 string concept_id = 3;
249
250 // The OMIM id for this condition.
251 // Search for these IDs at http://omim.org/
252 string omim_id = 4;
253 }
254
255 enum Type {
256 TYPE_UNSPECIFIED = 0;
257
258 // `TYPE_OTHER` should be used when no other Type will suffice.
259 // Further explanation of the variant type may be included in the
260 // [info][google.genomics.v1.Annotation.info] field.
261 TYPE_OTHER = 1;
262
263 // `INSERTION` indicates an insertion.
264 INSERTION = 2;
265
266 // `DELETION` indicates a deletion.
267 DELETION = 3;
268
269 // `SUBSTITUTION` indicates a block substitution of
270 // two or more nucleotides.
271 SUBSTITUTION = 4;
272
273 // `SNP` indicates a single nucleotide polymorphism.
274 SNP = 5;
275
276 // `STRUCTURAL` indicates a large structural variant,
277 // including chromosomal fusions, inversions, etc.
278 STRUCTURAL = 6;
279
280 // `CNV` indicates a variation in copy number.
281 CNV = 7;
282 }
283
284 enum Effect {
285 EFFECT_UNSPECIFIED = 0;
286
287 // `EFFECT_OTHER` should be used when no other Effect
288 // will suffice.
289 EFFECT_OTHER = 1;
290
291 // `FRAMESHIFT` indicates a mutation in which the insertion or
292 // deletion of nucleotides resulted in a frameshift change.
293 FRAMESHIFT = 2;
294
295 // `FRAME_PRESERVING_INDEL` indicates a mutation in which a
296 // multiple of three nucleotides has been inserted or deleted, resulting
297 // in no change to the reading frame of the coding sequence.
298 FRAME_PRESERVING_INDEL = 3;
299
300 // `SYNONYMOUS_SNP` indicates a single nucleotide polymorphism
301 // mutation that results in no amino acid change.
302 SYNONYMOUS_SNP = 4;
303
304 // `NONSYNONYMOUS_SNP` indicates a single nucleotide
305 // polymorphism mutation that results in an amino acid change.
306 NONSYNONYMOUS_SNP = 5;
307
308 // `STOP_GAIN` indicates a mutation that leads to the creation
309 // of a stop codon at the variant site. Frameshift mutations creating
310 // downstream stop codons do not count as `STOP_GAIN`.
311 STOP_GAIN = 6;
312
313 // `STOP_LOSS` indicates a mutation that eliminates a
314 // stop codon at the variant site.
315 STOP_LOSS = 7;
316
317 // `SPLICE_SITE_DISRUPTION` indicates that this variant is
318 // found in a splice site for the associated transcript, and alters the
319 // normal splicing pattern.
320 SPLICE_SITE_DISRUPTION = 8;
321 }
322
323 enum ClinicalSignificance {
324 CLINICAL_SIGNIFICANCE_UNSPECIFIED = 0;
325
326 // `OTHER` should be used when no other clinical significance
327 // value will suffice.
328 CLINICAL_SIGNIFICANCE_OTHER = 1;
329
330 UNCERTAIN = 2;
331
332 BENIGN = 3;
333
334 LIKELY_BENIGN = 4;
335
336 LIKELY_PATHOGENIC = 5;
337
338 PATHOGENIC = 6;
339
340 DRUG_RESPONSE = 7;
341
342 HISTOCOMPATIBILITY = 8;
343
344 CONFERS_SENSITIVITY = 9;
345
346 RISK_FACTOR = 10;
347
348 ASSOCIATION = 11;
349
350 PROTECTIVE = 12;
351
352 // `MULTIPLE_REPORTED` should be used when multiple clinical
353 // signficances are reported for a variant. The original clinical
354 // significance values may be provided in the `info` field.
355 MULTIPLE_REPORTED = 13;
356 }
357
358 // Type has been adapted from ClinVar's list of variant types.
359 Type type = 1;
360
361 // Effect of the variant on the coding sequence.
362 Effect effect = 2;
363
364 // The alternate allele for this variant. If multiple alternate alleles
365 // exist at this location, create a separate variant for each one, as they
366 // may represent distinct conditions.
367 string alternate_bases = 3;
368
369 // Google annotation ID of the gene affected by this variant. This should
370 // be provided when the variant is created.
371 string gene_id = 4;
372
373 // Google annotation IDs of the transcripts affected by this variant. These
374 // should be provided when the variant is created.
375 repeated string transcript_ids = 5;
376
377 // The set of conditions associated with this variant.
378 // A condition describes the way a variant influences human health.
379 repeated ClinicalCondition conditions = 6;
380
381 // Describes the clinical significance of a variant.
382 // It is adapted from the ClinVar controlled vocabulary for clinical
383 // significance described at:
384 // http://www.ncbi.nlm.nih.gov/clinvar/docs/clinsig/
385 ClinicalSignificance clinical_significance = 7;
386 }
387
388 // A transcript represents the assertion that a particular region of the
389 // reference genome may be transcribed as RNA.
390 message Transcript {
391 message Exon {
392 // The start position of the exon on this annotation's reference sequence,
393 // 0-based inclusive. Note that this is relative to the reference start, and
394 // **not** the containing annotation start.
395 int64 start = 1;
396
397 // The end position of the exon on this annotation's reference sequence,
398 // 0-based exclusive. Note that this is relative to the reference start, and
399 // *not* the containing annotation start.
400 int64 end = 2;
401
402 // The frame of this exon. Contains a value of 0, 1, or 2, which indicates
403 // the offset of the first coding base of the exon within the reading frame
404 // of the coding DNA sequence, if any. This field is dependent on the
405 // strandedness of this annotation (see
406 // [Annotation.reverse_strand][google.genomics.v1.Annotation.reverse_strand]).
407 // For forward stranded annotations, this offset is relative to the
408 // [exon.start][google.genomics.v1.Transcript.Exon.start]. For reverse
409 // strand annotations, this offset is relative to the
410 // [exon.end][google.genomics.v1.Transcript.Exon.end] `- 1`.
411 //
412 // Unset if this exon does not intersect the coding sequence. Upon creation
413 // of a transcript, the frame must be populated for all or none of the
414 // coding exons.
415 google.protobuf.Int32Value frame = 3;
416 }
417
418 message CodingSequence {
419 // The start of the coding sequence on this annotation's reference sequence,
420 // 0-based inclusive. Note that this position is relative to the reference
421 // start, and *not* the containing annotation start.
422 int64 start = 1;
423
424 // The end of the coding sequence on this annotation's reference sequence,
425 // 0-based exclusive. Note that this position is relative to the reference
426 // start, and *not* the containing annotation start.
427 int64 end = 2;
428 }
429
430 // The annotation ID of the gene from which this transcript is transcribed.
431 string gene_id = 1;
432
433 // The <a href="http://en.wikipedia.org/wiki/Exon">exons</a> that compose
434 // this transcript. This field should be unset for genomes where transcript
435 // splicing does not occur, for example prokaryotes.
436 //
437 // Introns are regions of the transcript that are not included in the
438 // spliced RNA product. Though not explicitly modeled here, intron ranges can
439 // be deduced; all regions of this transcript that are not exons are introns.
440 //
441 // Exonic sequences do not necessarily code for a translational product
442 // (amino acids). Only the regions of exons bounded by the
443 // [codingSequence][google.genomics.v1.Transcript.coding_sequence] correspond
444 // to coding DNA sequence.
445 //
446 // Exons are ordered by start position and may not overlap.
447 repeated Exon exons = 2;
448
449 // The range of the coding sequence for this transcript, if any. To determine
450 // the exact ranges of coding sequence, intersect this range with those of the
451 // [exons][google.genomics.v1.Transcript.exons], if any. If there are any
452 // [exons][google.genomics.v1.Transcript.exons], the
453 // [codingSequence][google.genomics.v1.Transcript.coding_sequence] must start
454 // and end within them.
455 //
456 // Note that in some cases, the reference genome will not exactly match the
457 // observed mRNA transcript e.g. due to variance in the source genome from
458 // reference. In these cases,
459 // [exon.frame][google.genomics.v1.Transcript.Exon.frame] will not necessarily
460 // match the expected reference reading frame and coding exon reference bases
461 // cannot necessarily be concatenated to produce the original transcript mRNA.
462 CodingSequence coding_sequence = 3;
463 }
464
465 message ExternalId {
466 // The name of the source of this data.
467 string source_name = 1;
468
469 // The id used by the source of this data.
470 string id = 2;
471 }
472
473 message CreateAnnotationSetRequest {
474 // The annotation set to create.
475 AnnotationSet annotation_set = 1;
476 }
477
478 message GetAnnotationSetRequest {
479 // The ID of the annotation set to be retrieved.
480 string annotation_set_id = 1;
481 }
482
483 message UpdateAnnotationSetRequest {
484 // The ID of the annotation set to be updated.
485 string annotation_set_id = 1;
486
487 // The new annotation set.
488 AnnotationSet annotation_set = 2;
489
490 // An optional mask specifying which fields to update. Mutable fields are
491 // [name][google.genomics.v1.AnnotationSet.name],
492 // [source_uri][google.genomics.v1.AnnotationSet.source_uri], and
493 // [info][google.genomics.v1.AnnotationSet.info]. If unspecified, all
494 // mutable fields will be updated.
495 google.protobuf.FieldMask update_mask = 3;
496 }
497
498 message DeleteAnnotationSetRequest {
499 // The ID of the annotation set to be deleted.
500 string annotation_set_id = 1;
501 }
502
503 message SearchAnnotationSetsRequest {
504 // Required. The dataset IDs to search within. Caller must have `READ` access
505 // to these datasets.
506 repeated string dataset_ids = 1;
507
508 // If specified, only annotation sets associated with the given reference set
509 // are returned.
510 string reference_set_id = 2;
511
512 // Only return annotations sets for which a substring of the name matches this
513 // string (case insensitive).
514 string name = 3;
515
516 // If specified, only annotation sets that have any of these types are
517 // returned.
518 repeated AnnotationType types = 4;
519
520 // The continuation token, which is used to page through large result sets.
521 // To get the next page of results, set this parameter to the value of
522 // `nextPageToken` from the previous response.
523 string page_token = 5;
524
525 // The maximum number of results to return in a single page. If unspecified,
526 // defaults to 128. The maximum value is 1024.
527 int32 page_size = 6;
528 }
529
530 message SearchAnnotationSetsResponse {
531 // The matching annotation sets.
532 repeated AnnotationSet annotation_sets = 1;
533
534 // The continuation token, which is used to page through large result sets.
535 // Provide this value in a subsequent request to return the next page of
536 // results. This field will be empty if there aren't any additional results.
537 string next_page_token = 2;
538 }
539
540 message CreateAnnotationRequest {
541 // The annotation to be created.
542 Annotation annotation = 1;
543 }
544
545 message BatchCreateAnnotationsRequest {
546 // The annotations to be created. At most 4096 can be specified in a single
547 // request.
548 repeated Annotation annotations = 1;
549
550 // A unique request ID which enables the server to detect duplicated requests.
551 // If provided, duplicated requests will result in the same response; if not
552 // provided, duplicated requests may result in duplicated data. For a given
553 // annotation set, callers should not reuse `request_id`s when writing
554 // different batches of annotations - behavior in this case is undefined.
555 // A common approach is to use a UUID. For batch jobs where worker crashes are
556 // a possibility, consider using some unique variant of a worker or run ID.
557 string request_id = 2;
558 }
559
560 message BatchCreateAnnotationsResponse {
561 message Entry {
562 // The creation status.
563 google.rpc.Status status = 1;
564
565 // The created annotation, if creation was successful.
566 Annotation annotation = 2;
567 }
568
569 // The resulting per-annotation entries, ordered consistently with the
570 // original request.
571 repeated Entry entries = 1;
572 }
573
574 message GetAnnotationRequest {
575 // The ID of the annotation to be retrieved.
576 string annotation_id = 1;
577 }
578
579 message UpdateAnnotationRequest {
580 // The ID of the annotation to be updated.
581 string annotation_id = 1;
582
583 // The new annotation.
584 Annotation annotation = 2;
585
586 // An optional mask specifying which fields to update. Mutable fields are
587 // [name][google.genomics.v1.Annotation.name],
588 // [variant][google.genomics.v1.Annotation.variant],
589 // [transcript][google.genomics.v1.Annotation.transcript], and
590 // [info][google.genomics.v1.Annotation.info]. If unspecified, all mutable
591 // fields will be updated.
592 google.protobuf.FieldMask update_mask = 3;
593 }
594
595 message DeleteAnnotationRequest {
596 // The ID of the annotation to be deleted.
597 string annotation_id = 1;
598 }
599
600 message SearchAnnotationsRequest {
601 // Required. The annotation sets to search within. The caller must have
602 // `READ` access to these annotation sets.
603 // All queried annotation sets must have the same type.
604 repeated string annotation_set_ids = 1;
605
606 // Required. `reference_id` or `reference_name` must be set.
607 oneof reference {
608 // The ID of the reference to query.
609 string reference_id = 2;
610
611 // The name of the reference to query, within the reference set associated
612 // with this query.
613 string reference_name = 3;
614 }
615
616 // The start position of the range on the reference, 0-based inclusive. If
617 // specified,
618 // [referenceId][google.genomics.v1.SearchAnnotationsRequest.reference_id] or
619 // [referenceName][google.genomics.v1.SearchAnnotationsRequest.reference_name]
620 // must be specified. Defaults to 0.
621 int64 start = 4;
622
623 // The end position of the range on the reference, 0-based exclusive. If
624 // [referenceId][google.genomics.v1.SearchAnnotationsRequest.reference_id] or
625 // [referenceName][google.genomics.v1.SearchAnnotationsRequest.reference_name]
626 // must be specified, Defaults to the length of the reference.
627 int64 end = 5;
628
629 // The continuation token, which is used to page through large result sets.
630 // To get the next page of results, set this parameter to the value of
631 // `nextPageToken` from the previous response.
632 string page_token = 6;
633
634 // The maximum number of results to return in a single page. If unspecified,
635 // defaults to 256. The maximum value is 2048.
636 int32 page_size = 7;
637 }
638
639 message SearchAnnotationsResponse {
640 // The matching annotations.
641 repeated Annotation annotations = 1;
642
643 // The continuation token, which is used to page through large result sets.
644 // Provide this value in a subsequent request to return the next page of
645 // results. This field will be empty if there aren't any additional results.
646 string next_page_token = 2;
647 }
648
649 // When an [Annotation][google.genomics.v1.Annotation] or
650 // [AnnotationSet][google.genomics.v1.AnnotationSet] is created, if `type` is
651 // not specified it will be set to `GENERIC`.
652 enum AnnotationType {
653 ANNOTATION_TYPE_UNSPECIFIED = 0;
654
655 // A `GENERIC` annotation type should be used when no other annotation
656 // type will suffice. This represents an untyped annotation of the reference
657 // genome.
658 GENERIC = 1;
659
660 // A `VARIANT` annotation type.
661 VARIANT = 2;
662
663 // A `GENE` annotation type represents the existence of a gene at the
664 // associated reference coordinates. The start coordinate is typically the
665 // gene's transcription start site and the end is typically the end of the
666 // gene's last exon.
667 GENE = 3;
668
669 // A `TRANSCRIPT` annotation type represents the assertion that a
670 // particular region of the reference genome may be transcribed as RNA.
671 TRANSCRIPT = 4;
672 }