45 class PrecursorIonSelectionPreprocessing;
46 class PSProteinInference;
107 if (left.
getRT() < right.
getRT())
return true;
108 else if (left.
getRT() > right.
getRT())
return false;
134 void getNextPrecursors(std::vector<Int> & solution_indices, std::vector<PSLPFormulation::IndexTriple> & variable_indices, std::set<Int> & measured_variables,
161 std::vector<ProteinIdentification> & prot_ids,
176 std::vector<ProteinIdentification> & prot_ids,
183 std::cout <<
" LPSolver set to " << solver_ << std::endl;
195 return prot_id_counter_;
200 std::vector<PeptideIdentification> & pep_ids,
201 std::vector<ProteinIdentification> & prot_ids,
206 std::vector<ProteinIdentification> & prot_ids,
233 std::vector<PeptideIdentification>
filterPeptideIds_(std::vector<PeptideIdentification> & pep_ids);
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
A container for features.
Definition: FeatureMap.h:106
Base::iterator Iterator
Definition: FeatureMap.h:143
An LC-MS feature.
Definition: Feature.h:72
SOLVER
Definition: LPWrapper.h:131
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
This class implements protein inference for the precursor ion selection strategies.
Definition: PSProteinInference.h:48
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
This class implements the database preprocessing needing for precursor ion selection.
Definition: PrecursorIonSelectionPreprocessing.h:54
This class implements different precursor ion selection strategies.
Definition: PrecursorIonSelection.h:54
void getNextPrecursors(std::vector< Int > &solution_indices, std::vector< PSLPFormulation::IndexTriple > &variable_indices, std::set< Int > &measured_variables, FeatureMap &features, FeatureMap &new_features, UInt step_size, PSLPFormulation &ilp)
String mz_tolerance_unit_
precursor ion error tolerance unit (ppm or Da)
Definition: PrecursorIonSelection.h:250
std::vector< Size > fraction_counter_
stores the number of selected precursors per fraction
Definition: PrecursorIonSelection.h:246
void shiftDown_(FeatureMap &features, PrecursorIonSelectionPreprocessing &preprocessed_db, String protein_acc)
void simulateRun_(FeatureMap &features, std::vector< PeptideIdentification > &pep_ids, std::vector< ProteinIdentification > &prot_ids, PrecursorIonSelectionPreprocessing &preprocessed_db, String path, String precursor_path="")
Type
Precursor ion selection type (iterative, static, upshift, downshift, dynamic exclusion).
Definition: PrecursorIonSelection.h:75
@ ILP_IPS
Definition: PrecursorIonSelection.h:77
@ SPS
Definition: PrecursorIonSelection.h:78
@ DOWNSHIFT
Definition: PrecursorIonSelection.h:80
@ UPSHIFT
Definition: PrecursorIonSelection.h:79
@ IPS
Definition: PrecursorIonSelection.h:76
UInt min_pep_ids_
minimal number of peptides identified for a protein to be declared identified
Definition: PrecursorIonSelection.h:238
void convertPeptideIdScores_(std::vector< PeptideIdentification > &pep_ids)
double max_score_
maximal score in the FeatureMap
Definition: PrecursorIonSelection.h:240
void setLPSolver(LPWrapper::SOLVER solver)
Definition: PrecursorIonSelection.h:180
PrecursorIonSelection(const PrecursorIonSelection &source)
void checkForRequiredUserParams_(FeatureMap &features)
Adds user params, required for the use of IPS, to a feature map using default values.
Size x_variable_number_
Definition: PrecursorIonSelection.h:253
void simulateRun(FeatureMap &features, std::vector< PeptideIdentification > &pep_ids, std::vector< ProteinIdentification > &prot_ids, PrecursorIonSelectionPreprocessing &preprocessed_db, String path, PeakMap &experiment, String precursor_path="")
Simulate the iterative precursor ion selection.
~PrecursorIonSelection() override
UInt max_iteration_
maximal number of iterations
Definition: PrecursorIonSelection.h:252
double mz_tolerance_
precursor ion error tolerance
Definition: PrecursorIonSelection.h:248
std::vector< PeptideIdentification > filterPeptideIds_(std::vector< PeptideIdentification > &pep_ids)
UInt filterProtIds_(std::vector< ProteinIdentification > &prot_ids)
Groups protein identifications that cannot be distinguished by their peptide identifications.
void getNextPrecursors(FeatureMap &features, FeatureMap &next_features, UInt number)
Returns features with highest score for MS/MS.
const double & getMaxScore() const
void simulateILPBasedIPSRun_(FeatureMap &features, PeakMap &experiment, std::vector< PeptideIdentification > &pep_ids, std::vector< ProteinIdentification > &prot_ids, PrecursorIonSelectionPreprocessing &preprocessed_db, String output_path, String precursor_path="")
void getNextPrecursorsSeq(FeatureMap &features, FeatureMap &next_features, UInt number, double &rt)
void rescore_(FeatureMap &features, std::vector< PeptideIdentification > &new_pep_ids, PrecursorIonSelectionPreprocessing &preprocessed_db, PSProteinInference &protein_inference)
void updateMembers_() override
update members method from DefaultParamHandler to update the members
void rescore(FeatureMap &features, std::vector< PeptideIdentification > &new_pep_ids, std::vector< ProteinIdentification > &prot_ids, PrecursorIonSelectionPreprocessing &preprocessed_db, bool check_meta_values=true)
Change scoring of features using peptide identifications from all spectra.
LPWrapper::SOLVER getLPSolver()
Definition: PrecursorIonSelection.h:186
void shiftUp_(FeatureMap &features, PrecursorIonSelectionPreprocessing &preprocessed_db, String protein_acc)
const std::map< String, std::set< String > > & getPeptideProteinCounter()
Definition: PrecursorIonSelection.h:193
std::map< String, std::set< String > > prot_id_counter_
stores the peptide sequences for all protein identifications
Definition: PrecursorIonSelection.h:244
Type type_
precursor ion selection strategy
Definition: PrecursorIonSelection.h:242
void sortByTotalScore(FeatureMap &features)
Sort features by total score.
Definition: PrecursorIonSelection.h:118
void setMaxScore(const double &max_score)
LPWrapper::SOLVER solver_
Definition: PrecursorIonSelection.h:255
A more convenient string class.
Definition: String.h:60
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
static String number(double d, UInt n)
Definition: StringUtils.h:196
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Compare by score.
Definition: PrecursorIonSelection.h:104
bool operator()(Feature const &left, Feature const &right) const
Definition: PrecursorIonSelection.h:105
Compare by score.
Definition: PrecursorIonSelection.h:94
bool operator()(Feature const &left, Feature const &right) const
Definition: PrecursorIonSelection.h:95