Class: ViennaRna::Package::Fftbor2d

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

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, #to_csv, #to_csv!

Methods inherited from Base

bootstrap, #debugger, #initialize, #serialize

Methods included from Global::ChainExtensions

included

Methods included from Global::RunExtensions

included

Constructor Details

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

Instance Method Details

#distributionObject



17
18
19
# File 'lib/vienna_rna/package/fftbor2d.rb', line 17

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

#run_command(flags) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/vienna_rna/package/fftbor2d.rb', line 7

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

  "%s %s %s" % [
    exec_name, 
    stringify_flags(flags),
    data.temp_fa_file!
  ]
end