OpenMS
IDScoreSwitcherAlgorithm.h File Reference
#include <OpenMS/DATASTRUCTURES/DefaultParamHandler.h>
#include <OpenMS/CONCEPT/Exception.h>
#include <OpenMS/CONCEPT/LogStream.h>
#include <OpenMS/KERNEL/ConsensusMap.h>
#include <OpenMS/METADATA/PeptideIdentificationList.h>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
Include dependency graph for IDScoreSwitcherAlgorithm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IDScoreSwitcherAlgorithm
 This class is used to switch identification scores within identification or consensus feature maps. More...
 
struct  IDScoreSwitcherAlgorithm::ScoreSearchResult
 Structure to hold score detection results for any ScoreType.
More...
 
struct  IDScoreSwitcherAlgorithm::IDSwitchResult
 Structure holding score switching information for IDScoreSwitcherAlgorithm. More...
 

Namespaces

 OpenMS
 Main OpenMS namespace.
 

Class Documentation

◆ OpenMS::IDScoreSwitcherAlgorithm::ScoreSearchResult

struct OpenMS::IDScoreSwitcherAlgorithm::ScoreSearchResult

Structure to hold score detection results for any ScoreType.

Collaboration diagram for IDScoreSwitcherAlgorithm::ScoreSearchResult:
[legend]
Class Members
bool is_main_score_type True if the main score is already of the requested score type.
String score_name Name of score to use (main score name if is_main_score_type=true, meta value name if found in meta values, empty if not found anywhere)

◆ OpenMS::IDScoreSwitcherAlgorithm::IDSwitchResult

struct OpenMS::IDScoreSwitcherAlgorithm::IDSwitchResult

Structure holding score switching information for IDScoreSwitcherAlgorithm.

This structure contains both the original and requested score details, including score names, their orientation (whether higher scores are better), and score types before and after the switch. It also includes a flag to indicate if the main score has been switched. Used to switch back to the original score if needed.

Collaboration diagram for IDScoreSwitcherAlgorithm::IDSwitchResult:
[legend]
Class Members
bool original_score_higher_better The name of the original score used before the switch.
String original_score_name
ScoreType original_score_type whether a higher original score is better
bool requested_score_higher_better the type of the original score
String requested_score_name the type of the requested score
ScoreType requested_score_type whether a higher requested score is better
bool score_switched