Package Bio :: Package Restriction :: Module Restriction :: Class RestrictionType
[hide private]
[frames] | no frames]

Type RestrictionType

source code

object --+    
         |    
      type --+
             |
            RestrictionType
Known Subclasses:

RestrictionType. Type from which derives all enzyme classes.

Implement the operator methods.

Instance Methods [hide private]
RestrictionType instance
__init__(name, bases='', dct=())
Not intended to be used in normal operation.
source code
RestrictionBatch()
__add__(RE, other)
if other is an enzyme returns a batch of the two enzymes.
source code
list
__div__(RE, other)
RE/other returns RE.search(other).
source code
list
__rdiv__(RE, other)
other/RE returns RE.search(other).
source code
list
__truediv__(RE, other)
RE/other returns RE.search(other).
source code
list
__rtruediv__(RE, other)
other/RE returns RE.search(other).
source code
list
__floordiv__(RE, other)
RE//other returns RE.catalyse(other).
source code
list
__rfloordiv__(RE, other)
other//RE returns RE.catalyse(other).
source code
str
__str__(RE)
return the name of the enzyme.
source code
str
__repr__(RE)
used with eval or exec will instantiate the enzyme.
source code
int
__len__(RE)
length of the recognition site.
source code
 
__hash__(cls)
hash(x)
source code
 
__eq__(cls, other)
RE == other -> bool
source code
 
__ne__(cls, other)
RE != other -> bool.
source code
 
__rshift__(cls, other)
RE >> other -> bool.
source code
 
__mod__(cls, other)
a % b -> bool.
source code
 
__ge__(cls, other)
a >= b -> bool.
source code
 
__gt__(cls, other)
a > b -> bool.
source code
 
__le__(cls, other)
a <= b -> bool.
source code
 
__lt__(cls, other)
a < b -> bool.
source code

Inherited from type: __call__, __delattr__, __getattribute__, __new__, __setattr__, __subclasses__, mro

Inherited from object: __format__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from type: __abstractmethods__, __base__, __bases__, __basicsize__, __dictoffset__, __flags__, __instancecheck__, __itemsize__, __mro__, __name__, __subclasscheck__, __weakrefoffset__

Inherited from object: __class__

Method Details [hide private]

__init__(name, bases='', dct=())
(Constructor)

source code 

Not intended to be used in normal operation. The enzymes are instantiated when importing the module.

see below.

Returns: RestrictionType instance
Overrides: object.__init__

__add__(RE, other)
(Addition operator)

source code 
if other is an enzyme returns a batch of the two enzymes. if other is already a RestrictionBatch add enzyme to it.
Returns: RestrictionBatch()

__str__(RE)
(Informal representation operator)

source code 
return the name of the enzyme.
Returns: str
Overrides: object.__str__

__repr__(RE)
(Representation operator)

source code 
used with eval or exec will instantiate the enzyme.
Returns: str
Overrides: object.__repr__

__hash__(cls)
(Hashing function)

source code 
hash(x)

Overrides: object.__hash__
(inherited documentation)

__eq__(cls, other)
(Equality operator)

source code 

RE == other -> bool

True if RE and other are the same enzyme.

Specifically this checks they are the same Python object.

Overrides: type.__eq__

__ne__(cls, other)

source code 

RE != other -> bool. isoschizomer strict, same recognition site, same restriction -> False all the other-> True

WARNING - This is not the inverse of the __eq__ method.

Overrides: type.__ne__

__rshift__(cls, other)

source code 

RE >> other -> bool.

neoschizomer : same recognition site, different restriction. -> True all the others : -> False

__mod__(cls, other)

source code 

a % b -> bool.

Test compatibility of the overhang of a and b. True if a and b have compatible overhang.

__ge__(cls, other)
(Greater-than-or-equals operator)

source code 

a >= b -> bool.

a is greater or equal than b if the a site is longer than b site. if their site have the same length sort by alphabetical order of their names.

Overrides: type.__ge__

__gt__(cls, other)
(Greater-than operator)

source code 

a > b -> bool.

sorting order:
  1. size of the recognition site.
  2. if equal size, alphabetical order of the names.
Overrides: type.__gt__

__le__(cls, other)
(Less-than-or-equals operator)

source code 

a <= b -> bool.

sorting order:
  1. size of the recognition site.
  2. if equal size, alphabetical order of the names.
Overrides: type.__le__

__lt__(cls, other)
(Less-than operator)

source code 

a < b -> bool.

sorting order:
  1. size of the recognition site.
  2. if equal size, alphabetical order of the names.
Overrides: type.__lt__