Class: Qu::Pcr::Product
- Inherits:
-
Object
- Object
- Qu::Pcr::Product
- Defined in:
- lib/qu/pcr.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#opt_a ⇒ Object
readonly
Returns the value of attribute opt_a.
-
#penalty ⇒ Object
readonly
Returns the value of attribute penalty.
-
#seq ⇒ Object
readonly
Returns the value of attribute seq.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#tm ⇒ Object
readonly
Returns the value of attribute tm.
Instance Method Summary collapse
-
#initialize(seq = nil, tm = nil, opt_a = nil, size = nil, id = nil, penalty = nil) ⇒ Product
constructor
A new instance of Product.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def id @id end |
#opt_a ⇒ Object (readonly)
Returns the value of attribute opt_a.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def opt_a @opt_a end |
#penalty ⇒ Object (readonly)
Returns the value of attribute penalty.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def penalty @penalty end |
#seq ⇒ Object (readonly)
Returns the value of attribute seq.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def seq @seq end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def size @size end |
#tm ⇒ Object (readonly)
Returns the value of attribute tm.
33 34 35 |
# File 'lib/qu/pcr.rb', line 33 def tm @tm end |