Class SpectrumCountingParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.quantification.spectrum_counting.SpectrumCountingParameters
- All Implemented Interfaces:
Serializable
This class contains the spectrum counting parameters.
- Author:
- Marc Vaudel, Harald Barsnes
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.SpectrumCountingParameters(SpectrumCountingParameters otherSpectrumCountingPreferences) Creates new preferences based on other spectrum counting preferences. -
Method Summary
Modifier and TypeMethodDescriptionReturns the lowest validation level considered as an integer as indexed in the MatchValidationLevel enum.Indicates whether the spectrum counting index should be normalized.Returns the reference total mass to use for normalization.Returns the current spectrum counting method.getUnit()Returns the unit used for normalization.booleanisSameAs(SpectrumCountingParameters anotherSpectrumCountingPreferences) Compares two spectrum counting preferences.voidsetMatchValidationLevel(Integer matchValidationLevel) Sets the lowest validation level to consider as an integer as indexed in the MatchValidationLevel enum.voidsetNormalize(Boolean normalize) Sets whether the spectrum counting index should be normalized.voidsetReferenceMass(Double referenceMass) Sets the reference total mass to use for normalization.voidsetSelectedMethod(SpectrumCountingMethod selectedMethod) Set the current spectrum counting method.voidsetUnit(UnitOfMeasurement unit) Sets the unit used for normalization.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
SpectrumCountingParameters
public SpectrumCountingParameters()Default constructor. -
SpectrumCountingParameters
Creates new preferences based on other spectrum counting preferences.- Parameters:
otherSpectrumCountingPreferences- the other spectrum counting preferences
-
-
Method Details
-
getSelectedMethod
Returns the current spectrum counting method.- Returns:
- the current spectrum counting method
-
setSelectedMethod
Set the current spectrum counting method.- Parameters:
selectedMethod- the spectral counting method
-
getMatchValidationLevel
Returns the lowest validation level considered as an integer as indexed in the MatchValidationLevel enum.- Returns:
- the lowest validation level considered
-
setMatchValidationLevel
Sets the lowest validation level to consider as an integer as indexed in the MatchValidationLevel enum.- Parameters:
matchValidationLevel- the lowest validation level to consider
-
isSameAs
Compares two spectrum counting preferences.- Parameters:
anotherSpectrumCountingPreferences- another spectrum counting preferences- Returns:
- a boolean indicating whether the other spectrum counting preferences is the same as this one
-
getReferenceMass
Returns the reference total mass to use for normalization.- Returns:
- the reference total mass to use for normalization in μg
-
setReferenceMass
Sets the reference total mass to use for normalization.- Parameters:
referenceMass- the reference total mass to use for normalization in μg
-
getUnit
Returns the unit used for normalization.- Returns:
- the unit used for normalization
-
setUnit
Sets the unit used for normalization.- Parameters:
unit- the unit used for normalization
-
getNormalize
Indicates whether the spectrum counting index should be normalized.- Returns:
- true if the spectrum counting index should be normalized
-
setNormalize
Sets whether the spectrum counting index should be normalized.- Parameters:
normalize- a boolean indicating whether the spectrum counting index should be normalized
-