Class: Google::Apis::GenomicsV1::Range
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1::Range
- 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
Overview
A 0-based half-open genomic coordinate range for search requests.
Instance Attribute Summary collapse
-
#end ⇒ Fixnum
The end position of the range on the reference, 0-based exclusive.
-
#reference_name ⇒ String
The reference sequence name, for example
chr1
,1
, orchrX
. -
#start ⇒ Fixnum
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::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Range
Returns a new instance of Range
1765 1766 1767 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1765 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end ⇒ Fixnum
The end position of the range on the reference, 0-based exclusive.
Corresponds to the JSON property end
1752 1753 1754 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1752 def end @end end |
#reference_name ⇒ String
The reference sequence name, for example chr1
,
1
, or chrX
.
Corresponds to the JSON property referenceName
1758 1759 1760 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1758 def reference_name @reference_name end |
#start ⇒ Fixnum
The start position of the range on the reference, 0-based inclusive.
Corresponds to the JSON property start
1763 1764 1765 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1763 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1770 1771 1772 1773 1774 |
# File 'generated/google/apis/genomics_v1/classes.rb', line 1770 def update!(**args) @end = args[:end] if args.key?(:end) @reference_name = args[:reference_name] if args.key?(:reference_name) @start = args[:start] if args.key?(:start) end |