I am working on a metabolic dataset using XCMS pipeline.
Is there a way to save the intermediate xcmsSet objects as a file which can be loaded and used later by the needed functions? e.g. loading the result of the xcmsSet() inside the group().
You can always save R objects with
save(objectname, file = "objectname.RData")
which can then be reloaded again into R with
. Note however that I would suggest to switch from the old xcms workflow to the new functionality and objects to analyse data with xcms (http://sneumann.github.io/xcms/articles/xcms.html).
Many thanks for your quick help :)
I save and load the xcmsSet object:
save(xset, file = "xset.RData")
xset = load("xset.RData")
But I think it needs type conversion after being loaded. Would you please tell me how to convert it to an xcmsSet object?
I just found type.convert(), but it dose not work in this case.
Thanks in advance