Module: ViennaRna::Parser
- Defined in:
- lib/vienna_rna/modules/parser.rb
Constant Summary collapse
- REGEXP =
{ mfe: / \(\s*(-?\d*\.\d*)\)$/ }
Class Method Summary collapse
Class Method Details
.rnafold_mfe(response) ⇒ Object
12 13 14 |
# File 'lib/vienna_rna/modules/parser.rb', line 12 def rnafold_mfe(response) response.split(/\n/)[1].match(REGEXP[:mfe])[1].to_f end |
.rnafold_mfe_structure(response) ⇒ Object
8 9 10 |
# File 'lib/vienna_rna/modules/parser.rb', line 8 def rnafold_mfe_structure(response) response.split(/\n/)[1].split(/\s+/).first end |