class Google::Apis::GenomicsV1beta2::Annotation

An annotation describes a region of reference genome. The value of an annotation may be one of several canonical types, supplemented by arbitrary info tags. A variant annotation is represented by one or more of these canonical types. An annotation is not inherently associated with a specific sample or individual (though a client could choose to use annotations in this way). Example canonical annotation types are 'Gene' and 'Variant'.

Attributes

annotation_set_id[RW]

The ID of the containing annotation set. Corresponds to the JSON property `annotationSetId` @return [String]

id[RW]

The generated unique ID for this annotation. Corresponds to the JSON property `id` @return [String]

info[RW]

A string which maps to an array of values. Corresponds to the JSON property `info` @return [Hash<String,Array<String>>]

name[RW]

The display name of this annotation. Corresponds to the JSON property `name` @return [String]

position[RW]

A 0-based half-open genomic coordinate range over a reference sequence, for representing the position of a genomic resource. Corresponds to the JSON property `position` @return [Google::Apis::GenomicsV1beta2::RangePosition]

transcript[RW]

A transcript represents the assertion that a particular region of the reference genome may be transcribed as RNA. Corresponds to the JSON property `transcript` @return [Google::Apis::GenomicsV1beta2::Transcript]

type[RW]

The data type for this annotation. Must match the containing annotation set's type. Corresponds to the JSON property `type` @return [String]

variant[RW]

A Variant annotation. Corresponds to the JSON property `variant` @return [Google::Apis::GenomicsV1beta2::VariantAnnotation]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/genomics_v1beta2/classes.rb, line 146
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/genomics_v1beta2/classes.rb, line 151
def update!(**args)
  @annotation_set_id = args[:annotation_set_id] unless args[:annotation_set_id].nil?
  @id = args[:id] unless args[:id].nil?
  @info = args[:info] unless args[:info].nil?
  @name = args[:name] unless args[:name].nil?
  @position = args[:position] unless args[:position].nil?
  @transcript = args[:transcript] unless args[:transcript].nil?
  @type = args[:type] unless args[:type].nil?
  @variant = args[:variant] unless args[:variant].nil?
end