99 return features.empty() && !feature_matrix.empty() ? is_decoy.size() : features.size();
105 return !features.empty() ? features[i].data() : feature_matrix.data() + i * feature_names.size();
112 std::optional<std::uint64_t>
salt;
114 double train_fdr = 0.01;
115 std::vector<double> c_values = {0.1, 1.0, 10.0};
116 std::string learner =
"svm";
122 std::string representative =
"model";
125 int decoy_databases = 1;
126 std::vector<std::string> zero_features = {
"enzInt"};
133 int mlp_warm_epochs = 3;
137 bool mlp_crossfit =
true;
141 int mlp_norm_min_decoys = 1000;
145 enum class Role :
int { TARGET = 0, ESTIMATING_DECOY = 1, TRAINING_DECOY = 2 };
155 bool considered =
false;
156 double search_score = 0.0;
158 double q_value = 1.0;
166 bool flagged =
false;
192 double audit_multivariate_auc = 0.5;
193 bool audit_flagged =
false;
194 double audit_proxy_ratio = 0.0;
195 Size audit_decoys = 0, audit_proxy = 0;
198 Size target_stems = 0, decoy_stems = 0, training_decoys = 0, estimating_decoys = 0;
202 Size decoy_stems_second_set = 0, decoy_stems_both_sets = 0;
206 std::uint64_t salt = 0;
216 static std::vector<double>
seqStepQValues(
const std::vector<bool>& is_decoy,
double factor,
double plus_one);
Percolator-RESET: semi-supervised rescoring with FDR control at the peptide (stem) level.
Definition PercolatorReset.h:76
std::vector< std::string > used_features
features the learner used (non-constant, not zeroed)
Definition PercolatorReset.h:204
std::vector< std::string > rounds
training summary per round: chosen C+, C-, held-out discoveries, positives
Definition PercolatorReset.h:197
std::vector< double > scores
per row: score of the final model (all rows, also those that lost a competition)
Definition PercolatorReset.h:172
std::string learner_settings
learner "mlp": its settings (for reports); empty for "svm"
Definition PercolatorReset.h:208
Role
Role of a row's stem (decoy stems by their coin)
Definition PercolatorReset.h:145
static bool isTrainingDecoy(std::uint64_t salt, const std::string &stem)
The coin of a decoy stem: true = training decoy. Exposed for tests.
std::vector< double > stem_q_values
per row: q-value of the row's stem (Stem::q_value)
Definition PercolatorReset.h:186
std::vector< AuditFeature > audit
Definition PercolatorReset.h:191
std::string stem
unmodified sequence
Definition PercolatorReset.h:150
static std::vector< double > seqStepQValues(const std::vector< bool > &is_decoy, double factor, double plus_one)
std::string learner
Definition PercolatorReset.h:207
static Output run(const Input &input, const Options &options)
Runs RESET; throws Exception::InvalidValue on malformed input or without decoy stems.
std::string name
Definition PercolatorReset.h:163
std::vector< Stem > stems
all stems (considered or not)
Definition PercolatorReset.h:190
std::vector< double > psm_q_values
Definition PercolatorReset.h:180
std::optional< std::uint64_t > salt
coin salt (never pick the best of several salts); unset = a fresh random salt, recorded in Output::sa...
Definition PercolatorReset.h:112
std::vector< Role > roles
per row: role of the row's stem
Definition PercolatorReset.h:188
std::vector< double > psm_peps
Definition PercolatorReset.h:184
std::vector< double > weights
linear learner: raw-feature weights of the final model, bias last
Definition PercolatorReset.h:205
Definition PercolatorReset.h:162
Definition PercolatorReset.h:110
Definition PercolatorReset.h:170
One considered or dropped stem.
Definition PercolatorReset.h:149
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19