Class: ViennaRna::Package::Rna2dfold
- Inherits:
-
EnergyGrid2d
- Object
- Base
- EnergyGrid2d
- ViennaRna::Package::Rna2dfold
- Defined in:
- lib/vienna_rna/package/rna2dfold.rb
Instance Attribute Summary
Attributes inherited from Base
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
Methods included from Global::RunExtensions
Constructor Details
This class inherits a constructor from ViennaRna::Package::Base
Instance Method Details
#distribution ⇒ Object
22 23 24 |
# File 'lib/vienna_rna/package/rna2dfold.rb', line 22 def distribution response.split(/\n/)[6..-1].map { |line| line.split(/\t/).at_indexes([0, 1, 2, 6]) } end |