New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are the mass of the generated fragments match the m/zs of fragments ? #13

Open
hcji opened this Issue Jan 21, 2018 · 9 comments

Comments

Projects
None yet
3 participants
@hcji

hcji commented Jan 21, 2018

Hi,
I tried using the frag.generateFragments function to generate the theoretical fragments of MS/MS. Then I used the get.natural.mass of rcdk package to obtain the mass values of the fragments. But I have a question, should the obtained mass values match the m/z of the MS/MS spectrum? or the mass values should add or reduce a H atom so as to match the m/z of the MS/MS spectrum? Thank you.

Best wishes

@schymane

This comment has been minimized.

schymane commented Jan 21, 2018

@hcji

This comment has been minimized.

hcji commented Jan 21, 2018

well, the example codes of frag.generateFragments are:
smiles <- "CN(C)CC(C1=C=C(C=C1)OC)C2(CCCCC2)O"
molecule <- parse.smiles(smiles)[[1]]
fragments <- frag.generateFragments(molecule)

I thought the fragments should mean the fragments of MS/MS, right ?
so, I get the mass values of them via:
masses <- sapply(fragments, rcdk::get.natural.mass)

My question is "Can I take the masses as the predicted m/z values of MS/MS ?" or I should add/deduct the mass of "H" from the results ? or some other ?

@schymane

This comment has been minimized.

schymane commented Jan 21, 2018

@schymane

This comment has been minimized.

schymane commented Jan 21, 2018

I just ran the formula I generated with your SMILES through MetFragBeta with KEGG and, since Tramadol matched, I took a mass spectrum from Tramadol:
http://mona.fiehnlab.ucdavis.edu/spectra/display/EA256709
https://massbank.eu/MassBank/jsp/RecordDisplay.jsp?id=EA256709&dsn=Eawag
image

image

If you look at the fragments generated for the candidates, you will see e.g. for Tramadol, no H adjustment should be necessary (you obtain this picture if you click on "fragments" per candidate:
image

But for the second candidate, there was some adjustment:
image

You may need to try some of your own examples to see how MetFrag deals with this, I hope this help you make a start?

@NGAlab

This comment has been minimized.

NGAlab commented Dec 1, 2018

Hi,
how can i get the fragment intensities, not only the masses?

the previus posts are very interesting and useful, thanks

@schymane

This comment has been minimized.

schymane commented Dec 1, 2018

@NGAlab

This comment has been minimized.

NGAlab commented Dec 1, 2018

Thanks for the quick response,
What I would like to know is how I cat get the intensity value for each fragment generated in R with the function written before:

smiles <- "CN(C)CC(C1=C=C(C=C1)OC)C2(CCCCC2)O"
molecule <- parse.smiles(smiles)[[1]]
fragments <- frag.generateFragments(molecule)

the masses I can get with the function:
masses <- sapply(fragments, rcdk::get.natural.mass)

how can I get the intensities?

Intensities <- ????

Thanks again

@schymane

This comment has been minimized.

schymane commented Dec 1, 2018

@NGAlab

This comment has been minimized.

NGAlab commented Dec 1, 2018

ok, completely clear.

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment