Chapter 2 File converter
The script 1.Pipeline_extension_format_converter.R
is available under the folder of J:\CBMR\SUN-CBMR-Metabolomics\Workflow\Script\modules
2.5 Conduct
2.5.2 File converter for adapting to run XCMS
source(paste0(path_func, "/file-conversion.R"))
#Create a sibling folder for storing files from openms
path_files_from_openms <- paste0(dirname(path_files_from_DA), "/mzML_openms_MS2_", polarity)
if (!dir.exists(file.path(path_files_from_openms))) dir.create(path_files_from_openms, showWarnings = FALSE, recursive = TRUE)
#conduct converting
mapply(function(x, y) file_conversion(x,y, path_openms, ".mzML", ".mzML"), path_files_from_openms, path_files_from_DA)