Description Usage Arguments Author(s) See Also Examples
Return subsets of character
for the input
, output
or the list of command-line for each workflow step
.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Construct SYSargs2 object
targets <- system.file("extdata", "targets.txt", package="systemPipeR")
dir_path <- system.file("extdata/cwl/hisat2/hisat2-se", package="systemPipeR")
WF <- loadWorkflow(targets=targets, wf_file="hisat2-mapping-se.cwl",
input_file="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.