103 void rescore(std::vector<PeptideIdentification>& peptide_ids,
180 const std::string& enzyme,
183 const std::string& score_type =
"q-value");
345 const std::vector<PeptideIdentification>& peptide_ids,
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
In-process Percolator: semi-supervised target/decoy rescoring with q-values + PEPs.
Definition Percolator.h:77
bool usedDefaultDirection() const
Whether the last rescore()/train() call replaced the learned model by the default direction.
static PercolatorModel loadModel(const std::string &filename)
Deserialize a PercolatorModel written by saveModel().
Size rescorePSMs(PeptideIdentificationList &peptide_ids, const StringList &feature_set, const std::string &enzyme, int min_charge, int max_charge, const std::string &score_type="q-value")
Rescore search engine PSMs in place on the standard Percolator (.pin) feature set.
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:390
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).
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
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