Class: Google::Apis::GenomicsV1::CigarUnit

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

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) ⇒ CigarUnit

Returns a new instance of CigarUnit



3231
3232
3233
# File 'generated/google/apis/genomics_v1/classes.rb', line 3231

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

Instance Attribute Details

#operationString

Corresponds to the JSON property operation

Returns:

  • (String)


3216
3217
3218
# File 'generated/google/apis/genomics_v1/classes.rb', line 3216

def operation
  @operation
end

#operation_lengthFixnum

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

Returns:

  • (Fixnum)


3229
3230
3231
# File 'generated/google/apis/genomics_v1/classes.rb', line 3229

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)


3224
3225
3226
# File 'generated/google/apis/genomics_v1/classes.rb', line 3224

def reference_sequence
  @reference_sequence
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3236
3237
3238
3239
3240
# File 'generated/google/apis/genomics_v1/classes.rb', line 3236

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