144 void findMatches(std::multimap<double, ModificationDefinition>& matches,
double mass,
const String& residue =
"",
ResidueModification::TermSpecificity term_spec = ResidueModification::NUMBER_OF_TERM_SPECIFICITY,
bool consider_fixed =
true,
bool consider_variable =
true,
bool is_delta =
true,
double tolerance = 0.01)
const;
Representation of a peptide/protein sequence.
Definition AASequence.h:88
Definition ModificationDefinition.h:31
Definition ModificationDefinitionsSet.h:34
Size getNumberOfModifications() const
returns the number of modifications stored in this set
bool operator==(const ModificationDefinitionsSet &rhs) const
equality operator
void setModifications(const StringList &fixed_modifications, const StringList &variable_modifications)
same as above, but using StringList instead of comma separated strings
Size max_mods_per_peptide_
Definition ModificationDefinitionsSet.h:155
bool isCompatible(const AASequence &peptide) const
returns true if the peptide is compatible with the definitions, e.g. does not contain other modificat...
const std::set< ModificationDefinition > & getVariableModifications() const
returns the stored variable modification definitions
virtual ~ModificationDefinitionsSet()
destructor
ModificationDefinitionsSet()
default constructor
void setModifications(const std::set< ModificationDefinition > &mod_defs)
sets the modification definitions
Size getNumberOfVariableModifications() const
returns the number of variable modifications stored in this set
static void addMatches_(std::multimap< double, ModificationDefinition > &matches, double mass, const String &residue, ResidueModification::TermSpecificity term_spec, const std::set< ModificationDefinition > &source, bool is_delta, double tolerance)
helper function for findMatches() - finds matching modifications in source and adds them to matches
ModificationDefinitionsSet(const StringList &fixed_modifications, const StringList &variable_modifications)
detailed constructor with StringLists
void getModificationNames(StringList &fixed_modifications, StringList &variable_modifications) const
populates the output lists with the modification names (use e.g. for ProteinIdentification::SearchPar...
const std::set< ModificationDefinition > & getFixedModifications() const
returns the stored fixed modification definitions
Size getMaxModifications() const
return the maximal number of modifications allowed per peptide
std::set< String > getModificationNames() const
returns only the names of the modifications stored in the set
std::set< ModificationDefinition > getModifications() const
returns the stored modification definitions
void inferFromPeptides(const PeptideIdentificationList &peptides)
Infers the sets of defined modifications from the modifications present on peptide identifications.
bool operator!=(const ModificationDefinitionsSet &rhs) const
inequality operator
std::set< String > getFixedModificationNames() const
returns only the names of the fixed modifications
std::set< ModificationDefinition > fixed_mods_
Definition ModificationDefinitionsSet.h:153
void findMatches(std::multimap< double, ModificationDefinition > &matches, double mass, const String &residue="", ResidueModification::TermSpecificity term_spec=ResidueModification::NUMBER_OF_TERM_SPECIFICITY, bool consider_fixed=true, bool consider_variable=true, bool is_delta=true, double tolerance=0.01) const
Finds modifications in the set that match a given (delta) mass.
void setModifications(const String &fixed_modifications, const String &variable_modifications)
set the modification definitions from a string
Size getNumberOfFixedModifications() const
returns the number of fixed modifications stored in this set
ModificationDefinitionsSet & operator=(const ModificationDefinitionsSet &element)
assignment operator
std::set< String > getVariableModificationNames() const
returns only the names of the variable modifications
void addModification(const ModificationDefinition &mod_def)
adds a modification definition to the set
std::set< ModificationDefinition > variable_mods_
Definition ModificationDefinitionsSet.h:151
void setMaxModifications(Size max_mod)
sets the maximal number of modifications allowed per peptide
ModificationDefinitionsSet(const ModificationDefinitionsSet &rhs)
copy constructor
Container for peptide identifications from multiple spectra.
Definition PeptideIdentificationList.h:66
TermSpecificity
Position where the modification is allowed to occur.
Definition ResidueModification.h:74
A more convenient string class.
Definition String.h:34
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition Types.h:97
std::vector< String > StringList
Vector of String.
Definition ListUtils.h:44
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19