29#include <unordered_map>
30#include <unordered_set>
37class TheoreticalSpectrumGenerator;
86 bool fdr_applied =
false;
87 double achieved_psm_fdr = -1.0;
92 bool score_stats_valid =
false;
93 double hyperscore_min = 0.0;
94 double hyperscore_median = 0.0;
95 double hyperscore_max = 0.0;
96 bool prec_tol_valid =
false;
97 double prec_err_median = 0.0, prec_err_mad = 0.0, prec_err_recommended = 0.0;
98 bool frag_tol_valid =
false;
99 double frag_err_median = 0.0, frag_err_mad = 0.0, frag_err_recommended = 0.0;
100 double seconds_search = 0.0;
101 double seconds_calibration = 0.0;
102 double seconds_fdr = 0.0;
117 double precursor_tol_lower = 0.0, precursor_tol_upper = 0.0;
119 double fragment_tol = 0.0;
121 Int min_charge = 0, max_charge = 0;
123 std::vector<std::string>
fixed_mods, variable_mods, ion_series;
124 bool open_search =
false;
125 bool calibration_enabled =
false;
126 bool peptide_mass_mode =
false;
127 bool chunked =
false;
129 double psm_fdr_threshold = 0.0, protein_fdr_threshold = 0.0;
134 double seconds_index_build = 0.0;
135 double seconds_total = 0.0;
153 bool is_open_search =
false;
200 bool decoy_is_prefix =
true;
202 bool have_decoys =
false;
219 std::vector<FASTAFile::FASTAEntry>
db;
231 bool release_fragment_index_after_scoring =
false;
239 bool decoy_is_prefix =
true;
242 bool have_decoys =
false;
247 bool electron_ions =
false;
272 const std::string& in_db,
273 std::vector<ProteinIdentification>& prot_ids,
302 const std::string& decoy_string,
303 bool decoy_is_prefix,
366 const std::string& in_db,
367 const std::string& output_base_name =
"")
const;
387 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
388 std::vector<ProteinIdentification>& prot_ids,
450 std::vector<ProteinIdentification>& prot_ids,
464 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
465 const std::string& output_base_name =
"")
const;
504 const std::vector<std::string>& in_spectra_files,
505 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
506 const std::vector<std::string>& output_base_names = {},
507 const std::string& aggregate_base_name =
"",
508 bool build_pooled_aggregate =
true)
const;
524 const std::vector<std::string>& in_spectra_files,
525 const std::string& in_db,
526 const std::vector<std::string>& output_base_names = {},
527 const std::string& aggregate_base_name =
"",
528 bool build_pooled_aggregate =
true)
const;
534 keep_pre_fdr_psms_ = keep;
551 double delta_mass = 0.0;
552 float prefix_fraction = 0;
553 float suffix_fraction = 0;
554 float mean_error = 0.0f;
555 int isotope_error = 0;
556 uint16_t applied_charge = 0;
557 uint16_t matched_prefix_ions = 0;
558 uint16_t matched_suffix_ions = 0;
592 double second_best = 0.0;
601 if (score > best) { second_best = best; best = score; }
602 else if (score > second_best) { second_best = score; }
604 sumsq += score * score;
645 unsigned int min_peaks{3};
646 bool charge_cap_precursor{
false};
647 bool sum_intensity{
false};
665 double fragment_mass_tolerance,
666 bool fragment_mass_tolerance_unit_ppm,
667 bool deisotope_requested,
669 Int peaks_window_top,
670 const std::string& window_type,
673 bool ion_evidence_scored_peaks =
false,
674 PeakMap* evidence_spectra =
nullptr,
675 PeakMap* query_spectra =
nullptr);
679 double fragment_mass_tolerance,
680 bool fragment_mass_tolerance_unit_ppm,
681 bool deisotope_requested,
683 Int peaks_window_top,
684 const std::string& window_type =
"auto");
714 std::vector<ProteinIdentification>& protein_ids,
740 bool generate{
false};
741 bool strip_existing{
false};
742 bool have_decoys{
false};
744 bool is_prefix{
true};
746 bool strip_is_prefix{
true};
758 const std::vector<FASTAFile::FASTAEntry>& db)
const;
776 struct SpectrumGenerators_;
784 double chance_match_surprise = 0.0;
785 double mass_competition_evidence = 0.0;
811 const std::vector<double>& densities,
812 double tolerance,
bool ppm);
819 const std::vector<double>& densities,
820 double tolerance,
bool ppm,
821 std::vector<double>& alternatives);
837 const std::vector<FASTAFile::FASTAEntry>& fasta_db,
842 std::vector<FASTAFile::FASTAEntry>&& fasta_db,
849 const std::function<
const PeakMap*(
Size)>& searched_spectra = {})
const;
869 const std::vector<FASTAFile::FASTAEntry>& full_db)
const;
886 std::vector<FASTAFile::FASTAEntry>& full_db,
888 std::vector<ProteinIdentification>& protein_ids,
918 const std::vector<FASTAFile::FASTAEntry>& db,
919 const SpectrumGenerators_& generators,
920 double effective_fragment_tol,
921 bool fragment_mass_tolerance_unit_ppm,
922 bool open_search_mode,
923 std::vector<std::vector<AnnotatedHit_>>& annotated_hits,
924 std::vector<CandidatePoolStats_>& pool_stats,
925 const std::string& progress_label,
926 const PeakMap* query_spectra =
nullptr)
const;
958 std::vector<std::vector<ProSEAlgorithm::AnnotatedHit_> >& annotated_hits,
959 const std::vector<CandidatePoolStats_>& pool_stats,
960 std::vector<ProteinIdentification>& protein_ids,
965 Int peptide_missed_cleavages,
966 double precursor_mass_tolerance,
967 double fragment_mass_tolerance,
968 const std::string& precursor_mass_tolerance_unit_ppm,
969 const std::string& fragment_mass_tolerance_unit_ppm,
970 const Int precursor_min_charge,
971 const Int precursor_max_charge,
972 const std::string& enzyme,
973 const std::string& database_name,
974 const PeakMap* evidence_spectra =
nullptr)
const;
984 std::vector<ProteinIdentification>& protein_ids,
987 bool peptdeep_enable_{
false};
990 std::string peptdeep_instrument_{
"QE"};
991 double peptdeep_nce_{-1.0};
992 std::string peptdeep_rt_model_type_{
"b_spline"};
993 int peptdeep_batch_size_{500};
998 mutable double precursor_mass_tolerance_lower_{10.0};
999 mutable double precursor_mass_tolerance_upper_{10.0};
1000 std::string precursor_mass_tolerance_unit_{
"ppm"};
1013 bool deisotope_requested_{
true};
1014 bool scoring_multiple_charges_{
false};
1015 int scoring_max_charge_{2};
1016 bool mass_accuracy_score_{
false};
1017 double mass_error_sd_ppm_{7.0};
1022 return scoring_multiple_charges_ ? std::max(1, std::min(precursor_charge - 1, scoring_max_charge_)) : 1;
1026 std::string peaks_window_type_ {
"auto"};
1028 bool query_raw_spectrum_{
false};
1041 double fdr_psm_{0.0};
1042 bool fdr_psm_by_scored_charges_{
true};
1043 double fdr_protein_{0.0};
1047 bool self_trained_ion_priors_{
false};
1049 bool ion_prior_scored_peaks_{
false};
1050 int ion_prior_max_fragment_charge_{2};
1051 double ion_prior_train_fdr_{0.01};
1053 bool ion_prior_feature_llr_{
true};
1054 bool ion_prior_feature_explained_{
true};
1055 bool ion_prior_feature_topk_{
false};
1067 bool isotope_error_observed_minus_theoretical_{
true};
1069 bool add_a_ions_{
false};
1070 bool add_b_ions_{
true};
1071 bool add_c_ions_{
false};
1072 bool add_x_ions_{
false};
1073 bool add_y_ions_{
true};
1074 bool add_z_ions_{
false};
1075 bool add_zp1_ions_{
false};
1076 bool ions_by_activation_{
true};
1077 bool protein_mapping_from_index_{
true};
1081 bool calibration_enabled_{
false};
1082 double calibration_subset_ratio_{0.1};
1094 double precursor_shift{0};
1095 double precursor_spread{0};
1096 double cal_lower{0};
1097 double cal_upper{0};
1098 double fragment_tolerance{0};
1099 double fragment_shift{0};
1100 bool extreme_bias{
false};
1101 bool success{
false};
1116 bool keep_pre_fdr_psms_ =
false;
1128 mutable double last_mod_match_tolerance_used_{-1.0};
1142 if (precursor_mass_tolerance_lower_ <= 0.0)
return precursor_mass_tolerance_upper_;
1143 if (precursor_mass_tolerance_upper_ <= 0.0)
return precursor_mass_tolerance_lower_;
1144 return std::min(precursor_mass_tolerance_lower_, precursor_mass_tolerance_upper_);
1162 const std::vector<FASTAFile::FASTAEntry>& db,
1163 const PeakMap* query_spectra =
nullptr)
const;
1191 std::vector<std::unordered_map<std::string_view, Size>>
entries;
1198 if (entries.empty())
return sequences.size();
1199 const auto& table = entries[std::hash<std::string_view>{}(sequence) % SHARDS];
1200 const auto entry = table.find(sequence);
1201 return entry == table.end() ? sequences.size() : entry->second;
1215 const std::vector<FASTAFile::FASTAEntry>& db,
1216 std::vector<UInt32> candidates,
1217 const Param& indexer_parameters);
1228 const std::vector<FASTAFile::FASTAEntry>& db,
1229 const Param& indexer_parameters,
1230 std::vector<ProteinIdentification>& protein_ids,
1232 std::string& fallback_reason);
1237 const std::string& marker,
bool is_prefix);
1259 const std::vector<ProteinIdentification>& protein_ids,
1275 const std::string& enzyme,
1285 bool is_open_search,
1301 const std::vector<std::pair<std::string, std::vector<std::string>>>& manifest,
1310 return FragmentIndex::isOpenSearchMode(precursor_mass_tolerance_lower_,
1311 precursor_mass_tolerance_upper_,
1312 precursor_mass_tolerance_unit_ ==
"ppm");
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:41
Generates from a set of Fasta files a 2D-datastructure which stores all theoretical masses of all b a...
Definition FragmentIndex.h:35
Compact peak lists of the spectra of one run: per peak only its m/z and its intensity-rank bin.
Definition FragmentIonLikelihoodModel.h:82
ContextSet
Ion contexts and outcomes the model distinguishes.
Definition FragmentIonLikelihoodModel.h:60
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:56
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.
static LocalFragmentEvidence_ localFragmentEvidence_(const MSSpectrum &spectrum, const MSSpectrum &theoretical, const std::vector< double > &densities, double tolerance, bool ppm)
Compute local fragment-match evidence on the spectrum before window/top-N peak filtering.
std::string enzyme_
Definition ProSEAlgorithm.h:1036
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)
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, const DeisotopingSettings_ &deisotoping, FragmentIonLikelihoodModel::PeakLists *ion_evidence=nullptr, bool ion_evidence_scored_peaks=false, PeakMap *evidence_spectra=nullptr, PeakMap *query_spectra=nullptr)
filter, deisotope, decharge spectra
FragmentIndex fragment_index
Definition ProSEAlgorithm.h:220
std::string fragment_tol_unit
Definition ProSEAlgorithm.h:120
Size peptide_max_size_
Definition ProSEAlgorithm.h:1058
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")
preprocessSpectra_() with the DeisotopingSettings_ defaults (the behaviour before its parameters exis...
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:1003
Size precursor_min_charge_
Definition ProSEAlgorithm.h:1002
std::string decoy_prefix_
Definition ProSEAlgorithm.h:1039
RunStatistics stats
Definition ProSEAlgorithm.h:154
Size report_top_hits_
Definition ProSEAlgorithm.h:1064
Size modifications_max_variable_mods_per_peptide_
Definition ProSEAlgorithm.h:1034
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.
void setKeepPreFdrPsms(bool keep)
Definition ProSEAlgorithm.h:532
std::string peptide_motif_
Definition ProSEAlgorithm.h:1062
std::string input_file
spectrum file this run searched (basename or path)
Definition ProSEAlgorithm.h:81
SearchContext prepareContext_(std::vector< FASTAFile::FASTAEntry > &&fasta_db, bool electron_ions, const std::function< const PeakMap *(Size)> &searched_spectra={}) const
PeptideIdentificationList pre_fdr_peptide_ids
the PSMs before FDR:PSM; only filled with setKeepPreFdrPsms(true)
Definition ProSEAlgorithm.h:155
std::map< Int, Size > charge_histogram
precursor charge -> PSM count
Definition ProSEAlgorithm.h:90
SpectrumGenerators_ spectrumGenerators_() const
Generators for scoring, annotation and calibration, configured from the ions:* parameters.
StringList modifications_fixed_
Definition ProSEAlgorithm.h:1030
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).
static void capturePreFdrStats_(const PeptideIdentificationList &peptide_ids, RunStatistics &stats)
void annotateIonPriors_(const PeakMap &spectra, const FragmentIonLikelihoodModel::PeakLists &evidence, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids) const
Learn per-run fragment ion likelihoods from confident PSMs and annotate every hit with them.
void annotatePsmQValues(PeptideIdentificationList &peptide_ids) const
Annotate PSM q-values by target-decoy competition of the best hit of each spectrum,...
std::vector< ProteinIdentification > protein_ids
Definition ProSEAlgorithm.h:150
bool restrictIndexToSpectra_() const
Definition ProSEAlgorithm.h:853
Size peptide_min_size_
Definition ProSEAlgorithm.h:1057
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:193
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).
void annotatePeptDeepFeatures_(const PeakMap &spectra, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids) const
Adds PeptDeep-prediction-derived rescoring features to the PSMs.
std::string database_file
FASTA path (empty for in-memory db)
Definition ProSEAlgorithm.h:115
static AASequence reversedNoiseSequence_(const AASequence &sequence)
Reversed sequence keeping the C-terminal residue and every residue's modification: the noise hypothes...
CalibrationResult_ runCalibrationPass_(PeakMap &spectra, FragmentIndex &fragment_index, const std::vector< FASTAFile::FASTAEntry > &db, const PeakMap *query_spectra=nullptr) const
Run a fast calibration pass on a subset of spectra to estimate mass accuracy.
std::vector< FASTAFile::FASTAEntry > buildDecoyAugmentedDB_(std::vector< FASTAFile::FASTAEntry > &&fasta_db, const DecoyStrategy_ &strategy) const
As above, but takes the entries of fasta_db over instead of copying them.
std::string strip_string
marker of pre-existing decoys to strip
Definition ProSEAlgorithm.h:745
std::map< Size, Size > missed_cleavage_histogram
missed cleavages -> PSM count
Definition ProSEAlgorithm.h:91
static ProteinMapping_ buildProteinMapping_(const FragmentIndex &index, const std::vector< FASTAFile::FASTAEntry > &db, std::vector< UInt32 > candidates, const Param &indexer_parameters)
Collects the protein occurrences of the sequences of the index peptides candidates.
RunStatistics last_run_stats_
Definition ProSEAlgorithm.h:1114
std::string fragment_mass_tolerance_unit_
Definition ProSEAlgorithm.h:1007
static bool applyProteinMapping_(const ProteinMapping_ &mapping, const std::vector< FASTAFile::FASTAEntry > &db, const Param &indexer_parameters, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, std::string &fallback_reason)
Writes what PeptideIndexing::run(db, protein_ids, peptide_ids) with indexer_parameters writes: the ev...
StringList annotate_psm_
Definition ProSEAlgorithm.h:1045
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:152
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:219
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:206
bool isOpenSearchMode_() const
Helper function to determine if open search should be used based on tolerance.
Definition ProSEAlgorithm.h:1308
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:198
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)
DeisotopingSettings_ deisotoping_
MS2 deisotoping rule (fragment:deisotope_*)
Definition ProSEAlgorithm.h:1027
std::vector< FASTAFile::FASTAEntry > buildCalibrationSample_(const std::vector< FASTAFile::FASTAEntry > &full_db) const
Build a strided protein sample for chunked calibration.
static std::vector< double > localPeakDensities_(const MSSpectrum &spectrum)
Peak counts per Da in a fixed +/-50 m/z window around each peak of a sorted spectrum.
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 PeakMap *query_spectra=nullptr) const
Score all spectra against one FragmentIndex.
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:128
PeptideIdentificationList peptide_ids
Definition ProSEAlgorithm.h:151
std::string enzyme
Definition ProSEAlgorithm.h:116
static LocalFragmentEvidence_ localFragmentEvidence_(const MSSpectrum &spectrum, const MSSpectrum &theoretical, int max_charge, const std::vector< double > &densities, double tolerance, bool ppm, std::vector< double > &alternatives)
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
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 PeakMap *evidence_spectra=nullptr) const
Filter and annotate search results.
ExitCodes
Exit codes.
Definition ProSEAlgorithm.h:62
StringList modifications_variable_
Definition ProSEAlgorithm.h:1032
static double maxRetainedScore_(const PeptideIdentificationList &peptide_ids)
PeptideIdentificationList pre_fdr_peptide_ids_
Definition ProSEAlgorithm.h:1119
std::vector< SearchResult > per_file
Definition ProSEAlgorithm.h:192
double fragment_mass_tolerance_
Definition ProSEAlgorithm.h:1005
SearchContext prepareContext(const std::vector< FASTAFile::FASTAEntry > &fasta_db) const
Build a SearchContext (decoy-augmented database + FragmentIndex) for reuse.
int scoringMaxCharge_(int precursor_charge) const
Fragment charges that score a candidate of the given precursor charge; also used by the calibration p...
Definition ProSEAlgorithm.h:1020
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:1059
CalibrationResult_ last_calibration_result_
Definition ProSEAlgorithm.h:1107
double computeModMatchTolerance_() const
Definition ProSEAlgorithm.h:1140
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:123
std::string peptdeep_ms2_model_
Definition ProSEAlgorithm.h:988
std::string precursor_tol_unit
Definition ProSEAlgorithm.h:118
DecoyMode_
How decoys are obtained/recognised for a search (parameter "decoys").
Definition ProSEAlgorithm.h:725
std::string peptdeep_rt_model_
Definition ProSEAlgorithm.h:989
Result of a calibration pass.
Definition ProSEAlgorithm.h:1093
Resolved decoy handling for one concrete input database.
Definition ProSEAlgorithm.h:739
MS2 deisotoping rule of preprocessSpectra_().
Definition ProSEAlgorithm.h:644
Local fragment evidence of one candidate (annotate:local_fragment_evidence).
Definition ProSEAlgorithm.h:783
Multi-file search result bundle.
Definition ProSEAlgorithm.h:191
Per-run identification statistics for the end-of-search report.
Definition ProSEAlgorithm.h:80
Prepared per-database state shared across multiple spectrum files.
Definition ProSEAlgorithm.h:218
Comprehensive search result including modification analysis.
Definition ProSEAlgorithm.h:148
Configuration, database and fragment-index facts shared across all input files of one ProSE invocatio...
Definition ProSEAlgorithm.h:114
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
int Int
Signed integer type.
Definition Types.h:72
uint32_t UInt32
Unsigned integer type (32bit)
Definition Types.h:33
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
Slimmer structure as storing all scored candidates in PeptideHit objects takes too much space.
Definition ProSEAlgorithm.h:543
static bool hasBetterScore(const AnnotatedHit_ &a, const AnnotatedHit_ &b)
Definition ProSEAlgorithm.h:561
double score
main score
Definition ProSEAlgorithm.h:550
AASequence sequence
Definition ProSEAlgorithm.h:544
Running summary of the complete candidate pool of one spectrum.
Definition ProSEAlgorithm.h:588
std::unordered_set< std::string > seen_candidates
Definition ProSEAlgorithm.h:596
void add(double score)
Fold one freshly scored candidate into the summary.
Definition ProSEAlgorithm.h:599
double deltaScore() const
Best minus runner-up over the full pool.
Definition ProSEAlgorithm.h:609
double zScore() const
How much of an outlier the best score is within its own candidate pool.
The protein occurrences of the sequences of a search's hits (peptide:protein_mapping = index).
Definition ProSEAlgorithm.h:1183
std::vector< std::string_view > sequences
The unmodified hit sequences (views into the database), one entry each.
Definition ProSEAlgorithm.h:1187
std::string fallback_reason
Why PeptideIndexing has to run instead; empty if the mapping applies.
Definition ProSEAlgorithm.h:1193
Size find(std::string_view sequence) const
The entry of sequence, or sequences.size() if there is none.
Definition ProSEAlgorithm.h:1196
std::vector< std::vector< std::pair< UInt32, UInt32 > > > occurrences
Per entry: its occurrences {protein index, position}, ascending (PeptideIndexing's evidence order)
Definition ProSEAlgorithm.h:1189
std::vector< std::unordered_map< std::string_view, Size > > entries
Sequence -> entry, in SHARDS hash tables.
Definition ProSEAlgorithm.h:1191