Process batches (DBAS) using SLURM by selecting directories
Source:R/screening-launchProcess.R
dbaScreeningSelectedBatchesSlurm.RdChoose which batches to process by selecting the directory where the measurement files are stored. `dbaScreeningSelectedBatchesSlurm()` will create necessary files for submission of the job to the workflow manager SLURM.
Details
Three files are created, the records of all files to process, organized into batches (.RDS); the R script which SLURM needs to run, and the SLURM job file (.sbatch). The command needed to start the process is given as a message (you may need to switch to a SLURM-enabled server).
Examples
if (FALSE) { # \dontrun{
userEmail <- "example@bafg.de"
dirResults <- "processingResults"
msrawfileIndexName <- "ntsp25.2_msrawfiles"
library(ntsportal)
connectNtsportal()
file.remove(list.files(dirResults, f = T))
dbaScreeningSelectedBatchesSlurm(
msrawfileIndex = msrawfileIndexName,
batchDirs = "/root/dir/all/msrawfiles",
saveDirectory = dirResults,
email = userEmail
)
} # }