Class: Google::Apis::GenomicsV1beta2::RangePosition
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1beta2::RangePosition
- 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, for representing the position of a genomic resource.
Instance Attribute Summary collapse
-
#end ⇒ String
The end position of the range on the reference, 0-based exclusive.
-
#reference_id ⇒ String
The ID of the Google Genomics reference associated with this range.
-
#reference_name ⇒ String
The display name corresponding to the reference specified by referenceId, for example chr1, 1, or chrX.
-
#reverse_strand ⇒ Boolean
(also: #reverse_strand?)
Whether this range refers to the reverse strand, as opposed to the forward strand.
-
#start ⇒ String
The start position of the range on the reference, 0-based inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RangePosition
constructor
A new instance of RangePosition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RangePosition
Returns a new instance of RangePosition
1566 1567 1568 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1566 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ String
The end position of the range on the reference, 0-based exclusive.
Corresponds to the JSON property end
1540 1541 1542 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1540 def end @end end |
#reference_id ⇒ String
The ID of the Google Genomics reference associated with this range.
Corresponds to the JSON property referenceId
1545 1546 1547 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1545 def reference_id @reference_id end |
#reference_name ⇒ String
The display name corresponding to the reference specified by referenceId, for
example chr1, 1, or chrX.
Corresponds to the JSON property referenceName
1551 1552 1553 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1551 def reference_name @reference_name end |
#reverse_strand ⇒ Boolean Also known as: reverse_strand?
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
1558 1559 1560 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1558 def reverse_strand @reverse_strand end |
#start ⇒ String
The start position of the range on the reference, 0-based inclusive.
Corresponds to the JSON property start
1564 1565 1566 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1564 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1571 1572 1573 1574 1575 1576 1577 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1571 def update!(**args) @end = args[:end] unless args[:end].nil? @reference_id = args[:reference_id] unless args[:reference_id].nil? @reference_name = args[:reference_name] unless args[:reference_name].nil? @reverse_strand = args[:reverse_strand] unless args[:reverse_strand].nil? @start = args[:start] unless args[:start].nil? end |