Class | Bio::RestrictionEnzyme::DoubleStranded::CutLocationPairInEnzymeNotation |
In: |
lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb
|
Parent: | CutLocationPair |
Inherits from DoubleStranded::CutLocationPair , stores the cut location pair in enzyme notation instead of 0-based.
# File lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb, line 25 25: def validate_2( a, b ) 26: if (a == 0) or (b == 0) 27: raise ArgumentError, "Enzyme index notation only. 0 values are illegal." 28: end 29: 30: if a == nil and b == nil 31: raise ArgumentError, "Neither strand has a cut. Ambiguous." 32: end 33: end