Class: Wrnap::Package::FoldConstrained
- Defined in:
- lib/wrnap/package/fold_constrained.rb
Instance Attribute Summary collapse
-
#ensemble_energy ⇒ Object
readonly
Returns the value of attribute ensemble_energy.
-
#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
#data, #flags, #response, #runtime
Instance Method Summary collapse
Methods inherited from Base
bootstrap, #debugger, #initialize, #inspect
Methods included from Global::Yaml
Methods included from Global::Chainer
Methods included from Global::Runner
Constructor Details
This class inherits a constructor from Wrnap::Package::Base
Instance Attribute Details
#ensemble_energy ⇒ Object (readonly)
Returns the value of attribute ensemble_energy.
11 12 13 |
# File 'lib/wrnap/package/fold_constrained.rb', line 11 def ensemble_energy @ensemble_energy end |
#mfe ⇒ Object (readonly)
Returns the value of attribute mfe.
11 12 13 |
# File 'lib/wrnap/package/fold_constrained.rb', line 11 def mfe @mfe end |
#mfe_rna ⇒ Object (readonly)
Returns the value of attribute mfe_rna.
11 12 13 |
# File 'lib/wrnap/package/fold_constrained.rb', line 11 def mfe_rna @mfe_rna end |
#structure ⇒ Object (readonly)
Returns the value of attribute structure.
11 12 13 |
# File 'lib/wrnap/package/fold_constrained.rb', line 11 def structure @structure end |
Instance Method Details
#post_process ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/wrnap/package/fold_constrained.rb', line 13 def post_process structure = Wrnap::Global::Parser.rnafold_mfe_structure(response) unless data.len == structure.length raise "Sequence: '#{data.seq}'\nStructure: '#{structure}'" else @mfe_rna, @structure, @mfe = RNA.from_string(data.seq, structure), structure, Wrnap::Global::Parser.rnafold_mfe(response) end end |