Class: ViennaRna::Package::Fftbor2d

Inherits:
EnergyGrid2d show all
Defined in:
lib/vienna_rna/package/fftbor2d.rb

Constant Summary collapse

BASE_FLAGS =
{
  S: :empty
}

Instance Attribute Summary

Attributes inherited from Base

#data, #response, #runtime

Instance Method Summary collapse

Methods inherited from EnergyGrid2d

aligned_distributions, #each, inherited, #inspect, #quick_plot, set_of_points

Methods inherited from Base

bootstrap, #debugger, exec_exists?, #exec_name, #exec_sequence_format, #initialize, method_added, #pre_run_check, run, #run, #run_with_hooks, #serialize, #stringify_flags

Constructor Details

This class inherits a constructor from ViennaRna::Package::Base

Instance Method Details

#distributionObject



20
21
22
# File 'lib/vienna_rna/package/fftbor2d.rb', line 20

def distribution
  response.split(/\n/).map { |line| line.split(/\t/) }
end

#run_command(flags = {}) ⇒ Object



10
11
12
13
14
15
16
17
18
# File 'lib/vienna_rna/package/fftbor2d.rb', line 10

def run_command(flags = {})
  ViennaRna.debugger { "Running #{exec_name} on #{data.inspect}" }

  "%s %s %s" % [
    exec_name, 
    stringify_flags(BASE_FLAGS.merge(self.class.const_defined?(:FLAGS) ? self.class.const_get(:FLAGS) : {}).merge(flags)), 
    data.temp_fa_file!
  ]
end