99 void rescore(std::vector<PeptideIdentification>& peptide_ids,
273 const std::vector<PeptideIdentification>& peptide_ids,
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
In-process Percolator: semi-supervised target/decoy rescoring with q-values + PEPs.
Definition Percolator.h:76
static PercolatorModel loadModel(const std::string &filename)
Deserialize a PercolatorModel written by saveModel().
Percolator & operator=(const Percolator &)=delete
PercolatorModel train(const RescoreInput &input)
Train a Percolator model on feature rows. No scoring.
static void fillPINCompatibleFields(const std::vector< PeptideIdentification > &peptide_ids, bool flatten_hits, RescoreInput &input)
Fill PIN-compatible optional fields on a RescoreInput.
std::unique_ptr< Impl > impl_
Definition Percolator.h:318
double getPi0() const
Pi0 (null fraction) from the last rescore()/score() call.
RescoreOutput score(const RescoreInput &input, const PercolatorModel &model)
Score feature rows using a pre-trained model. No training.
const std::vector< std::vector< double > > & getSvmWeights() const
SVM weights trained in the last rescore()/train() call.
RescoreOutput rescore(const RescoreInput &input)
Rescore a feature matrix domain-agnostically.
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
static void saveModel(const PercolatorModel &model, const std::string &filename)
Serialize a PercolatorModel to a plain-text file.
Percolator(const Percolator &)=delete
void rescore(std::vector< PeptideIdentification > &peptide_ids, const StringList &feature_names={})
Rescore PSMs in place. Domain-specific convenience wrapper over rescore(RescoreInput).
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Trained Percolator model: averaged SVM weights in raw feature space.
Definition PercolatorTypes.h:93
Output from Percolator::rescore. Aligned 1:1 with RescoreInput::features.
Definition PercolatorTypes.h:70