Class: Qu::Pcr::Primer3

Inherits:
Object
  • Object
show all
Defined in:
lib/qu/pcr/primer3.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#paraObject

Returns the value of attribute para.



8
9
10
# File 'lib/qu/pcr/primer3.rb', line 8

def para
  @para
end

Instance Method Details

#outObject



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