Representation of a peptide/protein sequence.
Definition: AASequence.h:86
Representation of modification definition.
Definition: ModificationDefinition.h:27
Representation of a set of modification definitions.
Definition: ModificationDefinitionsSet.h:33
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:154
bool isCompatible(const AASequence &peptide) const
returns true if the peptide is compatible with the definitions, e.g. does not contain other modificat...
std::set< String > getFixedModificationNames() const
returns only the names of the fixed modifications
std::set< String > getVariableModificationNames() const
returns only the names of the variable modifications
virtual ~ModificationDefinitionsSet()
destructor
ModificationDefinitionsSet()
default constructor
std::set< String > getModificationNames() const
returns only the names of the modifications stored in the set
void setModifications(const std::set< ModificationDefinition > &mod_defs)
sets the modification definitions
void inferFromPeptides(const std::vector< PeptideIdentification > &peptides)
Infers the sets of defined modifications from the modifications present on peptide identifications.
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
const std::set< ModificationDefinition > & getFixedModifications() const
returns the stored fixed modification definitions
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...
Size getMaxModifications() const
return the maximal number of modifications allowed per peptide
const std::set< ModificationDefinition > & getVariableModifications() const
returns the stored variable modification definitions
bool operator!=(const ModificationDefinitionsSet &rhs) const
inequality operator
std::set< ModificationDefinition > fixed_mods_
Definition: ModificationDefinitionsSet.h:152
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
void addModification(const ModificationDefinition &mod_def)
adds a modification definition to the set
std::set< ModificationDefinition > getModifications() const
returns the stored modification definitions
std::set< ModificationDefinition > variable_mods_
Definition: ModificationDefinitionsSet.h:150
ModificationDefinitionsSet & operator=(const ModificationDefinitionsSet &element)
assignment operator
void setMaxModifications(Size max_mod)
sets the maximal number of modifications allowed per peptide
ModificationDefinitionsSet(const ModificationDefinitionsSet &rhs)
copy constructor
TermSpecificity
Position where the modification is allowed to occur.
Definition: ResidueModification.h:72
@ NUMBER_OF_TERM_SPECIFICITY
Definition: ResidueModification.h:78
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:101
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:44
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:22