\App\Domain\Sequence\InterfacesRestrictionEnzymeInterface

Interface RestrictionEnzymeInterface - substances that can "cut" a DNA strand into two or more fragments along special sites called restriction sites. They are an important tool in recombinant DNA technology.

Summary

Methods
Constants
setEnzyme()
getEnzyme()
setSequenceManager()
parseEnzyme()
cutSeq()
getPattern()
getCutPos()
getLength()
findRestEn()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setEnzyme()

setEnzyme() 

Sets a new enzyme element

setSequenceManager()

setSequenceManager(\App\Domain\Sequence\Service\SequenceManager  $sequenceManager) 

Sets a sequence object

Parameters

\App\Domain\Sequence\Service\SequenceManager $sequenceManager

parseEnzyme()

parseEnzyme(string  $sName, string  $sPattern, string  $sCutpos, string  $sMake = "custom") 

It creates a new Enzyme object and initializes its properties accordingly.

If passed with make = 'custom', object will be added to aRestEnzimDB. If not, the function will attemp to retrieve data from aRestEnzimDB. If unsuccessful in retrieving data, it will return an error flag.

Parameters

string $sName
string $sPattern
string $sCutpos
string $sMake

Throws

\Exception

cutSeq()

cutSeq(string  $options = "N") : array

Cuts a DNA sequence into fragments using the restriction enzyme object.

Parameters

string $options

May be "N" or "O". If "N", the sequence is cut using the patpos() group of methods (no overlapping patterns). If "O", the sequence is cut using the patposo() group of methods (with overlapping patterns). If omitted, this defaults to "N".

Throws

\Exception

Returns

array —

An array of fragments (substrings of the parameter sequence)

getPattern()

getPattern(string  $RestEn_Name) : string

Returns the pattern associated with a given restriction endonuclease.

Parameters

string $RestEn_Name

Returns

string —

The sequence pattern (string) recognized by the given restriction enzyme.

getCutPos()

getCutPos(string  $RestEn_Name) : integer

Returns the cutting position of the restriction enzyme object.

Parameters

string $RestEn_Name

Returns

integer —

Returns the cutting position (an integer) of the restriction enzyme object.

getLength()

getLength(string  $RestEn_Name = "") : integer

Returns the length of the cutting pattern of the restriction enzyme object.

Parameters

string $RestEn_Name

Returns

integer —

The length (integer) of the restriction pattern recognized by the enzyme.

findRestEn()

findRestEn(string  $sPattern = null, integer  $iCutpos = null, integer  $iPlen = null) : array

A powerful method for searching our database of endonucleases for a particular restriction enzyme exhibiting certain properties like pattern, cutting position, and length, or combinations thereof.

5 Cases: pattern only, cutpos only, patternlength only, pattern and cutpos, cutpos and patternlength

Parameters

string $sPattern

The pattern of the restriction enzyme we wish to look for.

integer $iCutpos

The cutting position of the restriction enzyme we wish to look for.

integer $iPlen

The length of the restriction enzyme we wish to look for.

Throws

\Exception

Returns

array —

A list of restriction enyzmes that meet the criteria specified by the $pattern, $cutpos, and $plen parameters.