Class: Google::Apis::GenomicsV1beta2::RangePosition

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 over a reference sequence, for representing the position of a genomic resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

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

#endString

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

Returns:

  • (String)


1540
1541
1542
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1540

def end
  @end
end

#reference_idString

The ID of the Google Genomics reference associated with this range. Corresponds to the JSON property referenceId

Returns:

  • (String)


1545
1546
1547
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1545

def reference_id
  @reference_id
end

#reference_nameString

The display name corresponding to the reference specified by referenceId, for example chr1, 1, or chrX. Corresponds to the JSON property referenceName

Returns:

  • (String)


1551
1552
1553
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1551

def reference_name
  @reference_name
end

#reverse_strandBoolean 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

Returns:

  • (Boolean)


1558
1559
1560
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 1558

def reverse_strand
  @reverse_strand
end

#startString

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

Returns:

  • (String)


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