Class: Google::Apis::GenomicsV1beta2::CigarUnit

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 single CIGAR operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ CigarUnit

Returns a new instance of CigarUnit



511
512
513
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 511

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

Instance Attribute Details

#operationString

Corresponds to the JSON property operation

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 497

def operation
  @operation
end

#operation_lengthString

The number of bases that the operation runs for. Required. Corresponds to the JSON property operationLength

Returns:

  • (String)


502
503
504
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 502

def operation_length
  @operation_length
end

#reference_sequenceString

referenceSequence is only used at mismatches (SEQUENCE_MISMATCH) and deletions (DELETE). Filling this field replaces SAM's MD tag. If the relevant information is not available, this field is unset. Corresponds to the JSON property referenceSequence

Returns:

  • (String)


509
510
511
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 509

def reference_sequence
  @reference_sequence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



516
517
518
519
520
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 516

def update!(**args)
  @operation = args[:operation] unless args[:operation].nil?
  @operation_length = args[:operation_length] unless args[:operation_length].nil?
  @reference_sequence = args[:reference_sequence] unless args[:reference_sequence].nil?
end