public class ScoreUtilities extends Object
Constructor and Description |
---|
ScoreUtilities() |
Modifier and Type | Method and Description |
---|---|
static int |
compareValues(Double score1,
Double score2,
boolean higherScoreBetter)
Compares the values of two values considered to be scores.
|
static String |
findAccessionInObo(String scoreAccession)
Checks the PSI-MS obo and returns the name of the accession.
|
static boolean |
isHigherScoreBetter(String scoreAccession,
boolean oboLookup)
Returns for a given score accession, whether a higher score is better.
|
public static String findAccessionInObo(String scoreAccession)
scoreAccession
- public static boolean isHigherScoreBetter(String scoreAccession, boolean oboLookup)
If the score is not known and oboLookup is true, the score is searched in the PSI-MS obo.
If nothing about the score is found, true will be returned.
scoreAccession
- public static int compareValues(Double score1, Double score2, boolean higherScoreBetter)
null and NaN is always considered to be worse than any other value.
score1
- score2
- higherScoreBetter
- whether a higher score value is considered to be betterCopyright © 2015. All Rights Reserved.