Class: Google::Apis::GenomicsV1beta2::QueryRange
- Inherits:
-
Object
- Object
- Google::Apis::GenomicsV1beta2::QueryRange
- 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 for search requests.
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 reference to query.
-
#reference_name ⇒ String
The name of the reference to query, within the reference set associated with this query.
-
#start ⇒ String
The start position of the range on the reference, 0-based inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryRange
constructor
A new instance of QueryRange.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ QueryRange
Returns a new instance of QueryRange.
1486 1487 1488 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1486 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, referenceId or referenceName must also be specified. If unset or 0,
defaults to the length of the reference.
Corresponds to the JSON property end
1466 1467 1468 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1466 def end @end end |
#reference_id ⇒ String
The ID of the reference to query. At most one of referenceId and referenceName
should be specified.
Corresponds to the JSON property referenceId
1472 1473 1474 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1472 def reference_id @reference_id end |
#reference_name ⇒ String
The name of the reference to query, within the reference set associated with
this query. At most one of referenceId and referenceName pshould be specified.
Corresponds to the JSON property referenceName
1478 1479 1480 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1478 def reference_name @reference_name end |
#start ⇒ String
The start position of the range on the reference, 0-based inclusive. If
specified, referenceId or referenceName must also be specified. Defaults to 0.
Corresponds to the JSON property start
1484 1485 1486 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1484 def start @start end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1491 1492 1493 1494 1495 1496 |
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1491 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? @start = args[:start] unless args[:start].nil? end |