49 static constexpr double MASS_TOLERANCE = 1e-6;
54 int max_mods_per_peptide{5};
55 int term_distance{-1};
145 static std::vector<CometModification>
mergeModifications(
const std::vector<CometModification>& mods);
Representation of a modification on an amino acid residue.
Definition ResidueModification.h:55
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 that represents one Comet variable_modXX entry and supports merging compatible entries.
Definition CometModification.h:47
void merge(const CometModification &other)
Merge another compatible entry into this one.
CometModification(const ResidueModification *mod, int binary_grp, int max_mods)
Build an entry from an OpenMS ResidueModification.
CometModification()=default
Default constructor; produces a zeroed entry with mass == 0.
bool isMergeableWith(const CometModification &other) const
Whether two entries can be combined into a single Comet variable_modXX line.
std::string residues
Residue(s) this modification applies to (e.g. "K", "KR", "n", "nKR").
Definition CometModification.h:52
std::string toCometString(Size index) const
Render this entry as a Comet variable_modXX parameter line.
static std::vector< CometModification > mergeModifications(const std::vector< CometModification > &mods)
Greedy first-fit merge of a vector of entries.