biopython v1.71.0 Bio.Restriction.Restriction.RestrictionBatch
Class for operations on more than one enzyme.
Link to this section Summary
Functions
Overide ‘+’ for use with sets
Override ‘/‘ operator to use as search method
Override ‘+=’ for use with sets
Initialize empty RB or pre-fill with enzymes (from supplier)
Override division with reversed operands to use as search method
As truediv_, with reversed operands
Override Python 3 division operator to use as search method
Add a restriction enzyme to the restriction batch
Add restriction enzyme to batch without checking its type
Add all enzymes from a given supplier to batch
List the names of the enzymes of the RestrictionBatch
List the current suppliers for the restriction batch
List the enzymes of the RestrictionBatch as list of strings
Evaluate enzyme (name) and return it (as RestrictionType)
Check if enzyme is in batch and return it
Return if enzyme (name) is a known enzyme
Filter enzymes in batch with supplied function
Remove enzyme from restriction batch
Return a dic of cutting sites in the seq for the batch enzymes
Print a list of supplier codes
Extract enzymes of a certain class and put in new RestrictionBatch
Return a dicionary with supplier codes
Link to this section Functions
Overide ‘+’ for use with sets.
b + other -> new RestrictionBatch.
Override ‘/‘ operator to use as search method.
Override ‘+=’ for use with sets.
b += other -> add other to b, check the type of other.
Initialize empty RB or pre-fill with enzymes (from supplier).
Override division with reversed operands to use as search method.
As truediv_, with reversed operands.
Like rdiv.
Override Python 3 division operator to use as search method.
Like div.
Add a restriction enzyme to the restriction batch.
Safe set.add method. Verify that other is a RestrictionType or can be evaluated to a RestrictionType. Raise a ValueError if other can not be evaluated to a RestrictionType.
Add restriction enzyme to batch without checking its type.
Add all enzymes from a given supplier to batch.
letter represents the suppliers as defined in the dictionary RestrictionDictionary.suppliers Returns None. Raise a KeyError if letter is not a supplier code.
List the names of the enzymes of the RestrictionBatch.
Return a list of the name of the elements of the batch.
List the current suppliers for the restriction batch.
Return a sorted list of the suppliers which have been used to create the batch.
List the enzymes of the RestrictionBatch as list of strings.
Give all the names of the enzymes in B sorted alphabetically.
Evaluate enzyme (name) and return it (as RestrictionType).
If y is a RestrictionType return y. If y can be evaluated to a RestrictionType return eval(y). Raise a ValueError in all other case.
Check if enzyme is in batch and return it.
If add is True and enzyme is not in batch add enzyme to batch. If add is False (which is the default) only return enzyme. If enzyme is not a RestrictionType or can not be evaluated to a RestrictionType, raise a ValueError.
Return if enzyme (name) is a known enzyme.
True if y or eval(y) is a RestrictionType.
Filter enzymes in batch with supplied function.
The new batch will contain only the enzymes for which func return True.
Remove enzyme from restriction batch.
Safe set.remove method. Verify that other is a RestrictionType or can be evaluated to a RestrictionType. Raise a ValueError if other can not be evaluated to a RestrictionType. Raise a KeyError if other is not in B.
Return a dic of cutting sites in the seq for the batch enzymes.
Print a list of supplier codes.
Extract enzymes of a certain class and put in new RestrictionBatch.
B.split(class, [class.name = True]) -> new RestrictionBatch.
It works but it is slow, so it has really an interest when splitting over multiple conditions.
Return a dicionary with supplier codes.
Letter code for the suppliers.