class Google::Apis::GenomicsV1::Position

An abstraction for referring to a genomic position, in relation to some already known reference. For now, represents a genomic position as a reference name, a base number on that reference (0-based), and a determination of forward or reverse strand.

Attributes

position[RW]

The 0-based offset from the start of the forward strand for that reference. Corresponds to the JSON property `position` @return [String]

reference_name[RW]

The name of the reference in whatever reference set is being used. Corresponds to the JSON property `referenceName` @return [String]

reverse_strand[RW]

Whether this position is on the reverse strand, as opposed to the forward strand. Corresponds to the JSON property `reverseStrand` @return [Boolean]

reverse_strand?[RW]

Whether this position is on the reverse strand, as opposed to the forward strand. Corresponds to the JSON property `reverseStrand` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/genomics_v1/classes.rb, line 1971
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 1976
def update!(**args)
  @reference_name = args[:reference_name] if args.key?(:reference_name)
  @position = args[:position] if args.key?(:position)
  @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand)
end