View source: R/sysargs2_utilities.R
output_update | R Documentation |
SYSargs2
object
After executing all the command-lines by the runCommadline
function, the output files can be created in specific directories rather then results
in a particular directory. Also, the runCommadline
function allows converting the SAM file outputs to sorted and indexed BAM files. Thus, the output_update
function allows updating the location of these files in the output of the SYSargs2
object.
output_update(args, dir = FALSE, dir.name = NULL, replace = FALSE, extension = NULL, make_bam=FALSE, del_sam=TRUE)
args |
object of class |
dir |
assign |
dir.name |
if the results directory name is not specified in the |
replace |
replace the extension for selected output files in the |
extension |
object of class |
make_bam |
Auto detects SAM file outputs and update them on the |
del_sam |
This option allows deleting the SAM files created when the |
SYSargs2
object with output location files updated.
Daniela Cassol and Thomas Girke
To check directory name in the input
file: yamlinput(WF)$results_path$path
.
## Construct SYSargs2 object from CWl param, CWL input, and targets files
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
output(WF)
## Not run:
runCommandline(args=WF, make_bam=TRUE)
## Output paths update
WF <- output_update(WF, dir=FALSE, replace=TRUE, extension=c(".sam", ".bam"))
runCommandline(args=WF, make_bam=TRUE, dir=TRUE)
## Output paths update
WF <- output_update(WF, dir=TRUE, replace=TRUE, extension=c(".sam", ".bam"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.