C_TERM_ENZYMATIC, CTERM, ENTIRELY_NOT_ENZYMATIC, FULLY_ENZYMATIC, iCleavables, iCleavage, iMiscleavages, iPosition, iRestrict, iRestrictors, iTitle, N_TERM_ENZYMATIC, NTERM
Constructor and Description |
---|
RegExEnzyme(String aTitle,
String aCleavage,
String aRestrict,
String aPosition)
Create a new RegExEnzyme.
|
RegExEnzyme(String aTitle,
String aCleavage,
String aRestrict,
String aPosition,
int aMiscleavages)
Create a new RegExEnzyme.
|
Modifier and Type | Method and Description |
---|---|
Protein[] |
cleave(Protein aProtein)
This method is the focus of the Enzyme instance.
|
Object |
clone()
This method returns a deep copy of the current Enzyme.
|
char[] |
getCleavage()
Simple getter for the cleavagable residues of the Enzyme.
|
int |
isEnzymaticProduct(String aParentSequence,
int aStart,
int aEnd)
This method reports on the possibility that the presented subsequence
(represented by the start and end location in the parent) is the result
of enzymatic activity.
|
int |
isEnzymaticProduct(String aParentSequence,
String aSubSequence)
This method reports on the possibility that the presented subsequence is
the result of enzymatic activity.
|
void |
setCleavage(char[] aCleavage)
This method allows the caller to specify the cleavable residues.
|
void |
setCleavage(String aCleavage)
This method can be used to set the cleavage pattern for this RegExEnzyme.
|
String |
toString()
This method generates a String representation of the Enzyme, which is
useful for displaying as useful information for the user or during
testing/debugging.
|
String |
toString(String aPrepend)
This method generates a String representation of the Enzyme, which is
useful for displaying as useful information for the user or during
testing/debugging.
|
cleave, getMiscleavages, getPosition, getRestrict, getTitle, setMiscleavages, setPosition, setRestrict, setRestrict, setTitle
public RegExEnzyme(String aTitle, String aCleavage, String aRestrict, String aPosition)
aTitle
- the titleaCleavage
- the cleavage siteaRestrict
- the restricting amino acidsaPosition
- the positionpublic RegExEnzyme(String aTitle, String aCleavage, String aRestrict, String aPosition, int aMiscleavages)
aTitle
- the titleaCleavage
- the cleavage siteaRestrict
- the restricting amino acidsaPosition
- the positionaMiscleavages
- max number of miscleavagespublic void setCleavage(String aCleavage)
setCleavage
in class Enzyme
aCleavage
- a String representing the pattern for the cleavage site.PatternSyntaxException
- if the provided string could not be compiled as regular expression.public void setCleavage(char[] aCleavage)
Enzyme
setCleavage
in class Enzyme
aCleavage
- char[] with the cleavable residues (in UPPER
CASE!).public char[] getCleavage()
Enzyme
getCleavage
in class Enzyme
public String toString()
Enzyme
public String toString(String aPrepend)
Enzyme
public Object clone()
Enzyme
public int isEnzymaticProduct(String aParentSequence, String aSubSequence)
Enzyme
isEnzymaticProduct
in class Enzyme
aParentSequence
- String with the parent sequenceaSubSequence
- String with the subsequencepublic int isEnzymaticProduct(String aParentSequence, int aStart, int aEnd)
Enzyme
isEnzymaticProduct
in class Enzyme
aParentSequence
- String with the parent sequenceaStart
- int with the start of the subsequence relative to the
parent (first residue is '1').aEnd
- int with the end of the subsequence relative to the parentpublic Protein[] cleave(Protein aProtein)
Enzyme
Copyright © 2016. All rights reserved.