View source: R/sysargs2_utilities.R
subsetWF | R Documentation |
Return subsets of character
for the input
, output
or the list of command-line for each workflow step
.
subsetWF(args, slot, subset=NULL, index=NULL, delete=FALSE)
args |
object of class |
slot |
three options available: |
subset |
name or numeric position of the values to be subsetting in the |
index |
A numeric index positions of the file in |
delete |
allows to delete a subset of files in the case of |
Daniela Cassol and Thomas Girke
loadWorkflow
renderWF
## Construct SYSargs2 object
targets <- system.file("extdata", "targets.txt", package="systemPipeR")
dir_path <- system.file("extdata/cwl", package="systemPipeR")
WF <- loadWorkflow(targets=targets, wf_file="hisat2/hisat2-mapping-se.cwl",
input_file="hisat2/hisat2-mapping-se.yml", dir_path=dir_path)
WF <- renderWF(WF, inputvars=c(FileName="_FASTQ_PATH1_", SampleName="_SampleName_"))
WF
## Testing subset_wf function
input <- subsetWF(WF, slot="input", subset='FileName')
output <- subsetWF(WF, slot="output", subset=1, index=1)
step.cmd <- subsetWF(WF, slot="step", subset=1) ## subset all the HISAT2 commandline
# subsetWF(WF, slot="output", subset=1, index=1, delete=TRUE) ## in order to delete the subset files list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.