Class: Rafflesia::VariantQueryRecord
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::VariantQueryRecord
- Defined in:
- lib/rafflesia/genomes/variant_query_record.rb
Constant Summary collapse
- HASH_ATTRS =
{ alt: :alt, chrom: :chrom, filter: :filter, id: :id, info: :info, pos: :pos, qual: :qual, ref: :ref, samples: :samples }.freeze
Instance Attribute Summary collapse
-
#alt ⇒ Object
Returns the value of attribute alt.
-
#chrom ⇒ Object
Returns the value of attribute chrom.
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#id ⇒ Object
Returns the value of attribute id.
-
#info ⇒ Object
Returns the value of attribute info.
-
#pos ⇒ Object
Returns the value of attribute pos.
-
#qual ⇒ Object
Returns the value of attribute qual.
-
#ref ⇒ Object
Returns the value of attribute ref.
-
#samples ⇒ Object
Returns the value of attribute samples.
Instance Method Summary collapse
-
#initialize(json) ⇒ VariantQueryRecord
constructor
A new instance of VariantQueryRecord.
Constructor Details
#initialize(json) ⇒ VariantQueryRecord
Returns a new instance of VariantQueryRecord.
31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 31 def initialize(json) super() hash = self.class.normalize(json) @alt = hash[:alt] @chrom = hash[:chrom] @filter = hash[:filter] @id = hash[:id] @info = hash[:info] @pos = hash[:pos] @qual = hash[:qual] @ref = hash[:ref] @samples = (hash[:samples] || []) end |
Instance Attribute Details
#alt ⇒ Object
Returns the value of attribute alt.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def alt @alt end |
#chrom ⇒ Object
Returns the value of attribute chrom.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def chrom @chrom end |
#filter ⇒ Object
Returns the value of attribute filter.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def filter @filter end |
#id ⇒ Object
Returns the value of attribute id.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def id @id end |
#info ⇒ Object
Returns the value of attribute info.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def info @info end |
#pos ⇒ Object
Returns the value of attribute pos.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def pos @pos end |
#qual ⇒ Object
Returns the value of attribute qual.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def qual @qual end |
#ref ⇒ Object
Returns the value of attribute ref.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def ref @ref end |
#samples ⇒ Object
Returns the value of attribute samples.
20 21 22 |
# File 'lib/rafflesia/genomes/variant_query_record.rb', line 20 def samples @samples end |