Description Usage Arguments Details Value Author(s) See Also Examples
Collection of functions to construct SYSargsList
workflow control environment
(S4 object).
initWF
function constructs SYSargsList
S4 class objects from a script file.
The latter is an RMarkdown
file containing all the workflow steps. In the future,
it will be accepting other formats, as Rscript
and bash
. This file
is defined either by the sysconfig
file or script
argument.
Internally, initWF
function calls initProject
function, which creates
a storage folder for all the logs, and the output to stdout or stderr. This function
also creates the SYSconfig.yml
on the fly to register all the parameters of
the workflow. This function checks the project structure, which by default is:
SYSproject/
data/
param/
results/
The default structure of the project directories can be modified here.
1 2 3 4 5 6 7 8 | initWF(sysconfig = NULL, subProj = FALSE, dir_str = "level0", dirName = "default",
script, targets = NULL, silent = FALSE, overwrite = FALSE)
initProject(projPath = "./", data = "data", param = "param", results = "results",
script = NULL, targets = NULL, subProj = FALSE, filename = "SYSconfig.yml",
overwrite = FALSE, silent = FALSE)
SYSproject(projPath = "./", overwrite = FALSE, silent = FALSE, tempdir = FALSE)
|
sysconfig |
a character vector of a full |
subProj |
is set TRUE, the project will be initialized and a new directory will be generated,
at the same level as the current project, maintaining the directory structure.
It will create an empty |
dir_str |
if |
dirName |
if |
script |
a character vector of a full |
targets |
a character vector of a full |
silent |
if set to TRUE, all messages returned by the function will be suppressed. |
overwrite |
if set to TRUE, existing files or directories of same name will be overwritten. |
projPath |
a character vector of a full project path name. Default is the current path. |
data |
a character vector of a |
param |
a character vector of a |
results |
a character vector of a |
filename |
name and path of the output file which will store all the project configuration information. Default is |
tempdir |
if set to TRUE, the temporary directory for the workflow management files will be created. |
SYSproject
function detects and creates the project directory to store all
the flat files from the workflow management. If overwrite
is TRUE, the previous
folder will be deleted and replace for a new one. Also, the user can choose to store
all this information on a temporary folder, setting tempdir
= TRUE.
initProject
function detects an existing project or creates a project
structure on the path provide.
SYSproject
will return a character vector containing the path name.
initProject
will return a list containing all the information in the
sysconfig
file.
initWF
will return a SYSargsList
object.
Daniela Cassol and Thomas Girke
See also as SYSargsList-class
.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
## Construct SYSargsList object from Rmd file
library(systemPipeRdata)
script <- system.file("extdata/workflows/rnaseq", "systemPipeRNAseq.Rmd", package="systemPipeRdata")
targets <- system.file("extdata", "targets.txt", package="systemPipeR")
dir_path <- tempdir()
SYSconfig <- initProject(projPath=dir_path, targets=targets, script=script, overwrite = TRUE)
sysargslist <- initWF(sysconfig ="SYSconfig.yml")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.