Class: Google::Apis::GenomicsV1beta2::Range

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

Overview

A 0-based half-open genomic coordinate range over a reference sequence.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Range

Returns a new instance of Range



1520
1521
1522
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1520

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

Instance Attribute Details

#endString

The end position of the range on the reference, 0-based exclusive. If specified, referenceName must also be specified. Corresponds to the JSON property end

Returns:

  • (String)


1507
1508
1509
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1507

def end
  @end
end

#reference_nameString

The reference sequence name, for example chr1, 1, or chrX. Corresponds to the JSON property referenceName

Returns:

  • (String)


1512
1513
1514
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1512

def reference_name
  @reference_name
end

#startString

The start position of the range on the reference, 0-based inclusive. If specified, referenceName must also be specified. Corresponds to the JSON property start

Returns:

  • (String)


1518
1519
1520
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1518

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1525
1526
1527
1528
1529
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1525

def update!(**args)
  @end = args[:end] unless args[:end].nil?
  @reference_name = args[:reference_name] unless args[:reference_name].nil?
  @start = args[:start] unless args[:start].nil?
end