11#define USE_SP_INTERFACE
31#include <unordered_map>
42 class MobilogramParquetConsumer;
133 const std::vector<OpenSwath::SwathMap>& swath_maps,
166 const std::vector<OpenSwath::SwathMap>& swath_maps,
168 bool ms1only =
false,
211 double rt_extraction_window);
261 const size_t feature_idx,
262 const Int64 feature_id,
263 const std::vector<std::string> & native_ids_detection,
264 const double det_intensity_ratio_score,
265 const double det_mi_ratio_score,
266 const std::vector<OpenSwath::SwathMap>& swath_maps,
267 const double drift_target,
bool SortDoubleDoublePairFirst(const std::pair< double, double > &left, const std::pair< double, double > &right)
Scoring of an spectrum at the peak apex of an chromatographic elution peak.
Definition DIAScoring.h:65
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Scoring of an elution peak using an exponentially modified gaussian distribution model.
Definition EmgScoring.h:35
A container for features.
Definition FeatureMap.h:82
The MRMFeatureFinder finds and scores peaks of transitions that co-elute.
Definition MRMFeatureFinderScoring.h:70
MRMTransitionGroup< MSChromatogram, TransitionType > MRMTransitionGroupType
Definition MRMFeatureFinderScoring.h:82
double merge_spectra_by_peak_width_fraction_
Definition MRMFeatureFinderScoring.h:292
bool strict_
Definition MRMFeatureFinderScoring.h:281
OpenSwath::LightProtein ProteinType
Definition MRMFeatureFinderScoring.h:78
bool apply_im_peak_picking_
Definition MRMFeatureFinderScoring.h:283
void mapExperimentToTransitionList(const OpenSwath::SpectrumAccessPtr &input, const OpenSwath::LightTargetedExperiment &transition_exp, TransitionGroupMapType &transition_group_map, TransformationDescription trafo, double rt_extraction_window)
Map the chromatograms to the transitions.
int add_up_spectra_
Definition MRMFeatureFinderScoring.h:288
double sn_win_len_
Definition MRMFeatureFinderScoring.h:296
double spacing_for_spectra_resampling_
Definition MRMFeatureFinderScoring.h:291
String spectrum_merge_method_type_
Definition MRMFeatureFinderScoring.h:290
OpenMS::EmgScoring emgscoring_
Definition MRMFeatureFinderScoring.h:305
int stop_report_after_feature_
Definition MRMFeatureFinderScoring.h:279
MRMFeatureFinderScoring()
Constructor.
std::unordered_map< OpenMS::String, const PeptideType * > PeptideRefMap_
Definition MRMFeatureFinderScoring.h:302
OpenSwath::LightCompound PeptideType
Definition MRMFeatureFinderScoring.h:77
OpenMS::DIAScoring diascoring_
Definition MRMFeatureFinderScoring.h:304
bool write_convex_hull_
Definition MRMFeatureFinderScoring.h:280
void splitTransitionGroupsIdentification_(const MRMTransitionGroupType &transition_group, MRMTransitionGroupType &transition_group_identification, MRMTransitionGroupType &transition_group_identification_decoy) const
Splits combined transition groups into identification transition groups.
~MRMFeatureFinderScoring() override
Destructor.
OpenSwath::SpectrumAccessPtr ms1_map_
Definition MRMFeatureFinderScoring.h:308
OpenSwath::LightTransition TransitionType
Type definitions.
Definition MRMFeatureFinderScoring.h:75
void pickExperiment(const OpenSwath::SpectrumAccessPtr &input, FeatureMap &output, const OpenSwath::LightTargetedExperiment &transition_exp, const TransformationDescription &trafo, const std::vector< OpenSwath::SwathMap > &swath_maps, TransitionGroupMapType &transition_group_map)
Pick and score features in a single experiment from chromatograms.
void setMS1Map(OpenSwath::SpectrumAccessPtr ms1_map)
Add an MS1 map containing spectra.
Definition MRMFeatureFinderScoring.h:187
double rt_normalization_factor_
Definition MRMFeatureFinderScoring.h:287
OpenSwath_Scores_Usage su_
Definition MRMFeatureFinderScoring.h:303
double uis_threshold_sn_
Definition MRMFeatureFinderScoring.h:293
OpenSwath_Ind_Scores scoreIdentification_(MRMTransitionGroupType &transition_group_identification, MRMTransitionGroupType &transition_group_detection, OpenSwathScoring &scorer, const size_t feature_idx, const Int64 feature_id, const std::vector< std::string > &native_ids_detection, const double det_intensity_ratio_score, const double det_mi_ratio_score, const std::vector< OpenSwath::SwathMap > &swath_maps, const double drift_target, RangeMobility &im_range, MobilogramParquetConsumer *mobilogram_consumer=nullptr) const
Provides scoring for target and decoy identification against detecting transitions.
double quantification_cutoff_
Definition MRMFeatureFinderScoring.h:278
void splitTransitionGroupsDetection_(const MRMTransitionGroupType &transition_group, MRMTransitionGroupType &transition_group_detection) const
Splits combined transition groups into detection transition groups.
void setStrictFlag(bool f)
Set the flag for strict mapping.
Definition MRMFeatureFinderScoring.h:173
unsigned int sn_bin_count_
Definition MRMFeatureFinderScoring.h:297
double uis_threshold_peak_area_
Definition MRMFeatureFinderScoring.h:294
String spectrum_addition_method_
Definition MRMFeatureFinderScoring.h:289
void pickExperiment(const PeakMap &chromatograms, FeatureMap &output, const TargetedExperiment &transition_exp, const TransformationDescription &trafo, const PeakMap &swath_map)
Picker and prepare functions.
void prepareProteinPeptideMaps_(const OpenSwath::LightTargetedExperiment &transition_exp)
Prepares the internal mappings of peptides and proteins.
OpenSwath::LightTargetedExperiment TargetedExpType
Definition MRMFeatureFinderScoring.h:76
bool write_log_messages_
Definition MRMFeatureFinderScoring.h:298
void updateMembers_() override
Synchronize members with param class.
bool use_ms1_ion_mobility_
Definition MRMFeatureFinderScoring.h:282
void scorePeakgroups(MRMTransitionGroupType &transition_group, const TransformationDescription &trafo, const std::vector< OpenSwath::SwathMap > &swath_maps, FeatureMap &output, bool ms1only=false, MobilogramParquetConsumer *mobilogram_consumer=nullptr) const
Score all peak groups of a transition group.
std::map< String, MRMTransitionGroupType > TransitionGroupMapType
Definition MRMFeatureFinderScoring.h:83
double rt_extraction_window_
Definition MRMFeatureFinderScoring.h:277
OpenSwath::LightModification ModificationType
Definition MRMFeatureFinderScoring.h:79
void prepareFeatureOutput_(OpenMS::MRMFeature &mrmfeature, bool ms1only, int charge) const
double im_extra_drift_
Definition MRMFeatureFinderScoring.h:300
String scoring_model_
Definition MRMFeatureFinderScoring.h:284
A multi-chromatogram MRM feature.
Definition MRMFeature.h:26
The representation of a group of transitions in a targeted proteomics experiment.
Definition MRMTransitionGroup.h:42
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
Writes Mobilograms (ion-mobility traces) to a Parquet file using a PyProphet-compatible-like schema.
Definition MobilogramParquetConsumer.h:25
Definition OpenSwathScoring.h:46
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
A more convenient string class.
Definition String.h:34
A description of a targeted experiment containing precursor and production ions.
Definition TargetedExperiment.h:40
int64_t Int64
Signed integer type (64bit)
Definition Types.h:40
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
A structure to store which scores should be used by the OpenSWATH Algorithm.
Definition OpenSwathScores.h:25
std::shared_ptr< ISpectrumAccess > SpectrumAccessPtr
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:131
A structure to hold the individual scores computed for unique ion signatures (UIS) scores for the Inf...
Definition OpenSwathScores.h:181
Definition RangeManager.h:482
Definition TransitionExperiment.h:268
Definition TransitionExperiment.h:250
Definition TransitionExperiment.h:336
Definition TransitionExperiment.h:356
Definition TransitionExperiment.h:105