#Reproducible Example
#```
import pyteomics.mass as mass
variable_mods={'pr-': True, # N-term prop
'me2': ['K'],
'bu': ['K'],
'pr': ['K']
}
modifications = {
'pr-': 'Propionyl',
'me2': 'Dimethyl',
'bu': 'Butyryl',
'pr': 'Propionyl'
}
aa_comp = dict(mass.std_aa_comp)
db = mass.Unimod()
for mod, mod_name in modifications.items():
aa_comp[mod] = db.by_title(mod_name)['composition']
mass.calculate_mass(sequence = 'pr-buKSAPATGGVme2KprKPHR', aa_comp=aa_comp, charge=0, ion_type='M', max_mods=None, )
#```
#>>> mass.calculate_mass(sequence = 'pr-buKSAPATGGVme2KprKPHR', aa_comp=aa_comp, charge=0, ion_type='M', max_mods=None)
#1641.94404950555
#Whereas the mass must be: 1642.951859
#Where am I mistaken?