View source: R/sysargslist_utilities.R
SYSargsList | R Documentation |
SYSargsList
instances are constructed by the SYSargsList
function.
SYSargsList(sysargs = NULL, step_name = "default",
targets = NULL, wf_file = NULL, input_file = NULL, dir_path = ".",
id = "SampleName",
inputvars = NULL, rm_targets_col = NULL,
dir = TRUE, dependency = NA,
run_step = "mandatory",
run_session = "management",
run_remote_resources = NULL,
silent = FALSE,
projPath = getOption("projPath", getwd()))
sysargs |
|
step_name |
character with the step index name. |
targets |
the path to |
wf_file |
name and path to |
input_file |
name and path to |
dir_path |
full path to the directory with the |
id |
A column from |
inputvars |
Each vector element is required to be defined in the |
rm_targets_col |
targets file colunms to be removed. |
dir |
This option allows creating an exclusive results folder for each step in the
workflow. All the outfiles and log files for the particular step will be
created in the respective folders. Default is |
dependency |
character. Dependency tree, required when appending this step to
the workflow. Character name of a previous step in the workflow.
Default is |
run_step |
character. If the step has "mandatory" or "optional" flag for the execution. |
run_session |
character. If the step has "management" or "compute" flag for the execution. |
run_remote_resources |
|
silent |
If set to |
projPath |
a character vector of a full project path name. Default is the current path. |
Daniela Cassol
SYSargs2
, LineWise
, and SPRproject
sal <- SPRproject(overwrite=TRUE)
targetspath <- system.file("extdata/cwl/example/targets_example.txt",
package="systemPipeR")
## Constructor and `appendStep<-`
appendStep(sal) <- SYSargsList(step_name = "echo",
targets=targetspath, dir=TRUE,
wf_file="example/workflow_example.cwl",
input_file="example/example.yml",
dir_path = system.file("extdata/cwl",
package="systemPipeR"),
inputvars = c(Message = "_STRING_",
SampleName = "_SAMPLE_"))
appendStep(sal) <- LineWise(code = {
hello <- lapply(getColumn(sal, step=1, 'outfiles'), function(x) yaml::read_yaml(x))
},
step_name = "R_read",
dependency = "echo")
sal
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.