Class: CagnutToolbox::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/cagnut_toolbox/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configure) ⇒ Util

Returns a new instance of Util.



5
6
7
8
# File 'lib/cagnut_toolbox/util.rb', line 5

def initialize configure
  @config = configure
  @toolbox = CagnutToolbox::Base.new
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/cagnut_toolbox/util.rb', line 3

def config
  @config
end

#toolboxObject

Returns the value of attribute toolbox.



3
4
5
# File 'lib/cagnut_toolbox/util.rb', line 3

def toolbox
  @toolbox
end

Instance Method Details

#qseq2fastq(dirs, order = 1) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/cagnut_toolbox/util.rb', line 10

def qseq2fastq dirs, order=1
  if check_files
    job_name, filename = toolbox.qseq2fastq dirs, order
    [job_name, filename, order+1]
  else
    [nil, nil, order]
  end
end