Closed JB91451 closed 9 months ago
Hi Juegen!
The modX notation that Pyteomics uses implies that lowercase letters work as a prefix to the uppercase amino acid letter. That is to say, a modified methionine could be designated as oxM
, or any other lowercase prefix followed by M
.
You can put an entry for "oxM"
into your aa_comp
dict, or just for "ox"
(in the latter case the value would be just {'O': 1}
.
TLDR: Right now Pyteomics thinks that m
is a modification, not a modified amino acid. You can fix this if you just substitute m
by oxM
in all sequences and in the aa_comp
.
Hope this helps, I'll be glad to assist if you have further questions.
Best, Lev
Hi Lev,
Thank you for your help. Changing the m to oxM fixed the issue perfectly fine.
Best, Juergen
Dear all,
I currently try to write .msp spectral library files from scratch and use the mass.calculate_mass() function to calculate precursor masses from peptide sequences. As the peptides contain variable methionine oxidation as well as fixed carbamidomethylation, I use the following line to modify the mass lists:
However, I noticed that this fails with the following error message if the modified amino acid is located C-terminally:
Is there an alternative way to specify the required modifications or do you have any suggestion how to solve this?
Best regards, Juergen