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, line 25
def validate_2( a, b )
  if (a == 0) or (b == 0)
    raise ArgumentError, "Enzyme index notation only.  0 values are illegal."
  end

  if a == nil and b == nil
    raise ArgumentError, "Neither strand has a cut.  Ambiguous."
  end
end