class Bio::RestrictionEnzyme::DoubleStranded::CutLocationPairInEnzymeNotation
Inherits from DoubleStranded::CutLocationPair
, stores the cut location pair in enzyme notation instead of 0-based.
Protected Instance Methods
validate_2( a, b )
click to toggle source
# File lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb 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