Class: Google::Apis::GenomicsV1beta2::Call

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 call represents the determination of genotype with respect to a particular variant. It may include associated information such as quality and phasing. For example, a call might assign a probability of 0.32 to the occurrence of a SNP named rs1234 in a call set with the name NA12345.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Call

Returns a new instance of Call



370
371
372
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 370

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

Instance Attribute Details

#call_set_idString

The ID of the call set this variant call belongs to. Corresponds to the JSON property callSetId

Returns:

  • (String)


327
328
329
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 327

def call_set_id
  @call_set_id
end

#call_set_nameString

The name of the call set this variant call belongs to. Corresponds to the JSON property callSetName

Returns:

  • (String)


332
333
334
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 332

def call_set_name
  @call_set_name
end

#genotypeArray<Fixnum>

The genotype of this variant call. Each value represents either the value of the referenceBases field or a 1-based index into alternateBases. If a variant had a referenceBases value of T and an alternateBases value of ["A", "C"], and the genotype was [2, 1], that would mean the call represented the heterozygous value CA for this variant. If the genotype was instead [0, 1], the represented value would be TA. Ordering of the genotype values is important if the phaseset is present. If a genotype is not called (that is, a . is present in the GT string) -1 is returned. Corresponds to the JSON property genotype

Returns:

  • (Array<Fixnum>)


344
345
346
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 344

def genotype
  @genotype
end

#genotype_likelihoodArray<Float>

The genotype likelihoods for this variant call. Each array entry represents how likely a specific genotype is for this call. The value ordering is defined by the GL tag in the VCF spec. If Phred-scaled genotype likelihood scores (PL) are available and log10(P) genotype likelihood scores (GL) are not, PL scores are converted to GL scores. If both are available, PL scores are stored in info. Corresponds to the JSON property genotypeLikelihood

Returns:

  • (Array<Float>)


354
355
356
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 354

def genotype_likelihood
  @genotype_likelihood
end

#infoHash<String,Array<String>>

A string which maps to an array of values. Corresponds to the JSON property info

Returns:

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


359
360
361
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 359

def info
  @info
end

#phasesetString

If this field is present, this variant call's genotype ordering implies the phase of the bases and is consistent with any other variant calls in the same reference sequence which have the same phaseset value. When importing data from VCF, if the genotype data was phased but no phase set was specified this field will be set to *. Corresponds to the JSON property phaseset

Returns:

  • (String)


368
369
370
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 368

def phaseset
  @phaseset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



375
376
377
378
379
380
381
382
# File 'generated/google/apis/genomics_v1beta2/classes.rb', line 375

def update!(**args)
  @call_set_id = args[:call_set_id] unless args[:call_set_id].nil?
  @call_set_name = args[:call_set_name] unless args[:call_set_name].nil?
  @genotype = args[:genotype] unless args[:genotype].nil?
  @genotype_likelihood = args[:genotype_likelihood] unless args[:genotype_likelihood].nil?
  @info = args[:info] unless args[:info].nil?
  @phaseset = args[:phaseset] unless args[:phaseset].nil?
end