35 #ifndef OPENMS_TRANSFORMATIONS_FEATUREFINDER_FEATUREFINDERIDENTIFICATIONALGORITHM_H 36 #define OPENMS_TRANSFORMATIONS_FEATUREFINDER_FEATUREFINDERIDENTIFICATIONALGORITHM_H 52 class IsotopeDistribution;
65 std::vector<PeptideIdentification> peptides,
66 std::vector<ProteinIdentification> proteins,
67 std::vector<PeptideIdentification> peptides_ext,
68 std::vector<ProteinIdentification> proteins_ext,
91 typedef std::multimap<double, PeptideIdentification*>
RTMap;
93 typedef std::map<Int, std::pair<RTMap, RTMap> >
ChargeMap;
134 void updateMembers_()
override;
150 } feature_filter_quality_;
159 } feature_filter_peptides_;
167 const String& seq1 = p1.
getHits()[0].getSequence().toString();
168 const String& seq2 = p2.
getHits()[0].getSequence().toString();
173 if (charge1 == charge2)
177 return charge1 < charge2;
216 void generateTransitions_(
const String& peptide_id,
double mz,
Int charge,
222 void getRTRegions_(
ChargeMap& peptide_data, std::vector<RTRegion>& rt_regions)
const;
224 void annotateFeaturesFinalizeAssay_(
226 std::map<
Size, std::vector<PeptideIdentification*> >& feat_ids,
232 void ensureConvexHulls_(
Feature& feature);
234 void postProcess_(
FeatureMap& features,
bool with_external_ids);
237 void statistics_(
const FeatureMap& features)
const;
243 bool external =
false)
const;
245 void checkNumObservations_(
Size n_pos,
Size n_neg,
const String& note =
"")
const;
247 void getUnbiasedSample_(
const std::multimap<
double, std::pair<Size, bool> >& valid_obs,
248 std::map<Size, Int>& training_labels);
250 void getRandomSample_(std::map<Size, Int>& training_labels);
254 void filterFeaturesFinalizeAssay_(
Feature& best_feature,
double best_quality,
255 const double quality_cutoff);
257 void filterFeatures_(
FeatureMap& features,
bool classified);
QualityType getOverallQuality() const
Non-mutable access to the overall quality.
TargetedExperiment & getLibrary()
Definition: FeatureFinderIdentificationAlgorithm.h:83
double svm_quality_cutoff
Definition: FeatureFinderIdentificationAlgorithm.h:125
std::multimap< double, PeptideIdentification * > RTMap
mapping: RT (not necessarily unique) -> pointer to peptide
Definition: FeatureFinderIdentificationAlgorithm.h:91
A more convenient string class.
Definition: String.h:57
bool operator()(const PeptideIdentification &p1, const PeptideIdentification &p2)
Definition: FeatureFinderIdentificationAlgorithm.h:164
TransformationDescription trafo_external_
TransformationDescription trafo_; // RT transformation (to range 0-1)
Definition: FeatureFinderIdentificationAlgorithm.h:209
double mapping_tolerance_
Definition: FeatureFinderIdentificationAlgorithm.h:108
ChargeMap ids
Definition: FeatureFinderIdentificationAlgorithm.h:140
Size n_internal_features_
Definition: FeatureFinderIdentificationAlgorithm.h:206
bool operator()(const Feature &f1, const Feature &f2)
Definition: FeatureFinderIdentificationAlgorithm.h:186
double start
Definition: FeatureFinderIdentificationAlgorithm.h:139
Helper struct for a collection of mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:109
A container for features.
Definition: FeatureMap.h:93
const std::vector< PeptideHit > & getHits() const
returns the peptide hits as const
Definition: FeatureFinderIdentificationAlgorithm.h:54
The MRMFeatureFinder finds and scores peaks of transitions that co-elute.
Definition: MRMFeatureFinderScoring.h:93
const PeakMap & getChromatograms() const
Definition: FeatureFinderIdentificationAlgorithm.h:78
Definition: IsotopeDistribution.h:72
PeakMap chrom_data_
Definition: FeatureFinderIdentificationAlgorithm.h:199
FeatureFinderAlgorithmPickedHelperStructs::MassTraces MassTraces
Definition: FeatureFinderIdentificationAlgorithm.h:88
StringList svm_predictor_names_
Definition: FeatureFinderIdentificationAlgorithm.h:123
const std::vector< PeptideIdentification > & getPeptideIdentifications() const
returns a const reference to the PeptideIdentification vector
region in RT in which a peptide elutes:
Definition: FeatureFinderIdentificationAlgorithm.h:137
double min_peak_width_
Definition: FeatureFinderIdentificationAlgorithm.h:116
Size n_internal_peps_
Definition: FeatureFinderIdentificationAlgorithm.h:101
bool operator()(const Feature &feature)
Definition: FeatureFinderIdentificationAlgorithm.h:155
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
Size n_isotopes_
Definition: FeatureFinderIdentificationAlgorithm.h:111
String elution_model_
Definition: FeatureFinderIdentificationAlgorithm.h:119
Size n_external_features_
Definition: FeatureFinderIdentificationAlgorithm.h:207
predicate for filtering features by assigned peptides:
Definition: FeatureFinderIdentificationAlgorithm.h:153
bool mz_window_ppm_
Definition: FeatureFinderIdentificationAlgorithm.h:106
PeakMap ms_data_
Definition: FeatureFinderIdentificationAlgorithm.h:198
std::map< AASequence, ChargeMap > PeptideMap
mapping: sequence -> charge -> internal/external ID information
Definition: FeatureFinderIdentificationAlgorithm.h:95
double rt_quantile_
Definition: FeatureFinderIdentificationAlgorithm.h:113
String svm_xval_out_
Definition: FeatureFinderIdentificationAlgorithm.h:124
const PeakMap & getMSData() const
Definition: FeatureFinderIdentificationAlgorithm.h:75
double isotope_pmin_
Definition: FeatureFinderIdentificationAlgorithm.h:110
double rt_window_
Definition: FeatureFinderIdentificationAlgorithm.h:104
double getRT() const
returns the RT of the MS2 spectrum where the identification occurred
PeakMap & getMSData()
Definition: FeatureFinderIdentificationAlgorithm.h:74
std::map< double, std::pair< Size, Size > > svm_probs_internal_
SVM probability -> number of pos./neg. features (for FDR calculation):
Definition: FeatureFinderIdentificationAlgorithm.h:203
MRMFeatureFinderScoring feat_finder_
Definition: FeatureFinderIdentificationAlgorithm.h:211
ProgressLogger prog_log_
Definition: FeatureFinderIdentificationAlgorithm.h:213
Size svm_n_parts_
Definition: FeatureFinderIdentificationAlgorithm.h:126
const TargetedExperiment & getLibrary() const
Definition: FeatureFinderIdentificationAlgorithm.h:84
std::map< String, double > isotope_probs_
Definition: FeatureFinderIdentificationAlgorithm.h:210
const ProgressLogger & getProgressLogger() const
Definition: FeatureFinderIdentificationAlgorithm.h:81
predicate for filtering features by overall quality:
Definition: FeatureFinderIdentificationAlgorithm.h:144
An LC-MS feature.
Definition: Feature.h:70
double peak_width_
Definition: FeatureFinderIdentificationAlgorithm.h:115
String candidates_out_
Definition: FeatureFinderIdentificationAlgorithm.h:130
ProgressLogger & getProgressLogger()
Definition: FeatureFinderIdentificationAlgorithm.h:80
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:73
TargetedExperiment library_
Definition: FeatureFinderIdentificationAlgorithm.h:200
In-Memory representation of a mass spectrometry experiment.
Definition: MSExperiment.h:77
CoordinateType getRT() const
Returns the RT coordinate (index 0)
Definition: Peak2D.h:208
PeakMap & getChromatograms()
Definition: FeatureFinderIdentificationAlgorithm.h:77
PeptideMap peptide_map_
Definition: FeatureFinderIdentificationAlgorithm.h:99
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
FeatureFinderAlgorithmPickedHelperStructs::MassTrace MassTrace
Definition: FeatureFinderIdentificationAlgorithm.h:87
comparison functor for (unassigned) peptide IDs
Definition: FeatureFinderIdentificationAlgorithm.h:162
comparison functor for features
Definition: FeatureFinderIdentificationAlgorithm.h:184
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:54
bool operator()(const Feature &feature)
Definition: FeatureFinderIdentificationAlgorithm.h:146
A description of a targeted experiment containing precursor and production ions.
Definition: TargetedExperiment.h:64
Size n_external_peps_
Definition: FeatureFinderIdentificationAlgorithm.h:102
double signal_to_noise_
Definition: FeatureFinderIdentificationAlgorithm.h:117
double svm_min_prob_
Definition: FeatureFinderIdentificationAlgorithm.h:122
Size svm_n_samples_
Definition: FeatureFinderIdentificationAlgorithm.h:127
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:91
std::map< Int, std::pair< RTMap, RTMap > > ChargeMap
mapping: charge -> internal/external: (RT -> pointer to peptide)
Definition: FeatureFinderIdentificationAlgorithm.h:93
std::map< String, std::pair< RTMap, RTMap > > PeptideRefRTMap
mapping: peptide ref. -> int./ext.: (RT -> pointer to peptide)
Definition: FeatureFinderIdentificationAlgorithm.h:97
int Int
Signed integer type.
Definition: Types.h:102
double mz_window_
Definition: FeatureFinderIdentificationAlgorithm.h:105
std::multiset< double > svm_probs_external_
SVM probabilities for "external" features (for FDR calculation):
Definition: FeatureFinderIdentificationAlgorithm.h:205
Size debug_level_
Definition: FeatureFinderIdentificationAlgorithm.h:132
Represents the peptide hits for a spectrum.
Definition: PeptideIdentification.h:62
Helper struct for mass traces used in FeatureFinderAlgorithmPicked.
Definition: FeatureFinderAlgorithmPickedHelperStructs.h:79
Represents a peptide (amino acid sequence)
Definition: TargetedExperimentHelper.h:451