Class: ViennaRna::Package::Fold
- Defined in:
- lib/vienna_rna/package/fold.rb
Instance Attribute Summary collapse
-
#mfe ⇒ Object
readonly
Returns the value of attribute mfe.
-
#mfe_rna ⇒ Object
readonly
Returns the value of attribute mfe_rna.
-
#structure ⇒ Object
readonly
Returns the value of attribute structure.
Attributes inherited from Base
Instance Method Summary collapse
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 Attribute Details
#mfe ⇒ Object (readonly)
Returns the value of attribute mfe.
8 9 10 |
# File 'lib/vienna_rna/package/fold.rb', line 8 def mfe @mfe end |
#mfe_rna ⇒ Object (readonly)
Returns the value of attribute mfe_rna.
8 9 10 |
# File 'lib/vienna_rna/package/fold.rb', line 8 def mfe_rna @mfe_rna end |
#structure ⇒ Object (readonly)
Returns the value of attribute structure.
8 9 10 |
# File 'lib/vienna_rna/package/fold.rb', line 8 def structure @structure end |
Instance Method Details
#post_process ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vienna_rna/package/fold.rb', line 10 def post_process structure = ViennaRna::Global::Parser.rnafold_mfe_structure(@response) unless data.seq.length == structure.length raise "Sequence: '#{data.seq}'\nStructure: '#{structure}'" else @mfe_rna, @structure, @mfe = RNA.from_string(data.seq, structure), structure, ViennaRna::Global::Parser.rnafold_mfe(@response) end end |