\App\Domain\Sequence\ServiceRestrictionEnzymeManager

Class RestrictionEnzymeManager - 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
Properties
Constants
__construct()
setEnzyme()
getEnzyme()
setSequenceManager()
parseEnzyme()
cutSeq()
getPattern()
getCutPos()
getLength()
findRestEn()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
oTreatment()
nTreatment()
posTraitment()
fetchPatternOnly()
fetchPatternAndCutpos()
fetchCutpos()
fetchLength()
fetchCutposAndPlen()
$aRestEnzimDB
$enzyme
$sequenceManager
N/A

Properties

$aRestEnzimDB

$aRestEnzimDB : array

Type

array

$sequenceManager

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

Type

\App\Domain\Sequence\Service\SequenceManager

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.

oTreatment()

oTreatment() : array

Cuts the sequence with option "O"

Throws

\Exception

Returns

array

nTreatment()

nTreatment() : array

Cuts the sequence with option "N"

Throws

\Exception

Returns

array

posTraitment()

posTraitment(array  $aFragment, array  $aPos, \App\Domain\Sequence\Entity\Sequence  $oSequence) 

Fetchs insite a Patpos array

Parameters

array $aFragment
array $aPos
\App\Domain\Sequence\Entity\Sequence $oSequence

fetchPatternOnly()

fetchPatternOnly(string  $sPattern) : array

Parameters

string $sPattern

Returns

array

fetchPatternAndCutpos()

fetchPatternAndCutpos(string  $sPattern, integer  $iCutpos) : array

Parameters

string $sPattern
integer $iCutpos

Returns

array

fetchCutpos()

fetchCutpos(  $sCutpos) : array

Parameters

$sCutpos

Throws

\Exception

Returns

array

fetchLength()

fetchLength(integer  $iPlen) : array

Parameters

integer $iPlen

Returns

array

fetchCutposAndPlen()

fetchCutposAndPlen(integer  $iCutpos, integer  $iPlen) : array

Parameters

integer $iCutpos
integer $iPlen

Returns

array