Class: Google::Apis::GenomicsV1::CodingSequence

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/genomics_v1/classes.rb,
generated/google/apis/genomics_v1/representations.rb,
generated/google/apis/genomics_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CodingSequence

Returns a new instance of CodingSequence



445
446
447
# File 'generated/google/apis/genomics_v1/classes.rb', line 445

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endFixnum

The end of the coding sequence on this annotation's reference sequence, 0-based exclusive. Note that this position is relative to the reference start, and not the containing annotation start. Corresponds to the JSON property end

Returns:

  • (Fixnum)


436
437
438
# File 'generated/google/apis/genomics_v1/classes.rb', line 436

def end
  @end
end

#startFixnum

The start of the coding sequence on this annotation's reference sequence, 0-based inclusive. Note that this position is relative to the reference start, and not the containing annotation start. Corresponds to the JSON property start

Returns:

  • (Fixnum)


443
444
445
# File 'generated/google/apis/genomics_v1/classes.rb', line 443

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



450
451
452
453
# File 'generated/google/apis/genomics_v1/classes.rb', line 450

def update!(**args)
  @end = args[:end] if args.key?(:end)
  @start = args[:start] if args.key?(:start)
end