Class: Google::Apis::GenomicsV1::Range

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Range

Returns a new instance of Range



2506
2507
2508
# File 'generated/google/apis/genomics_v1/classes.rb', line 2506

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#endFixnum

The end position of the range on the reference, 0-based exclusive. Corresponds to the JSON property end

Returns:

  • (Fixnum)


2498
2499
2500
# File 'generated/google/apis/genomics_v1/classes.rb', line 2498

def end
  @end
end

#reference_nameString

The reference sequence name, for example chr1, 1, or chrX. Corresponds to the JSON property referenceName

Returns:

  • (String)


2504
2505
2506
# File 'generated/google/apis/genomics_v1/classes.rb', line 2504

def reference_name
  @reference_name
end

#startFixnum

The start position of the range on the reference, 0-based inclusive. Corresponds to the JSON property start

Returns:

  • (Fixnum)


2493
2494
2495
# File 'generated/google/apis/genomics_v1/classes.rb', line 2493

def start
  @start
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2511
2512
2513
2514
2515
# File 'generated/google/apis/genomics_v1/classes.rb', line 2511

def update!(**args)
  @start = args[:start] if args.key?(:start)
  @end = args[:end] if args.key?(:end)
  @reference_name = args[:reference_name] if args.key?(:reference_name)
end