Question: Does OnDiskMSnExp rewrite original data
0
gravatar for goh
9 months ago by
goh0
goh0 wrote:

Hi,

I'm currently using the new xcms function which executes the following command

raw_data <- readMSData(files = cdfs, pdata = new("NAnnotatedDataFrame", pd), mode = "onDisk") 

 

The command uses OnDiskMSnExp object from MSnbase Bioconductor package. May i know if i made any changes such as retention time alignment using the following command

xdata <- adjustRtime(xdata, param = ObiwarpParam(binSize = 0.6)) 

Does it overwrites my original files ? or it juz creates a new data in Rstudio environment?

Thank you.

Goh. 

 

xcms msnbase ondiskmsnexp • 182 views
ADD COMMENTlink modified 9 months ago by Laurent Gatto1.1k • written 9 months ago by goh0
Answer: Does OnDiskMSnExp rewrite original data
3
gravatar for Laurent Gatto
9 months ago by
Laurent Gatto1.1k
United Kingdom
Laurent Gatto1.1k wrote:

Hi Goh,

No, your original data isn't modified at all. The only way to modify raw data on disk is to write it explicitly to a file using writeMSData. Note however that in your example, the raw data object raw_data, once created, isn't modified at all, as you use xdata to adjust retention time - probably only a result of copy/pasting parts of a longer script.

ADD COMMENTlink written 9 months ago by Laurent Gatto1.1k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 118 users visited in the last hour