Class: Google::Apis::GenomicsV1beta2::QueryRange

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 for search requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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

#endString

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

Returns:

  • (String)

1466
1467
1468
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1466

def end
  @end
end

#reference_idString

The ID of the reference to query. At most one of referenceId and referenceName should be specified. Corresponds to the JSON property referenceId

Returns:

  • (String)

1472
1473
1474
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1472

def reference_id
  @reference_id
end

#reference_nameString

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

Returns:

  • (String)

1478
1479
1480
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1478

def reference_name
  @reference_name
end

#startString

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

Returns:

  • (String)

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