Skip to main content
Topic: How do you use the loadings plot to find metabolites? (Read 5436 times) previous topic - next topic

How do you use the loadings plot to find metabolites?

Good day everyone, I am new to the group and also new to metabolomics and xcms. I've tried out the guide in the "xcms cookbook" section regarding PCA & MDS.
After getting the loadings plot with the text, which has the format x/y for each loading, where x and y is a real number (e.g. 313.3/1313), I was wondering how would you go about
returning to the actual data to find the retention time for which this interesting feature elutes? If I am not mistaken, before PCA, the data was normalized, and after that the dimensions are reduced, if so how would you try to go back to the source of the interesting feature?

Thank you very much  :D

Re: How do you use the loadings plot to find metabolites?

Reply #1
Greg,

So the real number that you refer to is the mass to charge ration (m/z) and the second number is the retention time. In your example the m/z is 313.3 and the retention time is 1313seconds. If you want to get a better resolution on the mass then you can do something like:

Code: [Select]
ix<-which(fill@groups[,"mzmed"] > 313.3 & fill@groups[,"mzmed"] < 313.4 & fill@groups[,"rtmed"] > 1313) 
dim(fill@groups[ix,]) ## this will tell you how many results you have, hopefully only one :)
fill@groups[ix,] ## look at the results

However, from your question I'm not sure if you want to look at the loadings in more detail as well. You can access the loadings directly using something like:
Code: [Select]
loadings<-loadings(pca.result)
head(loadings)
The loadings are descriptors of the original variable. They tell you how the variables are connected. If you go back to the original data you may or may not see a statistical significant result with a t-test. I would suggest looking at some of the information on PCA. The simca website is very useful and holds a wealth of information.

Some good sites that I have found useful in the past:
http://www.umetrics.com/Content/Documen ... artI-3.pdf  ## this is a nice introduction
http://www.metabolomics.se/Courses/MVA/ ... hu-Fri.pdf ## A lot of slides and progressive. A very good explanation, shows the reasons for scaling, which the example on the cookbook does not do.

http://www.statsoft.com/textbook/princi ... -analysis/
~~
H. Paul Benton
Scripps Research Institute
If you have an error with XCMS Online please send me the JOBID and submit an error via the XCMS Online contact page

 

Re: How do you use the loadings plot to find metabolites?

Reply #2
hpbenton,

Thank you very much for the explanation, it has helped me a lot (it makes much more sense now).
As for the additional sources, I will look into them (thanks for that as well).