Class: ViennaRna::Package::Population
- Defined in:
- lib/vienna_rna/package/population.rb
Defined Under Namespace
Classes: Population
Instance Attribute Summary collapse
-
#population_proportion_for_str_1 ⇒ Object
readonly
Returns the value of attribute population_proportion_for_str_1.
-
#population_proportion_str_2_from_str_1 ⇒ Object
readonly
Returns the value of attribute population_proportion_str_2_from_str_1.
Attributes inherited from Base
#data, #flags, #response, #runtime
Instance Method Summary collapse
Methods inherited from Base
bootstrap, #debugger, #initialize, #inspect, #serialize
Methods included from Global::ChainExtensions
Methods included from Global::RunExtensions
Constructor Details
This class inherits a constructor from ViennaRna::Package::Base
Instance Attribute Details
#population_proportion_for_str_1 ⇒ Object (readonly)
Returns the value of attribute population_proportion_for_str_1.
4 5 6 |
# File 'lib/vienna_rna/package/population.rb', line 4 def population_proportion_for_str_1 @population_proportion_for_str_1 end |
#population_proportion_str_2_from_str_1 ⇒ Object (readonly)
Returns the value of attribute population_proportion_str_2_from_str_1.
4 5 6 |
# File 'lib/vienna_rna/package/population.rb', line 4 def population_proportion_str_2_from_str_1 @population_proportion_str_2_from_str_1 end |
Instance Method Details
#post_process ⇒ Object
31 32 33 34 35 |
# File 'lib/vienna_rna/package/population.rb', line 31 def post_process time_points, proportion_str_2_from_str_1, proportion_for_str_1 = response.split(/\n/).map { |line| line.split(/\t/).map(&:to_f) }.transpose @population_proportion_str_2_from_str_1 = Population.new(time_points, proportion_str_2_from_str_1) @population_proportion_for_str_1 = Population.new(time_points, proportion_for_str_1) end |