45 static constexpr double MASS_TOLERANCE = 1e-6;
50 int max_mods_per_peptide{5};
51 int term_distance{-1};
71 static std::vector<CometModification>
mergeModifications(
const std::vector<CometModification>& mods);
Representation of a modification on an amino acid residue.
Definition ResidueModification.h:55
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
Main OpenMS namespace.
Definition openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19
Helper struct to represent a Comet variable modification entry.
Definition CometModification.h:43
void merge(const CometModification &other)
Merge another modification into this one.
CometModification(const ResidueModification *mod, int binary_grp, int max_mods)
Constructor from ResidueModification.
String toCometString(Size index) const
Generate the Comet param file line format for the given 1-based index.
CometModification()=default
Default constructor.
bool isMergeableWith(const CometModification &other) const
Check if this modification can be merged with another.
static std::vector< CometModification > mergeModifications(const std::vector< CometModification > &mods)
Merge a vector of CometModifications, combining compatible entries.
String residues
Residue(s) this modification applies to (e.g., "K", "KR", "n", "nKR")
Definition CometModification.h:48