Closed jorainer closed 2 years ago
could be easily be done using the mz2mass
function from MetaboCoreUtils
: generate mass spectra first and then comparing these.
Did not really help. Results should actually be the same as calculating the neutral loss spectrum by subtracting the precursor m/z (only avoiding negative m/z values).
Maybe stupid idea (and eventually being already covered by neutral loss spectra): assume we have a feature for a
[M+Na]+
of an ion. MS2 spectra for such an ion might (will) not match a reference[M+H]+
ion of the same compound.What if we subtract the ion part from the m/z values of both spectra? i.e. subtract mass of
Na
from all m/z values of the experimental MS2 spectra and the mass ofH
from the m/z values of the reference spectrum. The MS2 spectra will no longer be m/z against intensity but mass against intensity.Maybe worth a try... although, as said, might be the same result we get from a neutral loss spectrum (without having to know which adducts we have).