Class PsmScoringParameters
java.lang.Object
com.compomics.util.experiment.personalization.ExperimentObject
com.compomics.util.parameters.identification.advanced.PsmScoringParameters
- All Implemented Interfaces:
Serializable
Generic class for peptide spectrum match scoring.
- Author:
- Marc Vaudel
- See Also:
-
Field Summary
Fields inherited from class com.compomics.util.experiment.personalization.ExperimentObject
NO_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a score for a given algorithm to the scoring preferences.voidClears all scores.voidclearScores(Integer advocateId) Clears the score for the given algorithm.booleanequals(PsmScoringParameters otherPsmScoringPreferences) Returns true if the objects have identical settings.Returns the advocates with a specific scoring.intReturns the minimal number of decoys to include in a bin to set the bin size of the score histogram.Returns the default scores.getScoreForAlgorithm(int advocateId) Returns the scores set for a given algorithm.Returns a short description of the parameters.booleanisScoringNeeded(int advocate) Indicates whether a score computation is needed for the given advocate.booleanisScoringNeeded(ArrayList<Integer> advocates) Indicates whether a score computation is needed for the given advocates.booleanisTargetDecoyNeededForPsmScoring(ArrayList<Integer> advocates) Indicates whether target decoy databases are needed for PSM scoring.voidsetDecoysInFirstBin(Integer decoysInFirstBin) Sets the minimal number of decoys to include in a bin to set the bin size of the score histogram.Methods inherited from class com.compomics.util.experiment.personalization.ExperimentObject
addUrParam, asLong, clearParametersMap, getId, getUrParam, getUrParams, removeUrParam, setId, setUrParams
-
Constructor Details
-
PsmScoringParameters
public PsmScoringParameters()Constructor.
-
-
Method Details
-
addScore
Adds a score for a given algorithm to the scoring preferences.- Parameters:
advocateId- the index of the algorithmscoreId- the index of the score
-
clearScores
Clears the score for the given algorithm.- Parameters:
advocateId- the score for the given algorithm
-
clearAllScores
public void clearAllScores()Clears all scores. -
getScoreForAlgorithm
Returns the scores set for a given algorithm.- Parameters:
advocateId- the index of the algorithm- Returns:
- the index of the score
-
isScoringNeeded
public boolean isScoringNeeded(int advocate) Indicates whether a score computation is needed for the given advocate.- Parameters:
advocate- the index of the advocate of interest- Returns:
- a boolean indicating whether a score computation is needed
-
getAdvocates
Returns the advocates with a specific scoring.- Returns:
- the advocates with a specific scoring
-
isScoringNeeded
Indicates whether a score computation is needed for the given advocates.- Parameters:
advocates- the advocates of interest- Returns:
- a boolean indicating whether a score computation is needed
-
isTargetDecoyNeededForPsmScoring
Indicates whether target decoy databases are needed for PSM scoring.- Parameters:
advocates- the advocates of interest- Returns:
- a boolean indicating whether a score computation is needed
-
getShortDescription
Returns a short description of the parameters.- Returns:
- a short description of the parameters
-
equals
Returns true if the objects have identical settings.- Parameters:
otherPsmScoringPreferences- the PsmScoringPreferences to compare to- Returns:
- true if the objects have identical settings
-
getDefaultScores
Returns the default scores.- Returns:
- the default scores
-
getDecoysInFirstBin
public int getDecoysInFirstBin()Returns the minimal number of decoys to include in a bin to set the bin size of the score histogram.- Returns:
- the minimal number of decoys to include in a bin to set the bin size of the score histogram
-
setDecoysInFirstBin
Sets the minimal number of decoys to include in a bin to set the bin size of the score histogram.- Parameters:
decoysInFirstBin- the minimal number of decoys to include in a bin to set the bin size of the score histogram
-