Description Usage Arguments Value Author(s) References See Also Examples
The constructor function creates an SYSargs2
S4 class object from three input files: a CWL param
and input
files, and one simple tabular files, a targets
file. The latter is optional for workflow steps lacking input files. Also, the function creates and saves theCWL param
files. The latest storages all the parameters required for running command-line software, following the standard and specification defined on Common Workflow Language (CWL).
1 |
targets |
Path to |
commandLine |
Object of class |
results_path |
Path to the |
module_load |
Name of software to load as |
file |
Default is |
overwrite |
If set to |
cwlVersion |
version of the Common Workflow Language. More information here: https://www.commonwl.org/. |
class |
Names of Common Workflow Language Specification. The following switches are accepted: |
SYSargs2
object
Daniela Cassol and Thomas Girke
For more details on CWL
, please consult the following page: https://www.commonwl.org/
loadWorkflow
renderWF
showClass("SYSargs2")
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | # "hisat2 -S ./results/_SampleName_.sam -x ./data/tair10.fasta -k 1 --min-intronlen 30 --max-intronlen 3000 --threads 4 -U _FASTQ_PATH1_ "
## Provide a list with all the arguments
baseCommand <- list(baseCommand="hisat2")
inputs <- list(
"S"=list(type="File", preF="-S", yml="./results/_SampleName_.sam"),
"x"=list(type="File", preF="-x", yml="./data/tair10.fasta"),
"k"= list(type="int", preF="-k", yml= 1L),
"threads"= list(type="int", preF="-threads", yml=4L),
"min-intronlen"= list(type="int", preF="--min-intronlen", yml= 30L),
"max-intronlen"= list(type="int", preF="--max-intronlen", yml=3000L),
"U"=list(type="File", preF="-U", yml="./data/_FASTQ_PATH1_") )
outputs <- list("hisat2_sam"=list(type="File", "./results/_SampleName_.sam"))
commandLine <- list(baseCommand=baseCommand, inputs=inputs, outputs=outputs)
## Not run:
## Create a SYSargs2 object and populate all the command-line
## Note: the following expects a 'param/cwl' directory within the present working directory of a user's R session.
targets <- system.file("extdata", "targets.txt", package="systemPipeR")
WF <- createWF(targets=targets, commandLine, results_path="./results", module_load="baseCommand", file = "default", overwrite = FALSE, cwlVersion = "v1.0", class = "CommandLineTool")
WF <- renderWF(WF, inputvars=c(FileName="_FASTQ_PATH1_", SampleName="_SampleName_"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.