Class: Bio::Ngs::Illumina::MetaReads

Inherits:
Meta::Data show all
Defined in:
lib/bio/ngs/illumina/sample.rb

Instance Attribute Summary

Attributes inherited from Meta::Data

#metadata

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Meta::Data

#==, #[], #has_tag?, #has_value?, #name, #name=

Constructor Details

#initialize(name, metadata = {}) ⇒ MetaReads

Returns a new instance of MetaReads.



10
11
12
13
14
# File 'lib/bio/ngs/illumina/sample.rb', line 10

def initialize(name, ={})
  super(name, )
  [:type]=:file
  [:format]=:fastq
end

Class Method Details

.json_create(o) ⇒ Object



24
25
26
# File 'lib/bio/ngs/illumina/sample.rb', line 24

def self.json_create(o)
  me = new(o["name"], o["metadata"])
end

Instance Method Details

#to_json(*a) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/bio/ngs/illumina/sample.rb', line 16

def to_json(*a)
  {
    "json_class"   => self.class.name,
    "name"         => name,
    "metadata"     => 
  }.to_json(*a)
end