class Google::Apis::GenomicsV1::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. 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 annotation set to which this annotation belongs. Corresponds to the JSON property `annotationSetId` @return [String]

end[RW]

The end position of the range on the reference, 0-based exclusive. Corresponds to the JSON property `end` @return [String]

id[RW]

The server-generated annotation ID, unique across all annotations. Corresponds to the JSON property `id` @return [String]

info[RW]

A map of additional read alignment information. This must be of the form map ( string key mapping to a list of string values). Corresponds to the JSON property `info` @return [Hash<String,Array<Object>>]

name[RW]

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

reference_id[RW]

The ID of the Google Genomics reference associated with this range. Corresponds to the JSON property `referenceId` @return [String]

reference_name[RW]

The display name corresponding to the reference specified by `referenceId`, for example `chr1`, `1`, or `chrX`. Corresponds to the JSON property `referenceName` @return [String]

reverse_strand[RW]

Whether this range refers to the reverse strand, as opposed to the forward strand. Note that regardless of this field, the start/end position of the range always refer to the forward strand. Corresponds to the JSON property `reverseStrand` @return [Boolean]

reverse_strand?[RW]

Whether this range refers to the reverse strand, as opposed to the forward strand. Note that regardless of this field, the start/end position of the range always refer to the forward strand. Corresponds to the JSON property `reverseStrand` @return [Boolean]

start[RW]

The start position of the range on the reference, 0-based inclusive. Corresponds to the JSON property `start` @return [String]

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::GenomicsV1::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, which describes the effect of a variant on the genome, the coding sequence, and/or higher level consequences at the organism level e.

  1. pathogenicity. This field is only set for annotations of type `VARIANT`.

Corresponds to the JSON property `variant` @return [Google::Apis::GenomicsV1::VariantAnnotation]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/genomics_v1/classes.rb, line 261
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_v1/classes.rb, line 266
def update!(**args)
  @id = args[:id] if args.key?(:id)
  @annotation_set_id = args[:annotation_set_id] if args.key?(:annotation_set_id)
  @name = args[:name] if args.key?(:name)
  @reference_id = args[:reference_id] if args.key?(:reference_id)
  @reference_name = args[:reference_name] if args.key?(:reference_name)
  @start = args[:start] if args.key?(:start)
  @end = args[:end] if args.key?(:end)
  @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand)
  @type = args[:type] if args.key?(:type)
  @variant = args[:variant] if args.key?(:variant)
  @transcript = args[:transcript] if args.key?(:transcript)
  @info = args[:info] if args.key?(:info)
end