I'd love for this syntax to be supported (many GATK/Picard tools require --input in front of every argument.
rule all:
input:
'out.txt'
rule:
input:
args = ['1', '2', '3']
output:
'out.txt'
shell:
'''echo {' '.join('--input ' + v for v in params.args)} > {output}'''
Otherwise, I have to write:
rule all:
input:
'out.txt'
rule:
input:
args = ['1', '2', '3']
params:
cl_args = ' '.join('--input ' + v for v in ['1', '2', '3'])
output:
'out.txt'
shell:
'''echo {params.cl_args} > {output}'''
This s redundant and gets complicated when ['1', '2', '3'] is a checkpoint function or something complicated
I'd love for this syntax to be supported (many GATK/Picard tools require
--inputin front of every argument.Otherwise, I have to write:
This s redundant and gets complicated when
['1', '2', '3']is a checkpoint function or something complicated