MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / findMatches

Method findMatches

src/openms/source/CHEMISTRY/ModificationDefinitionsSet.cpp:318–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316 }
317
318 void ModificationDefinitionsSet::findMatches(multimap<double, ModificationDefinition>& matches, double mass, const String& residue, ResidueModification::TermSpecificity term_spec, bool consider_fixed, bool consider_variable, bool is_delta, double tolerance) const
319 {
320 if (!consider_variable && !consider_fixed)
321 {
322 throw Exception::IllegalArgument(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "No modifications to consider - set 'consider_variable' and/or 'consider_fixed' to true.");
323 }
324
325 matches.clear();
326 if (consider_fixed)
327 {
328 addMatches_(matches, mass, residue, term_spec, fixed_mods_, is_delta, tolerance);
329 }
330 if (consider_variable)
331 {
332 addMatches_(matches, mass, residue, term_spec, variable_mods_, is_delta, tolerance);
333 }
334 }
335
336 // @TODO: should this function handle "max_mods_per_peptide_" as well?
337 void ModificationDefinitionsSet::inferFromPeptides(const vector<PeptideIdentification>& peptides)

Callers 2

startElementMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected