Utility class for score type handling in identification and quantification workflows.
More...
|
| static bool | isScoreType (const std::string &score_name, IDType type) |
| | Checks if the given score name corresponds to a specific ID score type.
|
| |
| static IDType | parseIDType (const std::string &score_type) |
| | Converts a string representation of an ID score type to an IDType enum.
|
| |
| static bool | isHigherBetter (IDType type) |
| | Determines whether a higher score is better for the given ID score type.
|
| |
| static std::vector< std::string > | getAllIDScoreNames () |
| | Gets a vector of all ID score names that are used in OpenMS.
|
| |
| static const std::set< std::string > & | getIDNamesForType (IDType type) |
| | Gets the set of known names for a specific ID score type.
|
| |
| static bool | findIDTypeByName (const std::string &name, IDType &type) |
| | Finds the ID score type for a given score name.
|
| |
| static std::string | normalizeScoreName (const std::string &score_name) |
| | Normalizes a score name by removing the "_score" suffix if present.
|
| |
| static bool | isKnownScoreType (const std::string &score_name) |
| | Checks if a score name is a known score type (after normalization).
|
| |
Utility class for score type handling in identification and quantification workflows.
This class provides centralized handling of score types used in peptide/protein identification, quantification, and PTM localization. It defines the hierarchy of score types and provides utility methods for score type conversion, comparison, and lookup.
The identification score type hierarchy is:
- RAW: Raw search engine scores (e.g., XTandem hyperscore, Mascot score)
- RAW_EVAL: E-value based scores (e.g., expect score)
- PP: Posterior probability
- PEP: Posterior error probability
- FDR: False discovery rate
- QVAL: Q-value
| static IDType parseIDType |
( |
const std::string & |
score_type | ) |
|
|
static |
Converts a string representation of an ID score type to an IDType enum.
This method attempts to map a given string, representing a score type, to the corresponding IDType enum value. It handles various common representations of score types, including those with or without the "_score" suffix, and ignores case and special characters like '-', '_', and ' '.
- Parameters
-
| [in] | score_type | The string representation of the score type. |
- Returns
- The corresponding IDType enum value.
- Exceptions
-