91 const std::string& in_db,
92 std::vector<ProteinIdentification>& prot_ids,
111 float prefix_fraction = 0;
112 float suffix_fraction = 0;
113 float mean_error = 0.0f;
114 int isotope_error = 0;
115 uint16_t matched_prefix_ions = 0;
116 uint16_t matched_suffix_ions = 0;
180 std::vector<std::vector<SimpleSearchEngineAlgorithm::AnnotatedHit_> >& annotated_hits,
181 std::vector<ProteinIdentification>& protein_ids,
186 Size max_variable_mods_per_peptide,
189 Int peptide_missed_cleavages,
190 double precursor_mass_tolerance,
191 double fragment_mass_tolerance,
192 const std::string& precursor_mass_tolerance_unit_ppm,
193 const std::string& fragment_mass_tolerance_unit_ppm,
194 const Int precursor_min_charge,
195 const Int precursor_max_charge,
196 const std::string& enzyme,
197 const std::string& database_name)
const;
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
In-Memory representation of a mass spectrometry run.
Definition MSExperiment.h:49
Cached mapping ResidueModification* -> already-instantiated modified Residue*.
Definition ModifiedPeptideGenerator.h:59
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
Base class for all classes that want to report their progress.
Definition ProgressLogger.h:27
Minimal in-memory peptide-spectrum search engine.
Definition SimpleSearchEngineAlgorithm.h:56
static void preprocessSpectra_(PeakMap &exp, double fragment_mass_tolerance, bool fragment_mass_tolerance_unit_ppm)
Preprocess MS2 spectra in place: filter, deisotope, decharge.
std::string enzyme_
Enzyme name as recognised by EnzymaticDigestion.
Definition SimpleSearchEngineAlgorithm.h:217
Size peptide_max_size_
Maximum peptide length after digestion (0 = unlimited)
Definition SimpleSearchEngineAlgorithm.h:226
Size precursor_max_charge_
Maximum precursor charge considered.
Definition SimpleSearchEngineAlgorithm.h:203
Size precursor_min_charge_
Minimum precursor charge considered.
Definition SimpleSearchEngineAlgorithm.h:202
Size report_top_hits_
Number of top-scoring PSMs reported per spectrum.
Definition SimpleSearchEngineAlgorithm.h:232
Size modifications_max_variable_mods_per_peptide_
Cap on simultaneous variable modifications per peptide.
Definition SimpleSearchEngineAlgorithm.h:215
std::string peptide_motif_
Optional regex motif; only peptides matching are considered.
Definition SimpleSearchEngineAlgorithm.h:230
StringList modifications_fixed_
UniMod names of fixed modifications.
Definition SimpleSearchEngineAlgorithm.h:211
std::string precursor_mass_tolerance_unit_
"ppm" or "Da"
Definition SimpleSearchEngineAlgorithm.h:200
Size peptide_min_size_
Minimum peptide length after digestion.
Definition SimpleSearchEngineAlgorithm.h:225
IntList precursor_isotopes_
Allowed precursor isotope offsets (0 = monoisotopic, 1 = +1 Da, etc.)
Definition SimpleSearchEngineAlgorithm.h:205
bool decoys_
If true, generate target/decoy results.
Definition SimpleSearchEngineAlgorithm.h:219
void postProcessHits_(const PeakMap &exp, std::vector< std::vector< SimpleSearchEngineAlgorithm::AnnotatedHit_ > > &annotated_hits, std::vector< ProteinIdentification > &protein_ids, PeptideIdentificationList &peptide_ids, Size top_hits, const ModifiedPeptideGenerator::MapToResidueType &fixed_modifications, const ModifiedPeptideGenerator::MapToResidueType &variable_modifications, Size max_variable_mods_per_peptide, 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
Materialise top-N scored candidates per spectrum into PeptideHit / ProteinIdentification objects.
std::string fragment_mass_tolerance_unit_
"ppm" or "Da"
Definition SimpleSearchEngineAlgorithm.h:209
StringList annotate_psm_
PSM meta-value annotations to add (see annotate:PSM defaults)
Definition SimpleSearchEngineAlgorithm.h:223
ExitCodes search(const std::string &in_spectra, const std::string &in_db, std::vector< ProteinIdentification > &prot_ids, PeptideIdentificationList &pep_ids) const
Search the MS2 spectra in in_spectra against the protein database in in_db.
double fdr_psm_
q-value threshold for PSM filtering (0 = disabled); requires decoys_
Definition SimpleSearchEngineAlgorithm.h:221
double precursor_mass_tolerance_
Precursor mass tolerance (value); unit in precursor_mass_tolerance_unit_.
Definition SimpleSearchEngineAlgorithm.h:199
SimpleSearchEngineAlgorithm()
Default constructor; installs the search parameters (see class docs)
void updateMembers_() override
This method is used to update extra member variables at the end of the setParameters() method.
ExitCodes
Outcome of search(), distinguishing recoverable input issues from execution errors.
Definition SimpleSearchEngineAlgorithm.h:63
StringList modifications_variable_
UniMod names of variable modifications.
Definition SimpleSearchEngineAlgorithm.h:213
double fragment_mass_tolerance_
Fragment mass tolerance (value); unit in fragment_mass_tolerance_unit_.
Definition SimpleSearchEngineAlgorithm.h:207
Size peptide_missed_cleavages_
Allowed missed cleavages in digestion.
Definition SimpleSearchEngineAlgorithm.h:227
int Int
Signed integer type.
Definition Types.h:72
ptrdiff_t SignedSize
Signed Size type e.g. used as pointer difference.
Definition Types.h:104
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
Compact internal record for one scored peptide candidate against one spectrum.
Definition SimpleSearchEngineAlgorithm.h:106
static bool hasBetterScore(const AnnotatedHit_ &a, const AnnotatedHit_ &b)
Strict-weak ordering: higher score first, then lower mod index, then sequence.
Definition SimpleSearchEngineAlgorithm.h:119
double score
main score (higher is better)
Definition SimpleSearchEngineAlgorithm.h:110
std::string_view sequence
unmodified peptide sequence (view into the digested protein)
Definition SimpleSearchEngineAlgorithm.h:107
SignedSize peptide_mod_index
enumeration index of the modification variant (for re-materialisation)
Definition SimpleSearchEngineAlgorithm.h:108