Class: Qu::Pcr::Product

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(seq = nil, tm = nil, opt_a = nil, size = nil, id = nil, penalty = nil) ⇒ Product



34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/qu/pcr.rb', line 34

def initialize(seq = nil, 
               tm = nil,
               opt_a = nil,
               size = nil,
               id = nil,
               penalty = nil)
  @tm = tm.to_f
  @size = size.to_i
  @opt_a = opt_a.to_f
  @seq = Bio::Sequence::NA.new(seq)
  @id = id.to_s
  @penalty = penalty.to_f
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def id
  @id
end

#opt_aObject (readonly)

Returns the value of attribute opt_a.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def opt_a
  @opt_a
end

#penaltyObject (readonly)

Returns the value of attribute penalty.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def penalty
  @penalty
end

#seqObject (readonly)

Returns the value of attribute seq.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def seq
  @seq
end

#sizeObject (readonly)

Returns the value of attribute size.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def size
  @size
end

#tmObject (readonly)

Returns the value of attribute tm.



33
34
35
# File 'lib/qu/pcr.rb', line 33

def tm
  @tm
end