Metabolomics Society Forum

Software => Other => Topic started by: Wang on June 27, 2021, 01:05:44 AM

Title: Running msconvert with R?
Post by: Wang on June 27, 2021, 01:05:44 AM
Hi all,

I am trying to run MSConvert with R, but I got 127 error. What could be the problem?

Code: [Select]
msconvert <- "C:/Program Files (x86)/ProteoWizard/ProteoWizard 3.0.21175.5b6d9afee/msconvert.exe"
file <- "C:/Users/Desktop/Data/QC1.raw"
outfile <- "C:/Users/Desktop/Data"
convert <- paste0(msconvert," --mzXML, -o outfile -v", file)
system(convert)

Thanks for your help.


Title: Re: Running msconvert with R?
Post by: Jan Stanstrup on September 15, 2021, 02:11:37 AM
Does it work in the GUI?
You at least need a space after "-v" for that to work.

Take a look at the example here: https://gitlab.com/stanstrup-work/snippets/-/blob/master/ms%20data%20conversion/msconvert_par.R

That will convert multiple files in parallel.