Class: Wrnap::Package::Rna2dfold

Inherits:
EnergyGrid2d show all
Defined in:
lib/wrnap/package/rna2dfold.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #flags, #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, #inspect

Methods included from Global::Yaml

#deserialize, #serialize

Methods included from Global::Chainer

included

Methods included from Global::Runner

included

Constructor Details

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

Instance Method Details

#distributionObject



22
23
24
# File 'lib/wrnap/package/rna2dfold.rb', line 22

def distribution
  response.split(/\n/)[6..-1].map { |line| line.split(/\t/).at_indexes([0, 1, 2, 6]) }
end

#run_command(flags) ⇒ Object



12
13
14
15
16
17
18
19
20
# File 'lib/wrnap/package/rna2dfold.rb', line 12

def run_command(flags)
  Wrnap.debugger { "Running RNA2Dfold on #{data.inspect}" }

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