86 const std::string& in_db,
87 std::vector<ProteinIdentification>& prot_ids,
106 float prefix_fraction = 0;
107 float suffix_fraction = 0;
108 float mean_error = 0.0f;
109 int isotope_error = 0;
110 uint16_t matched_prefix_ions = 0;
111 uint16_t matched_suffix_ions = 0;
175 std::vector<std::vector<SimpleSearchEngineAlgorithm::AnnotatedHit_> >& annotated_hits,
176 std::vector<ProteinIdentification>& protein_ids,
181 Size max_variable_mods_per_peptide,
184 Int peptide_missed_cleavages,
185 double precursor_mass_tolerance,
186 double fragment_mass_tolerance,
187 const std::string& precursor_mass_tolerance_unit_ppm,
188 const std::string& fragment_mass_tolerance_unit_ppm,
189 const Int precursor_min_charge,
190 const Int precursor_max_charge,
191 const std::string& enzyme,
192 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:212
Size peptide_max_size_
Maximum peptide length after digestion (0 = unlimited)
Definition SimpleSearchEngineAlgorithm.h:221
Size precursor_max_charge_
Maximum precursor charge considered.
Definition SimpleSearchEngineAlgorithm.h:198
Size precursor_min_charge_
Minimum precursor charge considered.
Definition SimpleSearchEngineAlgorithm.h:197
Size report_top_hits_
Number of top-scoring PSMs reported per spectrum.
Definition SimpleSearchEngineAlgorithm.h:227
Size modifications_max_variable_mods_per_peptide_
Cap on simultaneous variable modifications per peptide.
Definition SimpleSearchEngineAlgorithm.h:210
std::string peptide_motif_
Optional regex motif; only peptides matching are considered.
Definition SimpleSearchEngineAlgorithm.h:225
StringList modifications_fixed_
UniMod names of fixed modifications.
Definition SimpleSearchEngineAlgorithm.h:206
std::string precursor_mass_tolerance_unit_
"ppm" or "Da"
Definition SimpleSearchEngineAlgorithm.h:195
Size peptide_min_size_
Minimum peptide length after digestion.
Definition SimpleSearchEngineAlgorithm.h:220
IntList precursor_isotopes_
Allowed precursor isotope offsets (0 = monoisotopic, 1 = +1 Da, etc.)
Definition SimpleSearchEngineAlgorithm.h:200
bool decoys_
If true, generate target/decoy results.
Definition SimpleSearchEngineAlgorithm.h:214
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:204
StringList annotate_psm_
PSM meta-value annotations to add (see annotate:PSM defaults)
Definition SimpleSearchEngineAlgorithm.h:218
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:216
double precursor_mass_tolerance_
Precursor mass tolerance (value); unit in precursor_mass_tolerance_unit_.
Definition SimpleSearchEngineAlgorithm.h:194
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:208
double fragment_mass_tolerance_
Fragment mass tolerance (value); unit in fragment_mass_tolerance_unit_.
Definition SimpleSearchEngineAlgorithm.h:202
Size peptide_missed_cleavages_
Allowed missed cleavages in digestion.
Definition SimpleSearchEngineAlgorithm.h:222
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 ListUtils.h:29
std::vector< std::string > StringList
Vector of String.
Definition ListUtils.h:44
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:101
static bool hasBetterScore(const AnnotatedHit_ &a, const AnnotatedHit_ &b)
Strict-weak ordering: higher score first, then lower mod index, then sequence.
Definition SimpleSearchEngineAlgorithm.h:114
double score
main score (higher is better)
Definition SimpleSearchEngineAlgorithm.h:105
std::string_view sequence
unmodified peptide sequence (view into the digested protein)
Definition SimpleSearchEngineAlgorithm.h:102
SignedSize peptide_mod_index
enumeration index of the modification variant (for re-materialisation)
Definition SimpleSearchEngineAlgorithm.h:103