Skip to content

Commit

Permalink
Added Slurm support
Browse files Browse the repository at this point in the history
  • Loading branch information
schmic05 committed Nov 17, 2020
1 parent d13c1d5 commit f9b2a34
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions R/start_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ start.refreeewas.analysis <- function(meth.data=NULL,
#' @param cores Integer representing the number of cores to be used in the analysis.
#' @param itermax Maximum number of iterations
#' @param ninit Number if initialtions.
#' @param cluster.submit Flag indicating, if the jobs are to be submitted to a scientific compute cluster (only SGE supported).
#' @param cluster.submit Flag indicating, if the jobs are to be submitted to a scientific compute cluster (only SGE and SLURM supported).
#' @param cluster.architecture The cluster architecture used. Currently \code{'SGE'} and \code{'SLURM'} supported
#' @param cluster.R.dir Path to an executable version of R.
#' @param cluster.hostlist Regular expression, on which basis hosts are selected in the cluster environment.
#' @param cluster.memlimit the \code{memlimit} resource value of the cluster submission.
Expand Down Expand Up @@ -265,6 +266,7 @@ start.medecom.analysis<-function(
itermax=1000,
ninit=100,
cluster.submit=FALSE,
cluster.architecture="SGE",
cluster.R.dir=NA,
cluster.hostlist="*",
cluster.memlimit="5G",
Expand Down Expand Up @@ -358,7 +360,7 @@ start.medecom.analysis<-function(
}
}
if(cluster.submit){
cluster.settings=list(R_bin_dir=cluster.R.dir, host_pattern=cluster.hostlist, mem_limit=cluster.memlimit)
cluster.settings=list(R_bin_dir=cluster.R.dir, host_pattern=cluster.hostlist, mem_limit=cluster.memlimit,cluster_architecture=cluster.architecture)
}else{
cluster.settings=NULL
}
Expand Down Expand Up @@ -531,7 +533,8 @@ start.medecom.analysis<-function(
#' @param cores Integer representing the number of cores to be used in the analysis.
#' @param itermax Maximum number of iterations
#' @param ninit Number if initialtions.
#' @param cluster.submit Flag indicating, if the jobs are to be submitted to a scientific compute cluster (only SGE supported).
#' @param cluster.submit Flag indicating, if the jobs are to be submitted to a scientific compute cluster (only SGE and SLURM supported).
#' @param cluster.architecture The cluster architecture used. Currently \code{'SGE'} and \code{'SLURM'} supported
#' @param cluster.Rdir Path to an executable version of R.
#' @param cluster.hostlist Regular expression, on which basis hosts are selected in the cluster environment.
#' @param cluster.memlimit the \code{memlimit} resource value of the cluster submission.
Expand Down Expand Up @@ -598,6 +601,7 @@ start.decomp.pipeline <- function(rnb.set,
itermax=1000,
ninit=100,
cluster.submit=FALSE,
cluster.architecture="SGE",
cluster.Rdir=NA,
cluster.hostlist="*",
cluster.memlimit="5G",
Expand Down Expand Up @@ -705,6 +709,7 @@ start.decomp.pipeline <- function(rnb.set,
itermax=itermax,
ninit=ninit,
cluster.submit=cluster.submit,
cluster.architecture=cluster.architecture,
cluster.R.dir=cluster.Rdir,
cluster.hostlist=cluster.hostlist,
cluster.memlimit=cluster.memlimit,
Expand Down

0 comments on commit f9b2a34

Please sign in to comment.