Class DigestionParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.identification.search.DigestionParameters
- All Implemented Interfaces:
Serializable
This class groups the parameters for the digestion of proteins.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for the different types of digestion.static enumEnum for the different types of enzyme specificity. -
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an enzyme.voidclear()Clears the parameters.voidClears the enzymes set including specificity and missed cleavages.static DigestionParametersclone(DigestionParameters digestionParameters) Clones the given parameters.Returns the cleavage parameters.static DigestionParametersReturns default digestion parameters.Returns the enzymes used for digestion in a list.Get the MyriMatch enzyme format.getnMissedCleavages(String enzymeName) Returns the number of allowed missed cleavages for the given enzyme.Returns a short description of the parameters.getSpecificity(String enzymeName) Returns the expected specificity of the given enzyme.Get the X! Tandem enzyme format.booleanReturns a boolean indicating whether enzyme settings were set.booleanisSameAs(DigestionParameters otherDigestionParameters) Returns a boolean indicating whether these digestion parameters are the same as the given other parameters.voidsetCleavageParameter(DigestionParameters.CleavageParameter cleavageParameter) Sets the cleavage parameters.voidsetEnzymes(ArrayList<Enzyme> enzymes) Sets the enzymes used for digestion.voidsetnMissedCleavages(String enzymeName, int enzymeMissedCleavages) Sets the number of allowed missed cleavages.voidsetSpecificity(String enzymeName, DigestionParameters.Specificity enzymeSpecificity) Sets the expected specificity of the enzyme.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
DigestionParameters
public DigestionParameters()Constructor for empty parameters.
-
-
Method Details
-
clone
Clones the given parameters.- Parameters:
digestionParameters- the parameters to clone- Returns:
- a new object containing the same parameters
-
getDefaultParameters
Returns default digestion parameters. Trypsin specific with two missed cleavages.- Returns:
- default digestion parameters
-
hasEnzymes
public boolean hasEnzymes()Returns a boolean indicating whether enzyme settings were set.- Returns:
- a boolean indicating whether enzyme settings were set
-
getEnzymes
Returns the enzymes used for digestion in a list.- Returns:
- the enzymes used for digestion in a list
-
setEnzymes
Sets the enzymes used for digestion.- Parameters:
enzymes- the enzymes used for digestion in a list
-
addEnzyme
Adds an enzyme. The specificity of the enzyme is set by default to specific and the number of allowed missed cleavages to 0.- Parameters:
enzyme- an enzyme used for digestion.
-
clear
public void clear()Clears the parameters. -
clearEnzymes
public void clearEnzymes()Clears the enzymes set including specificity and missed cleavages. -
getnMissedCleavages
Returns the number of allowed missed cleavages for the given enzyme. Null if not set.- Parameters:
enzymeName- the name of the enzyme- Returns:
- the number of allowed missed cleavages
-
setnMissedCleavages
Sets the number of allowed missed cleavages.- Parameters:
enzymeName- the name of the enzymeenzymeMissedCleavages- the number of allowed missed cleavages
-
getSpecificity
Returns the expected specificity of the given enzyme. Null if not set.- Parameters:
enzymeName- the name of the enzyme- Returns:
- the specificity
-
setSpecificity
Sets the expected specificity of the enzyme.- Parameters:
enzymeName- the name of the enzymeenzymeSpecificity- the expected specificity of the enzyme
-
getCleavageParameter
Returns the cleavage parameters.- Returns:
- the cleavage parameters
-
setCleavageParameter
Sets the cleavage parameters.- Parameters:
cleavageParameter- the cleavage parameters
-
getShortDescription
Returns a short description of the parameters.- Returns:
- a short description of the parameters
-
isSameAs
Returns a boolean indicating whether these digestion parameters are the same as the given other parameters.- Parameters:
otherDigestionParameters- the other digestion parameters- Returns:
- a boolean indicating whether these digestion parameters are the same as the given other parameters
-
getXTandemFormat
Get the X! Tandem enzyme format.- Returns:
- the enzyme X! Tandem format as String
-
getMyriMatchFormat
Get the MyriMatch enzyme format. In case multiple enzymes are present all possible cleavage sites will be included.- Returns:
- the enzyme MyriMatch format as String
-