Description Usage Arguments Value Author(s) Examples
Note: This function as been deprecated. Please use clusterRun
instead. qsubRun
submits command-line tools to queue (e.g. Torque) of compute cluster using run specifications defined by runX
and getQsubargs
functions.
1 |
appfct |
Accpets runX functions, such as |
args |
Argument list returned by |
qsubargs |
Argument list returned by |
Nqsubs |
Interger defining the number of qsub processes. Note: the function will not assign more qsub processes than there are FASTQ files. E.g. if there are 10 FASTQ files and |
package |
Package to load. Name provided as character vector of length one. Default is |
shebang |
defines |
Returns list where list components contain FASTQ file names and their names are the qsub process IDs assiged by the queuing system. In addition, three files will be generated for each qsub submission process: submitargs0X
(R object containing appargs), submitargs0X.R
(R script using appargs) and submitargs0X.sh
(shell submission script). In addition, the chosen runX
function will output a submitargs0X_log
file for each qsub process containing the executable commands processed by each qsub instance.
Thomas Girke
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Construct SYSargs object from param and targets files
param <- system.file("extdata", "tophat.param", package="systemPipeR")
targets <- system.file("extdata", "targets.txt", package="systemPipeR")
args <- systemArgs(sysma=param, mytargets=targets)
args
names(args); modules(args); cores(args); outpaths(args); sysargs(args)
## Not run:
## Execute SYSargs on single machine
runCommandline(args=args)
## Execute SYSargs on multiple machines
qsubargs <- getQsubargs(queue="batch", Nnodes="nodes=1", cores=cores(tophat), memory="mem=10gb", time="walltime=20:00:00")
qsubRun(args=args, qsubargs=qsubargs, Nqsubs=1, package="systemPipeR")
## Alignment stats
read_statsDF <- alignStats(fqpaths=tophatargs$infile1, bampaths=bampaths, fqgz=TRUE)
read_statsDF <- cbind(read_statsDF[targets$FileName,], targets)
write.table(read_statsDF, "results/alignStats.xls", row.names=FALSE, quote=FALSE, sep="\t")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.