Class: Bio::GFASTQC
- Inherits:
-
Object
- Object
- Bio::GFASTQC
- Defined in:
- lib/bio-gfastqc/gfastqc.rb
Instance Attribute Summary collapse
-
#base_file_names ⇒ Object
Returns the value of attribute base_file_names.
-
#config ⇒ Object
Returns the value of attribute config.
-
#data ⇒ Object
Returns the value of attribute data.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#output ⇒ Object
Returns the value of attribute output.
-
#step ⇒ Object
Returns the value of attribute step.
-
#tables ⇒ Object
Returns the value of attribute tables.
-
#type_images ⇒ Object
An array of names of images that must be reported into the html page.
-
#type_tables ⇒ Object
An array of names of tables that must be reported into the html page.
Instance Method Summary collapse
-
#initialize(options = OpenStruct.new) ⇒ GFASTQC
constructor
A new instance of GFASTQC.
- #samples ⇒ Object
- #use_groups? ⇒ Boolean
-
#use_pipengine? ⇒ Boolean
initialize.
- #use_sample_name? ⇒ Boolean
Constructor Details
#initialize(options = OpenStruct.new) ⇒ GFASTQC
Returns a new instance of GFASTQC.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 9 def initialize(=OpenStruct.new) @options = @config = YAML.load_file(.config) @data = Hash.new { |hash, key| hash[key] = Hash.new { |ihash, ikey| ihash[ikey] = {} } } @tables = Hash.new { |hash, key| hash[key] = Hash.new { |ihash, ikey| ihash[ikey] = {} } } @base_file_names = [] @base_file_names << .first #this must be mandatory @base_file_names << .second if .second # this can be optional @step = .step if .pipengine unless @config['resources'] && @config['resources']['output'] raise "Error: If you selected the compatible option -p/--pipengine, an 'output' tag must occour in your configuration file." end end #pipengine @output = get_output read_each_sample end |
Instance Attribute Details
#base_file_names ⇒ Object
Returns the value of attribute base_file_names.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def base_file_names @base_file_names end |
#config ⇒ Object
Returns the value of attribute config.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def config @config end |
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def data @data end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 7 def @options end |
#output ⇒ Object
Returns the value of attribute output.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def output @output end |
#step ⇒ Object
Returns the value of attribute step.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def step @step end |
#tables ⇒ Object
Returns the value of attribute tables.
4 5 6 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 4 def tables @tables end |
#type_images ⇒ Object
An array of names of images that must be reported into the html page
5 6 7 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 5 def type_images @type_images end |
#type_tables ⇒ Object
An array of names of tables that must be reported into the html page
6 7 8 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 6 def type_tables @type_tables end |
Instance Method Details
#samples ⇒ Object
43 44 45 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 43 def samples @config['samples'] end |
#use_groups? ⇒ Boolean
35 36 37 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 35 def use_groups? @options.groups end |
#use_pipengine? ⇒ Boolean
initialize
31 32 33 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 31 def use_pipengine? @options.pipengine end |
#use_sample_name? ⇒ Boolean
39 40 41 |
# File 'lib/bio-gfastqc/gfastqc.rb', line 39 def use_sample_name? @options.usename end |