There are times when we may need to change the attach a suffix to all the job names.
Consider a scenario, where we have a flow fastq to mutest.
There are jobs which need to work on tumor and normal individually, and we want to be able to refer to them.
For example, by default we may have jobs such as bwa, index etc.. But now we want bwa_t, index_t, bwa_n, index_n and so on.
One option is, that we customize EACH function to accept a job name_suffix (this may be troublesome)
out_a = fastq_preproc(wd1, sample1, jobname_suffix = "_a")
out_b = fastq_preproc(wd2, sample2, jobname_suffix = "_b")
Alternative:
Instead, we would do something like this:
out_t = fastq_preproc(wd1, sample1)
out_b = fastq_preproc(wd2, sample2)
# add a suffix to ALL the jobs
out_t$flowmat$jobname = paste(out_t$flowmat$jobname, "t", sep = "_")
There are times when we may need to change the attach a suffix to all the job names.
Consider a scenario, where we have a flow fastq to mutest.
There are jobs which need to work on tumor and normal individually, and we want to be able to refer to them.
For example, by default we may have jobs such as bwa, index etc.. But now we want bwa_t, index_t, bwa_n, index_n and so on.
One option is, that we customize EACH function to accept a job name_suffix (this may be troublesome)
Alternative:
Instead, we would do something like this: