OpenMS
Loading...
Searching...
No Matches
NuXLRescoring::ScoreGap Struct Reference

Best score of the hits of a spectrum and the best score of a different (unmodified) peptide sequence. More...

#include <OpenNuXL/include/NuXLRescoring.h>

Public Member Functions

void add (float score, std::string_view sequence)
 
float bestOtherThan (std::string_view sequence) const
 best score of a sequence other than sequence (-inf if there is none)
 

Public Attributes

float best = -std::numeric_limits<float>::infinity()
 
float second = -std::numeric_limits<float>::infinity()
 best score of a sequence other than best_sequence
 
std::string_view best_sequence
 

Detailed Description

Best score of the hits of a spectrum and the best score of a different (unmodified) peptide sequence.

Fed every hit scored for the spectrum in the search, in any order. bestOtherThan() then gives the exact best score of a sequence other than the given one, independent of the order of the hits.

Member Function Documentation

◆ add()

void add ( float  score,
std::string_view  sequence 
)
inline

◆ bestOtherThan()

float bestOtherThan ( std::string_view  sequence) const
inline

best score of a sequence other than sequence (-inf if there is none)

References NuXLRescoring::ScoreGap::best, NuXLRescoring::ScoreGap::best_sequence, and NuXLRescoring::ScoreGap::second.

Member Data Documentation

◆ best

float best = -std::numeric_limits<float>::infinity()

◆ best_sequence

std::string_view best_sequence

◆ second

float second = -std::numeric_limits<float>::infinity()

best score of a sequence other than best_sequence

Referenced by NuXLRescoring::ScoreGap::add(), and NuXLRescoring::ScoreGap::bestOtherThan().