public class DualEnzyme extends Enzyme
Modifier and Type | Field and Description |
---|---|
static int |
CTERMINAL
The code for C-terminal position in the resultant peptide.
|
static int |
NTERMINAL
The code for N-terminal position in the resultant peptide.
|
C_TERM_ENZYMATIC, CTERM, ENTIRELY_NOT_ENZYMATIC, FULLY_ENZYMATIC, iCleavables, iCleavage, iMiscleavages, iPosition, iRestrict, iRestrictors, iTitle, N_TERM_ENZYMATIC, NTERM
Constructor and Description |
---|
DualEnzyme(String aTitle,
String aNtermCleavage,
String aCtermCleavage,
String aRestrict,
String aPosition)
This constructor allows you to specify all the information for this
enzyme.
|
DualEnzyme(String aTitle,
String aNtermCleavage,
String aCtermCleavage,
String aRestrict,
String aPosition,
int aMiscleavages)
This constructor allows you to specify all the information for this
enzyme plus the number of missed cleavages that this instance will allow.
|
Modifier and Type | Method and Description |
---|---|
Protein[] |
cleave(Protein aProtein)
This method is the focus of the Enzyme instance.
|
Object |
clone()
Provides a cloned version of this DualEnzyme.
|
char[] |
getCleavage()
Simple getter for the cleavable residues of the Enzyme.
|
char[] |
getCleavage(int aTerminus)
This method returns the residues that are used for cleavage at the respective
locations.
|
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.
|
static void |
main(String[] args)
Tests the DualEnzyme by digesting a hardcoded protein.
|
Protein[] |
oldCleave(Protein aProtein)
This cleave method will process sequence XDYRZ solely into
YR peptides.
|
void |
setCleavage(char[] aCleavage)
This method allows the caller to specify the cleavable residues.
|
void |
setCleavage(char[] aCleavage,
int aTerminus)
This method allows the caller to specify the cleavable residues.
|
void |
setCleavage(String aCleavage)
This method allows the caller to specify the cleavable residues.
|
void |
setCleavage(String aCleavage,
int aTerminus)
This method allows the caller to specify the cleavable residus.
|
String |
toString()
This method generates a String representation of the DualEnzyme,
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 DualEnzyme,
which is useful for displaying as useful information for the user or
during testing/debugging.
|
cleave, getMiscleavages, getPosition, getRestrict, getTitle, isEnzymaticProduct, setMiscleavages, setPosition, setRestrict, setRestrict, setTitle
public static final int NTERMINAL
public static final int CTERMINAL
public DualEnzyme(String aTitle, String aNtermCleavage, String aCtermCleavage, String aRestrict, String aPosition, int aMiscleavages)
aTitle
- String with the title (or name) for this enzyme.aNtermCleavage
- String composed of the residues after which cleavage
will occur at the N-terminus of the resultant peptide
(this String will be uppercased).aCtermCleavage
- String composed of the residues after which cleavage
will occur at the C-terminus of the resultant peptide
(this String will be uppercased).aRestrict
- String composed of the residues which inhibit cleavage
if present behind any of the cleavable residues (this String will be uppercased).aPosition
- String which should correspond to "Cterm" or "Nterm"
for each position respectively.aMiscleavages
- int with the number of supported missed cleavages.public DualEnzyme(String aTitle, String aNtermCleavage, String aCtermCleavage, String aRestrict, String aPosition)
aTitle
- String with the title (or name) for this enzyme.aNtermCleavage
- String composed of the residues after which cleavage
will occur at the N-terminus of the resultant peptide
(this String will be uppercased).aCtermCleavage
- String composed of the residues after which cleavage
will occur at the C-terminus of the resultant peptide
(this String will be uppercased).aRestrict
- String composed of the residues which inhibit cleavage
if present behind any of the cleavable residues (this String will be uppercased).aPosition
- String which should correspond to "Cterm" or "Nterm"
for each position respectively.public void setCleavage(char[] aCleavage)
setCleavage
in class Enzyme
aCleavage
- char[] with the cleavable residues
(in UPPER CASE!).public void setCleavage(String aCleavage)
setCleavage
in class Enzyme
aCleavage
- String with the continuous characters
corresponding to the cleavable residues.
Note that the String is uppercased.public void setCleavage(char[] aCleavage, int aTerminus)
aCleavage
- char[] with the cleavable residues
(in UPPER CASE!).aTerminus
- int with the code for the terminal position in
the resultant peptide. Can be 'NTERMINAL' or 'CTERMINAL'.public void setCleavage(String aCleavage, int aTerminus)
aCleavage
- String with the continuous characters
corresponding to the cleavable residues.
Note that the String is uppercased.aTerminus
- int with the code for the terminal position in
the resultant peptide. Can be 'NTERMINAL' or 'CTERMINAL'.public char[] getCleavage(int aTerminus)
aTerminus
- int with the code for the terminal position in
the resultant peptide. Can be 'NTERMINAL' or 'CTERMINAL'.public char[] getCleavage()
getCleavage
in class Enzyme
public Object clone()
public String toString()
public String toString(String aPrepend)
public Protein[] oldCleave(Protein aProtein)
aProtein
- Protein instance to cleave.public Protein[] cleave(Protein aProtein)
public int isEnzymaticProduct(String aParentSequence, int aStart, int aEnd)
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 static void main(String[] args)
args
- the argumentsCopyright © 2016. All rights reserved.