33 float best = -std::numeric_limits<float>::infinity();
34 float second = -std::numeric_limits<float>::infinity();
37 void add(
float score, std::string_view sequence)
70 std::array<std::array<Size, 2>, 2>& counts);
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Best score of the hits of a spectrum and the best score of a different (unmodified) peptide sequence.
Definition NuXLRescoring.h:32
float best
Definition NuXLRescoring.h:33
void add(float score, std::string_view sequence)
Definition NuXLRescoring.h:37
float bestOtherThan(std::string_view sequence) const
best score of a sequence other than sequence (-inf if there is none)
Definition NuXLRescoring.h:51
std::string_view best_sequence
Definition NuXLRescoring.h:35
float second
best score of a sequence other than best_sequence
Definition NuXLRescoring.h:34
Helpers of NuXL:rescoring: the delta score, the training hits of the self-trained ion likelihood,...
Definition NuXLRescoring.h:24
static constexpr double ION_LLR_WEIGHT
Definition NuXLRescoring.h:74
static constexpr double DELTA_WEIGHT
Weights of the native score (PXD048145, RNA-UV): see rescoreHits()
Definition NuXLRescoring.h:73
static constexpr double TRAIN_FDR
FDR threshold of the training hits of the self-trained ion likelihood.
Definition NuXLRescoring.h:55
static void rescoreHits(PeptideIdentificationList &peptide_ids)
NuXL:rescoring native: score = NuXL:score + DELTA_WEIGHT * NuXL:delta_score (cross-links only)
Definition NuXLRescoring.cpp:61
static std::array< std::vector< Size >, 2 > confidentHitsPerHalf(const PeptideIdentificationList &peptide_ids, double fdr, std::array< std::array< Size, 2 >, 2 > &counts)
Training hits of self-trained models.
Definition NuXLRescoring.cpp:15