class Bio::BaseSpace::Variant
Variant
model.
Public Class Methods
new()
click to toggle source
Create a new Variant
instance.
# File lib/basespace/model/variant.rb, line 23 def initialize @swagger_types = { 'CHROM' => 'str', 'ALT' => 'str', 'ID' => 'list<Str>', 'SampleFormat' => 'dict', 'FILTER' => 'str', 'INFO' => 'dict', 'POS' => 'int', 'QUAL' => 'int', 'REF' => 'str', } @attributes = { 'CHROM' => nil, 'ALT' => nil, 'ID' => nil, 'SampleFormat' => nil, 'FILTER' => nil, 'INFO' => nil, 'POS' => nil, 'QUAL' => nil, 'REF' => nil, } end
Public Instance Methods
to_s()
click to toggle source
Return the genomic coordinate and ID of the variant as string.
# File lib/basespace/model/variant.rb, line 49 def to_s return "Variant - #{get_attr('CHROM')}: #{get_attr('POS')} id=#{get_attr('Id')}" end