Class: Google::Apis::GenomicsV1::ReadGroup

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 read group is all the data that's processed the same way by the sequencer.

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

Returns a new instance of ReadGroup



3458
3459
3460
# File 'generated/google/apis/genomics_v1/classes.rb', line 3458

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

Instance Attribute Details

#dataset_idString

The dataset to which this read group belongs. Corresponds to the JSON property datasetId

Returns:

  • (String)


3446
3447
3448
# File 'generated/google/apis/genomics_v1/classes.rb', line 3446

def dataset_id
  @dataset_id
end

#descriptionString

A free-form text description of this read group. Corresponds to the JSON property description

Returns:

  • (String)


3436
3437
3438
# File 'generated/google/apis/genomics_v1/classes.rb', line 3436

def description
  @description
end

#experimentGoogle::Apis::GenomicsV1::Experiment

The experiment used to generate this read group. Corresponds to the JSON property experiment



3451
3452
3453
# File 'generated/google/apis/genomics_v1/classes.rb', line 3451

def experiment
  @experiment
end

#idString

The server-generated read group ID, unique for all read groups. Note: This is different than the @RG ID field in the SAM spec. For that value, see name. Corresponds to the JSON property id

Returns:

  • (String)


3417
3418
3419
# File 'generated/google/apis/genomics_v1/classes.rb', line 3417

def id
  @id
end

#infoHash<String,Array<Object>>

A map of additional read group information. This must be of the form map (string key mapping to a list of string values). Corresponds to the JSON property info

Returns:

  • (Hash<String,Array<Object>>)


3410
3411
3412
# File 'generated/google/apis/genomics_v1/classes.rb', line 3410

def info
  @info
end

#nameString

The read group name. This corresponds to the @RG ID field in the SAM spec. Corresponds to the JSON property name

Returns:

  • (String)


3456
3457
3458
# File 'generated/google/apis/genomics_v1/classes.rb', line 3456

def name
  @name
end

#predicted_insert_sizeFixnum

The predicted insert size of this read group. The insert size is the length the sequenced DNA fragment from end-to-end, not including the adapters. Corresponds to the JSON property predictedInsertSize

Returns:

  • (Fixnum)


3423
3424
3425
# File 'generated/google/apis/genomics_v1/classes.rb', line 3423

def predicted_insert_size
  @predicted_insert_size
end

#programsArray<Google::Apis::GenomicsV1::Program>

The programs used to generate this read group. Programs are always identical for all read groups within a read group set. For this reason, only the first read group in a returned set will have this field populated. Corresponds to the JSON property programs



3431
3432
3433
# File 'generated/google/apis/genomics_v1/classes.rb', line 3431

def programs
  @programs
end

#reference_set_idString

The reference set the reads in this read group are aligned to. Corresponds to the JSON property referenceSetId

Returns:

  • (String)


3404
3405
3406
# File 'generated/google/apis/genomics_v1/classes.rb', line 3404

def reference_set_id
  @reference_set_id
end

#sample_idString

A client-supplied sample identifier for the reads in this read group. Corresponds to the JSON property sampleId

Returns:

  • (String)


3441
3442
3443
# File 'generated/google/apis/genomics_v1/classes.rb', line 3441

def sample_id
  @sample_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
# File 'generated/google/apis/genomics_v1/classes.rb', line 3463

def update!(**args)
  @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id)
  @info = args[:info] if args.key?(:info)
  @id = args[:id] if args.key?(:id)
  @predicted_insert_size = args[:predicted_insert_size] if args.key?(:predicted_insert_size)
  @programs = args[:programs] if args.key?(:programs)
  @description = args[:description] if args.key?(:description)
  @sample_id = args[:sample_id] if args.key?(:sample_id)
  @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
  @experiment = args[:experiment] if args.key?(:experiment)
  @name = args[:name] if args.key?(:name)
end