Class PeptideVariantsParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.identification.advanced.PeptideVariantsParameters
- All Implemented Interfaces:
Serializable
Preferences for the allowed variants in peptide sequences.
- Author:
- Marc Vaudel
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum indicating all three variant types -
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the amino acid substitution matrix to use.returns the fixed variantsintReturns the number of amino acid deletions allowed.intReturns the number of amino acid insertions allowed.intReturns the number of amino acid substitutions allowed.intReturns the number of amino acid swaps allowed.static PeptideVariantsParametersReturns the parameters corresponding to no variants allowed.intReturns the total number of variants allowed.Returns a short description of the parameters.Returns whether the specific variant count limitations should be used.booleanisSameAs(PeptideVariantsParameters peptideVariantsParameters) Indicates whether another peptide variant parameters is the same as this one.voidsetAaSubstitutionMatrix(AaSubstitutionMatrix aaSubstitutionMatrix) Sets the amino acid substitution matrix to use.voidsetFixedVariants(HashMap<String, ArrayList<SNPElement>> fixedVariants) sets the fixed variantsvoidsetnAaDeletions(int nAaDeletions) Sets the number of amino acid deletions allowed.voidsetnAaInsertions(int nAaInsertions) Sets the number of amino acid insertions allowed.voidsetnAaSubstitutions(int nAaSubstitutions) Sets the number of amino acid substitutions allowed.voidsetnAaSwap(int nAaSwap) Sets the number of amino acid swaps allowed.voidsetnVariants(int nVariants) Sets the total number of variants allowed.voidsetVatiantType(PeptideVariantsParameters.VariantType variantType) Sets whether the specific variant count limitations should be used.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
PeptideVariantsParameters
public PeptideVariantsParameters()Constructor.
-
-
Method Details
-
getnAaDeletions
public int getnAaDeletions()Returns the number of amino acid deletions allowed.- Returns:
- the number of amino acid deletions allowed
-
setnAaDeletions
public void setnAaDeletions(int nAaDeletions) Sets the number of amino acid deletions allowed.- Parameters:
nAaDeletions- the number of amino acid deletions allowed
-
getnAaInsertions
public int getnAaInsertions()Returns the number of amino acid insertions allowed.- Returns:
- the number of amino acid insertions allowed
-
setnAaInsertions
public void setnAaInsertions(int nAaInsertions) Sets the number of amino acid insertions allowed.- Parameters:
nAaInsertions- the number of amino acid insertions allowed
-
getnAaSubstitutions
public int getnAaSubstitutions()Returns the number of amino acid substitutions allowed.- Returns:
- the number of amino acid substitutions allowed
-
setnAaSubstitutions
public void setnAaSubstitutions(int nAaSubstitutions) Sets the number of amino acid substitutions allowed.- Parameters:
nAaSubstitutions- the number of amino acid substitutions allowed
-
getnAaSwap
public int getnAaSwap()Returns the number of amino acid swaps allowed.- Returns:
- the number of amino acid swaps allowed
-
setnAaSwap
public void setnAaSwap(int nAaSwap) Sets the number of amino acid swaps allowed.- Parameters:
nAaSwap- the number of amino acid swaps allowed
-
getAaSubstitutionMatrix
Returns the amino acid substitution matrix to use.- Returns:
- the amino acid substitution matrix to use
-
setAaSubstitutionMatrix
Sets the amino acid substitution matrix to use.- Parameters:
aaSubstitutionMatrix- the amino acid substitution matrix to use
-
getVariantType
Returns whether the specific variant count limitations should be used.- Returns:
- a boolean indicating whether the specific variant count limitations should be used
-
setVatiantType
Sets whether the specific variant count limitations should be used.- Parameters:
variantType- a boolean indicating whether the specific variant count limitations should be used
-
getnVariants
public int getnVariants()Returns the total number of variants allowed.- Returns:
- the total number of variants allowed
-
setnVariants
public void setnVariants(int nVariants) Sets the total number of variants allowed.- Parameters:
nVariants- the total number of variants allowed
-
isSameAs
Indicates whether another peptide variant parameters is the same as this one.- Parameters:
peptideVariantsParameters- the other parameters- Returns:
- whether another peptide variant parameters is the same as this one
-
getShortDescription
Returns a short description of the parameters.- Returns:
- a short description of the parameters
-
getNoVariantParameters
Returns the parameters corresponding to no variants allowed.- Returns:
- the parameters corresponding to no variants allowed
-
getFixedVariants
returns the fixed variants- Returns:
- fixed variants dictionary
-
setFixedVariants
sets the fixed variants- Parameters:
fixedVariants- fixed variants dictionary
-