36 #ifndef OPENMS_CHEMISTRY_MODIFICATIONDEFINITIONSSET_H 37 #define OPENMS_CHEMISTRY_MODIFICATIONDEFINITIONSSET_H 82 void setMaxModifications(
Size max_mod);
86 Size getMaxModifications()
const;
89 Size getNumberOfModifications()
const;
92 Size getNumberOfFixedModifications()
const;
95 Size getNumberOfVariableModifications()
const;
101 void setModifications(
const std::set<ModificationDefinition>& mod_defs);
109 void setModifications(
const String& fixed_modifications,
const String& variable_modifications);
112 void setModifications(
const StringList& fixed_modifications,
const StringList& variable_modifications);
115 std::set<ModificationDefinition> getModifications()
const;
118 const std::set<ModificationDefinition>& getFixedModifications()
const;
121 const std::set<ModificationDefinition>& getVariableModifications()
const;
124 std::set<String> getModificationNames()
const;
127 void getModificationNames(
StringList& fixed_modifications,
StringList& variable_modifications)
const;
130 std::set<String> getFixedModificationNames()
const;
133 std::set<String> getVariableModificationNames()
const;
146 bool isCompatible(
const AASequence& peptide)
const;
173 void inferFromPeptides(
const std::vector<PeptideIdentification>& peptides);
184 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);
std::set< ModificationDefinition > fixed_mods_
Definition: ModificationDefinitionsSet.h:179
A more convenient string class.
Definition: String.h:57
Definition: ResidueModification.h:103
bool operator==(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:806
Representation of a peptide/protein sequence.
Definition: AASequence.h:108
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
Representation of a set of modification definitions.
Definition: ModificationDefinitionsSet.h:59
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:96
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:74
Representation of modification definition.
Definition: ModificationDefinition.h:53
std::set< ModificationDefinition > variable_mods_
Definition: ModificationDefinitionsSet.h:177
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:128
Size max_mods_per_peptide_
Definition: ModificationDefinitionsSet.h:181