From fcb615d7e5694b036e592ebca1121f9d6b331e81 Mon Sep 17 00:00:00 2001 From: hcji Date: Fri, 25 Sep 2020 16:45:52 +0800 Subject: [PATCH] support mzml --- R/DecoMetDIA.R | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/R/DecoMetDIA.R b/R/DecoMetDIA.R index 94400c4..4f5d712 100644 --- a/R/DecoMetDIA.R +++ b/R/DecoMetDIA.R @@ -97,7 +97,9 @@ DecoMetDIA <- function(d.in = '.', filed.ms1.filter <- match.arg(filed.ms1.filter) d.out <- CreateResultDir(d.out, is.overwrite = FALSE) - files <- list.files(d.in, recursive = TRUE, full.names = TRUE, pattern = '(?i)mzxml$') + files_mzxml <- list.files(d.in, recursive = TRUE, full.names = TRUE, pattern = '(?i)mzxml$') + files_mzml <- list.files(d.in, recursive = TRUE, full.names = TRUE, pattern = '(?i)mzml$') + files <- c(files_mzxml, files_mzml) nSlaves <- min(parallel::detectCores() - 1, nSlaves, length(files)) bpparam <- SnowParam(workers = nSlaves, type = 'SOCK')