Package org.biojava.bio.proteomics
Class ProteaseManager
java.lang.Object
org.biojava.bio.proteomics.ProteaseManager
Registry and utility methods for Proteases.
- Author:
- Mark Schreiber
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProteasecreateProtease(String cleaveRes, boolean endoProtease, String name) static ProteasecreateProtease(String cleaveRes, boolean endoProtease, String notCleaveRes, String name) static ProteasecreateProtease(SymbolList cleaveRes, boolean endoProtease, String name) static ProteasecreateProtease(SymbolList cleaveRes, boolean endoProtease, SymbolList notCleaveRes, String name) Creates and registers a new Protease.static Setstatic ProteasegetArg_C()static ProteasegetAsp_N()static Proteasestatic ProteasegetCNBr()static Proteasestatic Proteasestatic ProteaseManagerstatic ProteasegetLys_C()static SetgetNames()static ProteasegetProteaseByName(String proteaseName) Gets a Protease instance by name.static Proteasestatic booleanregistered(String proteaseName) Has a Protease been registered with that name?static voidregisterProtease(Protease prot) Registers a protease and ensures its flyweight status
-
Field Details
-
TRYPSIN
- See Also:
-
LYS_C
- See Also:
-
ARG_C
- See Also:
-
ASP_N
- See Also:
-
GLU_C_BICARB
- See Also:
-
GLU_C_PHOS
- See Also:
-
CHYMOTRYP
- See Also:
-
CNBr
- See Also:
-
-
Constructor Details
-
ProteaseManager
public ProteaseManager()
-
-
Method Details
-
createProtease
public static Protease createProtease(SymbolList cleaveRes, boolean endoProtease, SymbolList notCleaveRes, String name) throws IllegalSymbolException, BioException Creates and registers a new Protease. In future the Protease can be recovered using the getProteaseByName() method.- Parameters:
cleaveRes- the cleavege residuesendoProtease- is it an endo protease?notCleaveRes- the exceptions to the cleavage residuesname- the name of the Protease- Returns:
- a reference to the new Protease
- Throws:
IllegalSymbolException- if the cleaveRes or notCleaveRes are not from the PROTEIN alphabetBioException- if a Protease with the same name already exists.
-
createProtease
public static Protease createProtease(SymbolList cleaveRes, boolean endoProtease, String name) throws IllegalSymbolException, BioException - Throws:
IllegalSymbolExceptionBioException
-
createProtease
public static Protease createProtease(String cleaveRes, boolean endoProtease, String notCleaveRes, String name) throws BioException, IllegalSymbolException - Throws:
BioExceptionIllegalSymbolException
-
createProtease
public static Protease createProtease(String cleaveRes, boolean endoProtease, String name) throws BioException, IllegalSymbolException - Throws:
BioExceptionIllegalSymbolException
-
registerProtease
Registers a protease and ensures its flyweight status- Parameters:
prot- the Protease to register- Throws:
BioException- if a Protease with the same name is already registered.
-
getProteaseByName
Gets a Protease instance by name.- Parameters:
proteaseName- the name of a registered Protease (case sensistive)- Returns:
- a fly-weight Protease instance
- Throws:
BioException- if no protease is registered by that name
-
getNames
- Returns:
- an unmodifiable Set of all the registered Protease names (Strings).
-
getAllProteases
- Returns:
- an unmodifiable set of all the registered Protease objects.
-
registered
Has a Protease been registered with that name?- Parameters:
proteaseName- the query- Returns:
- true if one has, false otherwise
-
getInstance
- Returns:
- a reference to the singleton instance of the ProteaseManager
-
getTrypsin
- Returns:
- a flywieght instance of Trypsin
-
getLys_C
- Returns:
- a flywieght instance of Lys-C
-
getArg_C
- Returns:
- a flywieght instance of Arg-C
-
getAsp_N
- Returns:
- a flywieght instance of Asp-N
-
getGlu_C_bicarbonate
- Returns:
- a flywieght instance of Glu_C_bicarbonate
-
getGlu_C_phosphate
- Returns:
- a flywieght instance of Glu_C_phosphate
-
getChymotrypsin
- Returns:
- a flywieght instance of Chymotrypsin
-
getCNBr
- Returns:
- a flywieght instance of CNBr
-