OpenMS
Loading...
Searching...
No Matches
PercolatorTypes.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, OpenMS Inc. -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: Timo Sachsenberg $
6// $Authors: Timo Sachsenberg $
7// --------------------------------------------------------------------------
8
9#pragma once
10
14
15#include <vector>
16
17namespace OpenMS
18{
26 struct OPENMS_DLLAPI RescoreInput
27 {
30 std::vector<std::vector<double>> features;
32 std::vector<bool> is_decoy;
38 std::vector<int> cv_group_keys;
41
62 std::vector<int> scan_numbers;
63 std::vector<int> spec_file_numbers;
64 std::vector<double> exp_masses;
65 std::vector<double> calc_masses;
66 };
67
69 struct OPENMS_DLLAPI RescoreOutput
70 {
71 std::vector<double> scores;
72 std::vector<double> q_values;
73 std::vector<double> peps;
74 };
75
92 struct OPENMS_DLLAPI PercolatorModel
93 {
95 int format_version = 1;
102 std::vector<double> weights;
109 std::string normalizer_type;
111 int seed = 0;
112 };
113}
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
std::vector< double > peps
posterior error probability per row
Definition PercolatorTypes.h:73
std::vector< double > scores
SVM discriminant score per row.
Definition PercolatorTypes.h:71
std::vector< double > calc_masses
Definition PercolatorTypes.h:65
std::vector< int > scan_numbers
Optional per-row PIN-compatible fields.
Definition PercolatorTypes.h:62
std::vector< double > q_values
q-value per row
Definition PercolatorTypes.h:72
std::vector< bool > is_decoy
Target (false) or decoy (true) label per row.
Definition PercolatorTypes.h:32
std::vector< std::vector< double > > features
Definition PercolatorTypes.h:30
std::vector< int > cv_group_keys
Definition PercolatorTypes.h:38
std::vector< int > spec_file_numbers
Definition PercolatorTypes.h:63
std::vector< double > exp_masses
Definition PercolatorTypes.h:64
StringList feature_names
Names aligned 1:1 with feature columns; used for logging only.
Definition PercolatorTypes.h:40
std::string normalizer_type
Definition PercolatorTypes.h:109
std::vector< double > weights
Size = n_features + 1. The last entry is the bias.
Definition PercolatorTypes.h:102
Trained Percolator model: averaged SVM weights in raw feature space.
Definition PercolatorTypes.h:93
Input to domain-agnostic Percolator::rescore.
Definition PercolatorTypes.h:27
Output from Percolator::rescore. Aligned 1:1 with RescoreInput::features.
Definition PercolatorTypes.h:70