Class: Google::Apis::GenomicsV1::Position
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GenomicsV1::Position
 
- 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
An abstraction for referring to a genomic position, in relation to some already known reference. For now, represents a genomic position as a reference name, a base number on that reference (0-based), and a determination of forward or reverse strand.
Instance Attribute Summary collapse
- 
  
    
      #position  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The 0-based offset from the start of the forward strand for that reference. 
- 
  
    
      #reference_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The name of the reference in whatever reference set is being used. 
- 
  
    
      #reverse_strand  ⇒ Boolean 
    
    
      (also: #reverse_strand?)
    
  
  
  
  
    
    
  
  
  
  
  
  
    Whether this position is on the reverse strand, as opposed to the forward strand. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Position 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Position. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Position
Returns a new instance of Position
| 1650 1651 1652 | # File 'generated/google/apis/genomics_v1/classes.rb', line 1650 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#position ⇒ Fixnum
The 0-based offset from the start of the forward strand for that reference.
Corresponds to the JSON property position
| 1636 1637 1638 | # File 'generated/google/apis/genomics_v1/classes.rb', line 1636 def position @position end | 
#reference_name ⇒ String
The name of the reference in whatever reference set is being used.
Corresponds to the JSON property referenceName
| 1641 1642 1643 | # File 'generated/google/apis/genomics_v1/classes.rb', line 1641 def reference_name @reference_name end | 
#reverse_strand ⇒ Boolean Also known as: reverse_strand?
Whether this position is on the reverse strand, as opposed to the forward
strand.
Corresponds to the JSON property reverseStrand
| 1647 1648 1649 | # File 'generated/google/apis/genomics_v1/classes.rb', line 1647 def reverse_strand @reverse_strand end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1655 1656 1657 1658 1659 | # File 'generated/google/apis/genomics_v1/classes.rb', line 1655 def update!(**args) @position = args[:position] if args.key?(:position) @reference_name = args[:reference_name] if args.key?(:reference_name) @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand) end |