bittremieux / spectrum_utils

Python package for efficient mass spectrometry data processing and visualization
https://spectrum-utils.readthedocs.io/
Apache License 2.0
130 stars 21 forks source link

Annotating modified lysine Immonium NH3 neutral loss #60

Closed HijaziHassan closed 4 months ago

HijaziHassan commented 4 months ago

Hello,

Is there an option to annotate specific diagnostic ions (which are Immonium ions losing NH3). For example, Kacetyl it will be 126.09 m/z?

Thank you. Hassan

mwang87 commented 4 months ago

Yes totally possible, for example in the interactive interface you can see it here:

http://metabolomics-usi.gnps2.org/dashinterface?usi1=mzspec%3AMSV000085444%3AHui_N3_fe%3Ascan%3A500&width=10.0&height=6.0&mz_min=None&mz_max=None&max_intensity=125&annotate_precision=4&annotation_rotation=90&cosine=standard&fragment_mz_tolerance=0.1&grid=True&annotate_peaks=%5B%5B%5D%2C%20%5B%5D%5D

mwang87 commented 4 months ago

spectrum

HijaziHassan commented 4 months ago

Thank you for this awesome tool. I am working with an unpublished data so the usi help me now. Actually, I was using the pa.annotate_spectrum function with backend='spectrum_utils' from pyteomics library. There, I did not find any argument that allow me to annotate such kind of fragments. Could you please point me at any?

bittremieux commented 4 months ago

If you directly use spectrum_utils itself, you can annotate spectra using MsmsSpectrum.annotate_proforma.

In your case, you'll want to do the following: