Class: Google::Apis::GenomicsV1::Variant
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::GenomicsV1::Variant
 
- 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 variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set. Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.
Instance Attribute Summary collapse
- 
  
    
      #alternate_bases  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The bases that appear instead of the reference bases. 
- 
  
    
      #calls  ⇒ Array<Google::Apis::GenomicsV1::VariantCall> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The variant calls for this particular variant. 
- 
  
    
      #created  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The date this variant was created, in milliseconds from the epoch. 
- 
  
    
      #end  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The end position (0-based) of this variant. 
- 
  
    
      #filter  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of filters (normally quality filters) this variant has failed. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The server-generated variant ID, unique across all variants. 
- 
  
    
      #info  ⇒ Hash<String,Array<Object>> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A map of additional variant information. 
- 
  
    
      #names  ⇒ Array<String> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Names for the variant, for example a RefSNP ID. 
- 
  
    
      #quality  ⇒ Float 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A measure of how likely this variant is to be real. 
- 
  
    
      #reference_bases  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The reference bases for this variant. 
- 
  
    
      #reference_name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The reference on which this variant occurs. 
- 
  
    
      #start  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The position at which this variant occurs (0-based). 
- 
  
    
      #variant_set_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The ID of the variant set this variant belongs to. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Variant 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Variant. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Variant
Returns a new instance of Variant
| 3426 3427 3428 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3426 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#alternate_bases ⇒ Array<String>
The bases that appear instead of the reference bases.
Corresponds to the JSON property alternateBases
| 3354 3355 3356 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3354 def alternate_bases @alternate_bases end | 
#calls ⇒ Array<Google::Apis::GenomicsV1::VariantCall>
The variant calls for this particular variant. Each one represents the
determination of genotype with respect to this variant.
Corresponds to the JSON property calls
| 3360 3361 3362 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3360 def calls @calls end | 
#created ⇒ Fixnum
The date this variant was created, in milliseconds from the epoch.
Corresponds to the JSON property created
| 3365 3366 3367 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3365 def created @created end | 
#end ⇒ Fixnum
The end position (0-based) of this variant. This corresponds to the first
base after the last base in the reference allele. So, the length of
the reference allele is (end - start). This is useful for variants
that don't explicitly give alternate bases, for example large deletions.
Corresponds to the JSON property end
| 3373 3374 3375 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3373 def end @end end | 
#filter ⇒ Array<String>
A list of filters (normally quality filters) this variant has failed.
PASS indicates this variant has passed all filters.
Corresponds to the JSON property filter
| 3379 3380 3381 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3379 def filter @filter end | 
#id ⇒ String
The server-generated variant ID, unique across all variants.
Corresponds to the JSON property id
| 3384 3385 3386 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3384 def id @id end | 
#info ⇒ Hash<String,Array<Object>>
A map of additional variant information. This must be of the form
mapinfo
| 3390 3391 3392 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3390 def info @info end | 
#names ⇒ Array<String>
Names for the variant, for example a RefSNP ID.
Corresponds to the JSON property names
| 3395 3396 3397 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3395 def names @names end | 
#quality ⇒ Float
A measure of how likely this variant is to be real.
A higher value is better.
Corresponds to the JSON property quality
| 3401 3402 3403 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3401 def quality @quality end | 
#reference_bases ⇒ String
The reference bases for this variant. They start at the given
position.
Corresponds to the JSON property referenceBases
| 3407 3408 3409 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3407 def reference_bases @reference_bases end | 
#reference_name ⇒ String
The reference on which this variant occurs.
(such as chr20 or X)
Corresponds to the JSON property referenceName
| 3413 3414 3415 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3413 def reference_name @reference_name end | 
#start ⇒ Fixnum
The position at which this variant occurs (0-based).
This corresponds to the first base of the string of reference bases.
Corresponds to the JSON property start
| 3419 3420 3421 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3419 def start @start end | 
#variant_set_id ⇒ String
The ID of the variant set this variant belongs to.
Corresponds to the JSON property variantSetId
| 3424 3425 3426 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3424 def variant_set_id @variant_set_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 | # File 'generated/google/apis/genomics_v1/classes.rb', line 3431 def update!(**args) @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) @calls = args[:calls] if args.key?(:calls) @created = args[:created] if args.key?(:created) @end = args[:end] if args.key?(:end) @filter = args[:filter] if args.key?(:filter) @id = args[:id] if args.key?(:id) @info = args[:info] if args.key?(:info) @names = args[:names] if args.key?(:names) @quality = args[:quality] if args.key?(:quality) @reference_bases = args[:reference_bases] if args.key?(:reference_bases) @reference_name = args[:reference_name] if args.key?(:reference_name) @start = args[:start] if args.key?(:start) @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) end |