OpenMS
Loading...
Searching...
No Matches
ProSEAlgorithm.h
Go to the documentation of this file.
1// Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2// SPDX-License-Identifier: BSD-3-Clause
3//
4// --------------------------------------------------------------------------
5// $Maintainer: $
6// $Authors: Raphael Förster $
7// --------------------------------------------------------------------------
8
9#pragma once
10
13
21
22#include <algorithm> // std::min (used by inline computeModMatchTolerance_)
23#include <iosfwd> // std::ostream (renderRunSummary / renderModificationSummary)
24#include <map>
25#include <string> // std::string (renderRunSummaryJson return / manifest)
26#include <utility> // std::pair (renderRunSummaryJson manifest)
27#include <vector>
28
29namespace OpenMS
30{
31
32class TheoreticalSpectrumGenerator;
33
48class OPENMS_DLLAPI ProSEAlgorithm :
50 public ProgressLogger
51{
52 public:
54
56 enum class ExitCodes
57 {
58 EXECUTION_OK,
59 INPUT_FILE_EMPTY,
60 UNEXPECTED_RESULT,
61 UNKNOWN_ERROR,
62 ILLEGAL_PARAMETERS
63 };
64
75 {
76 std::string input_file;
77 Size ms2_spectra = 0;
78 Size matched_spectra = 0;
79 Size target_psms = 0;
80 Size decoy_psms = 0;
81 bool fdr_applied = false;
82 double achieved_psm_fdr = -1.0;
83 Size unique_peptides = 0;
84 Size unique_proteins = 0;
85 std::map<Int, Size> charge_histogram;
86 std::map<Size, Size> missed_cleavage_histogram;
87 bool score_stats_valid = false;
88 double hyperscore_min = 0.0;
89 double hyperscore_median = 0.0;
90 double hyperscore_max = 0.0;
91 bool prec_tol_valid = false;
92 double prec_err_median = 0.0, prec_err_mad = 0.0, prec_err_recommended = 0.0;
93 bool frag_tol_valid = false;
94 double frag_err_median = 0.0, frag_err_mad = 0.0, frag_err_recommended = 0.0;
95 double seconds_search = 0.0;
96 double seconds_calibration = 0.0;
97 double seconds_fdr = 0.0;
98 };
99
109 {
110 std::string database_file;
111 std::string enzyme;
112 double precursor_tol_lower = 0.0, precursor_tol_upper = 0.0;
114 double fragment_tol = 0.0;
115 std::string fragment_tol_unit;
116 Int min_charge = 0, max_charge = 0;
117 Size missed_cleavages = 0;
118 std::vector<std::string> fixed_mods, variable_mods, ion_series;
119 bool open_search = false;
120 bool calibration_enabled = false;
121 bool snes_mode = false;
122 bool chunked = false;
123 std::string decoy_mode;
124 double psm_fdr_threshold = 0.0, protein_fdr_threshold = 0.0;
125 Size db_target_proteins = 0;
126 Size db_decoy_proteins = 0;
127 Size indexed_peptides = 0;
128 Size indexed_fragments = 0;
129 double seconds_index_build = 0.0;
130 double seconds_total = 0.0;
131 };
132
143 {
144 ExitCodes exit_code = ExitCodes::EXECUTION_OK;
145 std::vector<ProteinIdentification> protein_ids;
148 bool is_open_search = false;
150 };
151
185 {
186 std::vector<SearchResult> per_file;
188
192 std::string decoy_string;
194 bool decoy_is_prefix = true;
196 bool have_decoys = false;
197
201 };
202
212 {
213 std::vector<FASTAFile::FASTAEntry> db;
215
225 bool release_fragment_index_after_scoring = false;
226
231 std::string decoy_string;
233 bool decoy_is_prefix = true;
236 bool have_decoys = false;
241 bool electron_ions = false;
242 };
243
265 ExitCodes search(const std::string& in_spectra,
266 const std::string& in_db,
267 std::vector<ProteinIdentification>& prot_ids,
268 PeptideIdentificationList& pep_ids) const;
269
294 static void applyCompleteSetProteinFDR(std::vector<ProteinIdentification>& protein_ids,
295 PeptideIdentificationList& peptide_ids,
296 const std::string& decoy_string,
297 bool decoy_is_prefix,
298 double protein_fdr);
299
345 SearchResult searchWithModificationAnalysis(const std::string& in_spectra,
346 const std::string& in_db,
347 const std::string& output_base_name = "") const;
348
367 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
368 std::vector<ProteinIdentification>& prot_ids,
369 PeptideIdentificationList& pep_ids) const;
370
391 SearchContext prepareContext(const std::vector<FASTAFile::FASTAEntry>& fasta_db) const;
392
406 SearchContext prepareContext(const std::vector<FASTAFile::FASTAEntry>& fasta_db, bool electron_ions) const;
407
429 SearchContext& ctx,
430 std::vector<ProteinIdentification>& prot_ids,
431 PeptideIdentificationList& pep_ids) const;
432
444 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
445 const std::string& output_base_name = "") const;
446
484 const std::vector<std::string>& in_spectra_files,
485 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
486 const std::vector<std::string>& output_base_names = {},
487 const std::string& aggregate_base_name = "",
488 bool build_pooled_aggregate = true) const;
489
504 const std::vector<std::string>& in_spectra_files,
505 const std::string& in_db,
506 const std::vector<std::string>& output_base_names = {},
507 const std::string& aggregate_base_name = "",
508 bool build_pooled_aggregate = true) const;
509
510 protected:
511 void updateMembers_() override;
512
515 {
517 /*
518 std::string_view sequence;
519 SignedSize peptide_mod_index; ///< enumeration index of the non-RNA peptide modification
520 */
521 // Layout: doubles first, then floats, then int, then uint16_t — minimizes padding (40 bytes excluding AASequence)
522 double score = 0;
523 double delta_mass = 0.0;
524 float prefix_fraction = 0;
525 float suffix_fraction = 0;
526 float mean_error = 0.0f;
527 int isotope_error = 0;
528 uint16_t applied_charge = 0;
529 uint16_t matched_prefix_ions = 0;
530 uint16_t matched_suffix_ions = 0;
531
532 static bool hasBetterScore(const AnnotatedHit_& a, const AnnotatedHit_& b)
533 {
534 if (a.score != b.score) return a.score > b.score;
535 return a.sequence < b.sequence;
536 }
537 };
538
556 {
557 double sum = 0.0;
558 double sumsq = 0.0;
559 double best = 0.0;
560 double second_best = 0.0;
561 Size count = 0;
562
564 void add(double score)
565 {
566 if (score > best) { second_best = best; best = score; }
567 else if (score > second_best) { second_best = score; }
568 sum += score;
569 sumsq += score * score;
570 ++count;
571 }
572
574 double deltaScore() const { return best - second_best; }
575
597 double zScore() const;
598 };
599
601 static void preprocessSpectra_(PeakMap& exp,
602 double fragment_mass_tolerance,
603 bool fragment_mass_tolerance_unit_ppm,
604 bool deisotope_requested,
605 Size peaks_keep_n,
606 Int peaks_window_top,
607 const std::string& window_type = "auto");
608
610 static void filterLocalPeaks_(MSSpectrum& spectrum, Size peaks_per_window);
611
613 enum class DecoyMode_
614 {
615 AUTO,
616 GENERATE,
617 IGNORE
618 };
619
628 {
629 bool generate{false};
630 bool strip_existing{false};
631 bool have_decoys{false};
632 std::string decoy_string;
633 bool is_prefix{true};
634 std::string strip_string;
635 bool strip_is_prefix{true};
636 };
637
647 const std::vector<FASTAFile::FASTAEntry>& db) const;
648
661 Param fragmentIndexParameters_(bool electron_ions = false) const;
662
665 struct SpectrumGenerators_;
666
668 SpectrumGenerators_ spectrumGenerators_() const;
669
671 static bool isElectronActivated_(const MSSpectrum& spectrum);
672
674 Size countElectronActivated_(const PeakMap& spectra) const;
675
683 std::vector<FASTAFile::FASTAEntry> buildDecoyAugmentedDB_(
684 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
685 const DecoyStrategy_& strategy) const;
686
700 std::vector<FASTAFile::FASTAEntry> buildCalibrationSample_(
701 const std::vector<FASTAFile::FASTAEntry>& full_db) const;
702
717 PeakMap& spectra,
718 std::vector<FASTAFile::FASTAEntry>& full_db,
719 const DecoyStrategy_& strategy,
720 std::vector<ProteinIdentification>& protein_ids,
721 PeptideIdentificationList& peptide_ids) const;
722
746 const PeakMap& spectra,
747 FragmentIndex& fi,
748 const std::vector<FASTAFile::FASTAEntry>& db,
749 const SpectrumGenerators_& generators,
750 double effective_fragment_tol,
751 bool fragment_mass_tolerance_unit_ppm,
752 bool open_search_mode,
753 std::vector<std::vector<AnnotatedHit_>>& annotated_hits,
754 std::vector<CandidatePoolStats_>& pool_stats,
755 const std::string& progress_label) const;
756
784 void postProcessHits_(const PeakMap& exp,
785 std::vector<std::vector<ProSEAlgorithm::AnnotatedHit_> >& annotated_hits,
786 const std::vector<CandidatePoolStats_>& pool_stats,
787 std::vector<ProteinIdentification>& protein_ids,
788 PeptideIdentificationList& peptide_ids,
789 Size top_hits,
790 const StringList& modifications_fixed,
791 const StringList& modifications_variable,
792 Int peptide_missed_cleavages,
793 double precursor_mass_tolerance,
794 double fragment_mass_tolerance,
795 const std::string& precursor_mass_tolerance_unit_ppm,
796 const std::string& fragment_mass_tolerance_unit_ppm,
797 const Int precursor_min_charge,
798 const Int precursor_max_charge,
799 const std::string& enzyme,
800 const std::string& database_name) const;
801
805 mutable double precursor_mass_tolerance_lower_{10.0};
806 mutable double precursor_mass_tolerance_upper_{10.0};
807 std::string precursor_mass_tolerance_unit_{"ppm"};
808
811
813
815
817
822 bool deisotope_requested_{true};
823 Size peaks_keep_n_{0};
824 Int peaks_window_top_{20};
825 std::string peaks_window_type_ {"auto"};
826
828
830
832
833 std::string enzyme_;
834
835 DecoyMode_ decoy_mode_{DecoyMode_::AUTO};
836 std::string decoy_prefix_;
837
838 double fdr_psm_{0.0};
839 double fdr_protein_{0.0};
840
842
846 EnzymaticDigestion::Specificity peptide_enzyme_specificity_{EnzymaticDigestion::SPEC_FULL};
847
848 std::string peptide_motif_;
849
851
852 bool add_a_ions_{false};
853 bool add_b_ions_{true};
854 bool add_c_ions_{false};
855 bool add_x_ions_{false};
856 bool add_y_ions_{true};
857 bool add_z_ions_{false};
858 bool add_zp1_ions_{false};
859 bool ions_by_activation_{true};
860
861 Size database_chunk_size_{0};
862
863 bool calibration_enabled_{false};
864 double calibration_subset_ratio_{0.1};
865 Size calibration_min_psms_{50};
866
875 {
876 double precursor_shift{0};
877 double precursor_spread{0};
878 double cal_lower{0};
879 double cal_upper{0};
880 double fragment_tolerance{0};
881 double fragment_shift{0};
882 bool extreme_bias{false};
883 bool success{false};
884 };
885
890
897
905 mutable double last_mod_match_tolerance_used_{-1.0};
906
918 {
919 if (precursor_mass_tolerance_lower_ <= 0.0) return precursor_mass_tolerance_upper_;
920 if (precursor_mass_tolerance_upper_ <= 0.0) return precursor_mass_tolerance_lower_;
921 return std::min(precursor_mass_tolerance_lower_, precursor_mass_tolerance_upper_);
922 }
923
937 FragmentIndex& fragment_index,
938 const std::vector<FASTAFile::FASTAEntry>& db) const;
939
942 static bool accessionHasDecoyMarker_(const std::string& accession,
943 const std::string& marker, bool is_prefix);
944
951 static void capturePreFdrStats_(const PeptideIdentificationList& peptide_ids,
952 RunStatistics& stats);
953
957 static double maxRetainedScore_(const PeptideIdentificationList& peptide_ids);
958
964 void collectRunStatistics_(const PeakMap& spectra,
965 const std::vector<ProteinIdentification>& protein_ids,
966 const PeptideIdentificationList& peptide_ids,
967 RunStatistics& stats) const;
968
969 public:
979 static void updateFinalStats(RunStatistics& stats,
980 const PeptideIdentificationList& peptide_ids,
981 const std::string& enzyme,
982 bool fdr_applied);
983
988 static void renderRunSummary(const RunStatistics& stats,
989 const SharedSearchStats& shared,
991 bool is_open_search,
992 std::ostream& os);
993
997 std::ostream& os);
998
1005 static std::string renderRunSummaryYaml(
1006 const MultiFileSearchResult& mfres,
1007 const std::vector<std::pair<std::string, std::vector<std::string>>>& manifest,
1008 Size files_failed,
1009 Size files_total);
1010
1011 private:
1012
1015 {
1016 return FragmentIndex::isOpenSearchMode(precursor_mass_tolerance_lower_,
1017 precursor_mass_tolerance_upper_,
1018 precursor_mass_tolerance_unit_ == "ppm");
1019 }
1020};
1021
1022} // namespace
Definition AASequence.h:96
A base class for all classes handling default parameters.
Definition DefaultParamHandler.h:66
Specificity
when querying for valid digestion products, this determines if the specificity of the two peptide end...
Definition EnzymaticDigestion.h:42
Generates from a set of Fasta files a 2D-datastructure which stores all theoretical masses of all b a...
Definition FragmentIndex.h:35
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
The representation of a 1D spectrum.
Definition MSSpectrum.h:44
Combined result of open search modification analysis.
Definition OpenSearchModificationAnalysis.h:104
Management and storage of parameters / INI files.
Definition Param.h:46
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Fragment-index-based peptide database search algorithm (experimental).
Definition ProSEAlgorithm.h:51
ExitCodes search(PeakMap &spectra, const std::vector< FASTAFile::FASTAEntry > &fasta_db, std::vector< ProteinIdentification > &prot_ids, PeptideIdentificationList &pep_ids) const
In-memory search: search spectra against a protein database without file I/O.
std::string enzyme_
Definition ProSEAlgorithm.h:833
static std::string renderRunSummaryYaml(const MultiFileSearchResult &mfres, const std::vector< std::pair< std::string, std::vector< std::string > > > &manifest, Size files_failed, Size files_total)
FragmentIndex fragment_index
Definition ProSEAlgorithm.h:214
std::string fragment_tol_unit
Definition ProSEAlgorithm.h:115
Size peptide_max_size_
Definition ProSEAlgorithm.h:844
static void updateFinalStats(RunStatistics &stats, const PeptideIdentificationList &peptide_ids, const std::string &enzyme, bool fdr_applied)
static void preprocessSpectra_(PeakMap &exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm, bool deisotope_requested, Size peaks_keep_n, Int peaks_window_top, const std::string &window_type="auto")
filter, deisotope, decharge spectra
SearchResult searchWithModificationAnalysis(const std::string &in_spectra, const std::string &in_db, const std::string &output_base_name="") const
Search with comprehensive results including modification analysis tables.
Size precursor_max_charge_
Definition ProSEAlgorithm.h:810
Size precursor_min_charge_
Definition ProSEAlgorithm.h:809
std::string decoy_prefix_
Definition ProSEAlgorithm.h:836
RunStatistics stats
Definition ProSEAlgorithm.h:149
Size report_top_hits_
Definition ProSEAlgorithm.h:850
Size modifications_max_variable_mods_per_peptide_
Definition ProSEAlgorithm.h:831
static void renderModificationSummary(const OpenSearchModificationAnalysis::OpenSearchAnalysisResult &mod_analysis, std::ostream &os)
SearchResult searchWithModificationAnalysis(PeakMap &spectra, const std::vector< FASTAFile::FASTAEntry > &fasta_db, const std::string &output_base_name="") const
In-memory search with modification analysis: no file I/O required.
std::string peptide_motif_
Definition ProSEAlgorithm.h:848
std::string input_file
spectrum file this run searched (basename or path)
Definition ProSEAlgorithm.h:76
std::map< Int, Size > charge_histogram
precursor charge -> PSM count
Definition ProSEAlgorithm.h:85
SpectrumGenerators_ spectrumGenerators_() const
Generators for scoring, annotation and calibration, configured from the ions:* parameters.
StringList modifications_fixed_
Definition ProSEAlgorithm.h:827
MultiFileSearchResult searchWithModificationAnalysis(const std::vector< std::string > &in_spectra_files, const std::vector< FASTAFile::FASTAEntry > &fasta_db, const std::vector< std::string > &output_base_names={}, const std::string &aggregate_base_name="", bool build_pooled_aggregate=true) const
Multi-file search with modification analysis (in-memory FASTA).
CalibrationResult_ runCalibrationPass_(PeakMap &spectra, FragmentIndex &fragment_index, const std::vector< FASTAFile::FASTAEntry > &db) const
Run a fast calibration pass on a subset of spectra to estimate mass accuracy.
static void capturePreFdrStats_(const PeptideIdentificationList &peptide_ids, RunStatistics &stats)
std::vector< ProteinIdentification > protein_ids
Definition ProSEAlgorithm.h:145
Size peptide_min_size_
Definition ProSEAlgorithm.h:843
std::vector< FASTAFile::FASTAEntry > buildDecoyAugmentedDB_(const std::vector< FASTAFile::FASTAEntry > &fasta_db, const DecoyStrategy_ &strategy) const
Build the searched database according to strategy.
SearchResult aggregate
Definition ProSEAlgorithm.h:187
IntList precursor_isotopes_
Definition ProSEAlgorithm.h:812
MultiFileSearchResult searchWithModificationAnalysis(const std::vector< std::string > &in_spectra_files, const std::string &in_db, const std::vector< std::string > &output_base_names={}, const std::string &aggregate_base_name="", bool build_pooled_aggregate=true) const
Multi-file search with modification analysis (FASTA file path).
std::string database_file
FASTA path (empty for in-memory db)
Definition ProSEAlgorithm.h:110
std::string strip_string
marker of pre-existing decoys to strip
Definition ProSEAlgorithm.h:634
std::map< Size, Size > missed_cleavage_histogram
missed cleavages -> PSM count
Definition ProSEAlgorithm.h:86
RunStatistics last_run_stats_
Definition ProSEAlgorithm.h:896
std::string fragment_mass_tolerance_unit_
Definition ProSEAlgorithm.h:816
StringList annotate_psm_
Definition ProSEAlgorithm.h:841
static void filterLocalPeaks_(MSSpectrum &spectrum, Size peaks_per_window)
Keep the strongest peaks in each non-overlapping 100 Da window, including a short final window.
static void applyCompleteSetProteinFDR(std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, const std::string &decoy_string, bool decoy_is_prefix, double protein_fdr)
Finalize protein-level FDR on a COMPLETE protein set (a single input file, or a merged cross-file agg...
Param fragmentIndexParameters_(bool electron_ions=false) const
ProSE parameters made safe to hand to a FragmentIndex.
OpenSearchModificationAnalysis::OpenSearchAnalysisResult modification_analysis
Definition ProSEAlgorithm.h:147
ExitCodes search(const std::string &in_spectra, const std::string &in_db, std::vector< ProteinIdentification > &prot_ids, PeptideIdentificationList &pep_ids) const
Search spectra in a spectrum file (mzML or Bruker .d) against a protein database using an FI-backed w...
std::vector< FASTAFile::FASTAEntry > db
Definition ProSEAlgorithm.h:213
static bool accessionHasDecoyMarker_(const std::string &accession, const std::string &marker, bool is_prefix)
static void renderRunSummary(const RunStatistics &stats, const SharedSearchStats &shared, const OpenSearchModificationAnalysis::OpenSearchAnalysisResult &mod_analysis, bool is_open_search, std::ostream &os)
ExitCodes search(PeakMap &spectra, SearchContext &ctx, std::vector< ProteinIdentification > &prot_ids, PeptideIdentificationList &pep_ids) const
In-memory search using a pre-built SearchContext.
SharedSearchStats shared
Definition ProSEAlgorithm.h:200
bool isOpenSearchMode_() const
Helper function to determine if open search should be used based on tolerance.
Definition ProSEAlgorithm.h:1014
ExitCodes searchChunked_(PeakMap &spectra, std::vector< FASTAFile::FASTAEntry > &full_db, const DecoyStrategy_ &strategy, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids) const
Chunked database search implementation.
std::string decoy_string
Definition ProSEAlgorithm.h:192
DecoyStrategy_ resolveDecoyStrategy_(const std::vector< FASTAFile::FASTAEntry > &db) const
Decide how to obtain/recognise decoys for db.
Size countElectronActivated_(const PeakMap &spectra) const
Number of spectra that ions:by_activation also scores with c and z+1 ions (0 if it is off)
std::vector< FASTAFile::FASTAEntry > buildCalibrationSample_(const std::vector< FASTAFile::FASTAEntry > &full_db) const
Build a strided protein sample for chunked calibration.
static bool isElectronActivated_(const MSSpectrum &spectrum)
True if the precursor of spectrum was activated by electrons (ETD, ECD, EThcD or ETciD)
std::string decoy_mode
"generated" | "external" | "none (target-only)"
Definition ProSEAlgorithm.h:123
PeptideIdentificationList peptide_ids
Definition ProSEAlgorithm.h:146
std::string enzyme
Definition ProSEAlgorithm.h:111
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
void scoreSpectraAgainstIndex_(const PeakMap &spectra, FragmentIndex &fi, const std::vector< FASTAFile::FASTAEntry > &db, const SpectrumGenerators_ &generators, double effective_fragment_tol, bool fragment_mass_tolerance_unit_ppm, bool open_search_mode, std::vector< std::vector< AnnotatedHit_ > > &annotated_hits, std::vector< CandidatePoolStats_ > &pool_stats, const std::string &progress_label) const
Score all spectra against one FragmentIndex.
ExitCodes
Exit codes.
Definition ProSEAlgorithm.h:57
void postProcessHits_(const PeakMap &exp, std::vector< std::vector< ProSEAlgorithm::AnnotatedHit_ > > &annotated_hits, const std::vector< CandidatePoolStats_ > &pool_stats, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, Size top_hits, const StringList &modifications_fixed, const StringList &modifications_variable, Int peptide_missed_cleavages, double precursor_mass_tolerance, double fragment_mass_tolerance, const std::string &precursor_mass_tolerance_unit_ppm, const std::string &fragment_mass_tolerance_unit_ppm, const Int precursor_min_charge, const Int precursor_max_charge, const std::string &enzyme, const std::string &database_name) const
Filter and annotate search results.
StringList modifications_variable_
Definition ProSEAlgorithm.h:829
static double maxRetainedScore_(const PeptideIdentificationList &peptide_ids)
std::vector< SearchResult > per_file
Definition ProSEAlgorithm.h:186
double fragment_mass_tolerance_
Definition ProSEAlgorithm.h:814
SearchContext prepareContext(const std::vector< FASTAFile::FASTAEntry > &fasta_db) const
Build a SearchContext (decoy-augmented database + FragmentIndex) for reuse.
SearchContext prepareContext(const std::vector< FASTAFile::FASTAEntry > &fasta_db, bool electron_ions) const
Build a SearchContext whose FragmentIndex also holds c and z+1 ions.
Size peptide_missed_cleavages_
Definition ProSEAlgorithm.h:845
CalibrationResult_ last_calibration_result_
Definition ProSEAlgorithm.h:889
double computeModMatchTolerance_() const
Definition ProSEAlgorithm.h:917
void collectRunStatistics_(const PeakMap &spectra, const std::vector< ProteinIdentification > &protein_ids, const PeptideIdentificationList &peptide_ids, RunStatistics &stats) const
std::vector< std::string > fixed_mods
Definition ProSEAlgorithm.h:118
std::string precursor_tol_unit
Definition ProSEAlgorithm.h:113
DecoyMode_
How decoys are obtained/recognised for a search (parameter "decoys").
Definition ProSEAlgorithm.h:614
Result of a calibration pass.
Definition ProSEAlgorithm.h:875
Resolved decoy handling for one concrete input database.
Definition ProSEAlgorithm.h:628
Multi-file search result bundle.
Definition ProSEAlgorithm.h:185
Per-run identification statistics for the end-of-search report.
Definition ProSEAlgorithm.h:75
Prepared per-database state shared across multiple spectrum files.
Definition ProSEAlgorithm.h:212
Comprehensive search result including modification analysis.
Definition ProSEAlgorithm.h:143
Configuration, database and fragment-index facts shared across all input files of one ProSE invocatio...
Definition ProSEAlgorithm.h:109
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
int Int
Signed integer type.
Definition Types.h:72
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< Int > IntList
Vector of signed integers.
Definition TypeAliases.h:24
std::vector< std::string > StringList
Vector of String.
Definition TypeAliases.h:39
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Slimmer structure as storing all scored candidates in PeptideHit objects takes too much space.
Definition ProSEAlgorithm.h:515
static bool hasBetterScore(const AnnotatedHit_ &a, const AnnotatedHit_ &b)
Definition ProSEAlgorithm.h:532
double score
main score
Definition ProSEAlgorithm.h:522
AASequence sequence
Definition ProSEAlgorithm.h:516
Running summary of the complete candidate pool of one spectrum.
Definition ProSEAlgorithm.h:556
void add(double score)
Fold one freshly scored candidate into the summary.
Definition ProSEAlgorithm.h:564
double deltaScore() const
Best minus runner-up over the full pool.
Definition ProSEAlgorithm.h:574
double zScore() const
How much of an outlier the best score is within its own candidate pool.