addJob: Add a job to a workflow

Description Usage Arguments Examples

View source: R/genMakefile.R

Description

Add a job to a workflow

Usage

1
addJob(wf, job)

Arguments

wf

a variable of workflow class

job

a variable of job class

Examples

1
2
3
4
5
6
7
8
9
j1 <- newJob('id1', 'cmd out1', 'out1')
j2 <- newJob('id2', 'cmd out2', 'out2', depend = 'out1')
w <- newWorkflow("wf")
w <- addJob(w, j1)
w <- addJob(w, j2)

outFile <- file.path(tempdir(), "Makefile")
writeWorkflow(w, outFile)
cat('Outputted Makefile file are in the temp directory:', outFile, '\n')

seqminer documentation built on Feb. 7, 2022, 9:08 a.m.