Skip to main content
Topic: Saving the intermediate xcmsSet objects (Read 2626 times) previous topic - next topic

Saving the intermediate xcmsSet objects

Hi all,

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().

Thanks

Re: Saving the intermediate xcmsSet objects

Reply #1
You can always save R objects with
Code: [Select]
save(objectname, file = "objectname.RData")
which can then be reloaded again into R with
Code: [Select]
load("objectname.RData")
. 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).

best, jo

Re: Saving the intermediate xcmsSet objects

Reply #2
Dear Johannes

Many thanks for your quick help :)


Bests
Narges

Re: Saving the intermediate xcmsSet objects

Reply #3
Dear Johannes

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
Narges