public class CleavageSiteMatcher extends Object
The formal definition of the pattern defining the site is:
Site_altern := Site (or Site)*Site := Symbol_aa+ Cut-token Symbol_aa+Symbol_aa := AA | AA_class | TERM_classTERM_class := 'ont{'(AA | AA_class)+'}' | 'oct{'(AA | AA_class)+'}'AA := Symbol_aa_namb | Symbol_aa_ambSymbol_aa_namb := [AC-IK-TVWY]Symbol_aa_amb := [BJUXZ]AA_class := '[' AA ']'Cut-token := '|'[KR]|[^P] is the pattern for trypsin (cut after K or R except if followed by P) DEVD|X or R|K this cuts to the right of DEVD or between R and K DEBD|X[^P]
To control the matching at the beginning or end of the protein the ont{} and oct{} (or N term & or C term) can be used to match the term or the pattern in the brackets for example:ont{[^P]}X|S cuts ASPASS into A SPAS S
http://web.expasy.org/peptide_cutter/peptidecutter_enzymes.html| Constructor and Description |
|---|
CleavageSiteMatcher(String cleavageFormat)
Pattern has a special format:
Pn ...
|
CleavageSiteMatcher(String cleavageFormat,
com.google.common.base.Optional<Modification> nTermMod,
com.google.common.base.Optional<Modification> cTermMod) |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Optional<Modification> |
getCtermMod() |
String |
getFormat() |
com.google.common.base.Optional<Modification> |
getNtermMod() |
Pattern |
getRegex() |
boolean |
hasCtermMod() |
boolean |
hasNtermMod() |
String |
toString() |
public CleavageSiteMatcher(String cleavageFormat) throws CleavageSiteParseException
CleavageSiteParseException - if s is not a valid stringpublic CleavageSiteMatcher(String cleavageFormat, com.google.common.base.Optional<Modification> nTermMod, com.google.common.base.Optional<Modification> cTermMod) throws CleavageSiteParseException
cleavageFormat - the cleavage sitenTermMod - protease may modify peptide digest at ntermcTermMod - protease may modify peptide digest at CtermCleavageSiteParseException - if s is not a valid stringpublic String getFormat()
public Pattern getRegex()
public com.google.common.base.Optional<Modification> getNtermMod()
public com.google.common.base.Optional<Modification> getCtermMod()
public final boolean hasNtermMod()
public final boolean hasCtermMod()
Copyright © 2016. All Rights Reserved.