Class: Bio::Velvet::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-velvet/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#result_directoryObject

Returns the value of attribute result_directory.



118
119
120
# File 'lib/bio-velvet/runner.rb', line 118

def result_directory
  @result_directory
end

#velvetg_stderrObject

Returns the value of attribute velvetg_stderr.



117
118
119
# File 'lib/bio-velvet/runner.rb', line 117

def velvetg_stderr
  @velvetg_stderr
end

#velvetg_stdoutObject

Returns the value of attribute velvetg_stdout.



117
118
119
# File 'lib/bio-velvet/runner.rb', line 117

def velvetg_stdout
  @velvetg_stdout
end

#velveth_stderrObject

Returns the value of attribute velveth_stderr.



116
117
118
# File 'lib/bio-velvet/runner.rb', line 116

def velveth_stderr
  @velveth_stderr
end

#velveth_stdoutObject

Returns the value of attribute velveth_stdout.



116
117
118
# File 'lib/bio-velvet/runner.rb', line 116

def velveth_stdout
  @velveth_stdout
end

Instance Method Details

#contigs_pathObject

Path to the contigs.fa output from velvetg



126
127
128
# File 'lib/bio-velvet/runner.rb', line 126

def contigs_path
  File.join result_directory, 'contigs.fa'
end

#last_graph(options = nil) ⇒ Object

Return a Bio::Velvet::Graph object built from the LastGraph file. The options for parsing are as per Bio::Velvet::Graph#parse_from_file



137
138
139
# File 'lib/bio-velvet/runner.rb', line 137

def last_graph(options=nil)
  Bio::Velvet::Graph.parse_from_file(last_graph_path, options)
end

#last_graph_pathObject

Path to the LastGraph output from velvetg



121
122
123
# File 'lib/bio-velvet/runner.rb', line 121

def last_graph_path
  File.join result_directory, 'LastGraph'
end

#stats_pathObject

Path to the stats.txt output from velvetg



131
132
133
# File 'lib/bio-velvet/runner.rb', line 131

def stats_path
  File.join result_directory, 'stats.txt'
end