protected virtual void SetVariableMods(AminoAcidPolymer peptide, string modname, int residue) { IMass mod; if (_variableMods.TryGetValue(modname, out mod)) { peptide.SetModification(mod, residue); } }