public class PsmScoringPreferences extends Object implements Serializable
Constructor and Description |
---|
PsmScoringPreferences() |
Modifier and Type | Method and Description |
---|---|
void |
addScore(Integer advocateId,
Integer scoreId)
Adds a score for a given algorithm to the scoring preferences.
|
HashSet<Integer> |
getScoreForAlgorithm(Integer advocateId)
Returns the scores set for a given algorithm.
|
boolean |
isScoringNeeded(ArrayList<Integer> advocates)
Indicates whether a score computation is needed for the given advocates.
|
boolean |
isScoringNeeded(int advocate)
Indicates whether a score computation is needed for the given advocate.
|
boolean |
isTargetDecoyNeededForPsmScoring(ArrayList<Integer> advocates)
Indicates whether target decoy databases are needed for PSM scoring.
|
public void addScore(Integer advocateId, Integer scoreId)
advocateId
- the index of the algorithmscoreId
- the index of the scorepublic HashSet<Integer> getScoreForAlgorithm(Integer advocateId)
advocateId
- the index of the algorithmpublic boolean isScoringNeeded(int advocate)
advocate
- the index of the advocate of interestpublic boolean isScoringNeeded(ArrayList<Integer> advocates)
advocates
- the advocates of interestCopyright © 2015. All rights reserved.