Class: Google::Apis::GenomicsV1beta2::Range
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1beta2::Range
- 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
-
#end ⇒ String
The end position of the range on the reference, 0-based exclusive.
-
#reference_name ⇒ String
The reference sequence name, for example chr1, 1, or chrX.
-
#start ⇒ String
The start position of the range on the reference, 0-based inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Range
constructor
A new instance of Range.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
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
#end ⇒ String
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
1507 1508 1509 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1507 def end @end end |
#reference_name ⇒ String
The reference sequence name, for example chr1, 1, or chrX.
Corresponds to the JSON property referenceName
1512 1513 1514 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1512 def reference_name @reference_name end |
#start ⇒ String
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
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 |