Class: Qu::Pcr::Primer3
- Inherits:
-
Object
- Object
- Qu::Pcr::Primer3
- Defined in:
- lib/qu/pcr/primer3.rb
Instance Attribute Summary collapse
-
#para ⇒ Object
Returns the value of attribute para.
Instance Method Summary collapse
-
#initialize(custom_para = nil) ⇒ Primer3
constructor
A new instance of Primer3.
- #out ⇒ Object
Constructor Details
#initialize(custom_para = nil) ⇒ Primer3
Returns a new instance of Primer3.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/qu/pcr/primer3.rb', line 10 def initialize(custom_para=nil) @para = {} # set default values PRIMER3_OPTIONS.each_pair do |opt, value| @para[opt] = value end # set custom value unless custom_para.nil? custom_para.each_pair do |opt, value| @para[opt] = value end end end |
Instance Attribute Details
#para ⇒ Object
Returns the value of attribute para.
8 9 10 |
# File 'lib/qu/pcr/primer3.rb', line 8 def para @para end |
Instance Method Details
#out ⇒ Object
27 28 29 30 31 |
# File 'lib/qu/pcr/primer3.rb', line 27 def out p3_out = Cmdwrapper::primer3_core(@para) return Primer3Parser.new(p3_out).records end |