wildcards
only appears in two cases as far as I can tell
- when using a function to define input files
- in a lambda function , as in e.g. params:
stagger_len = lambda wildcards: stagger(int(wildcards.REVNUM))
Including variables in an expansion doesn't seem to work at first:
demuxed=expand("demux/fwd{FWDNUM}-rev{REVNUM}_R1.fastq", FWDNUM=padded_range()),
does not work - complains about missing variable subsitution REVNUm.
However, putting double braces as in:
demuxed=expand("demux/fwd{FWDNUM}-rev{{REVNUM}}_R1.fastq", FWDNUM=padded_range()),
works just fine.
Passing {text} in a parameter or output file name (as in {name} when using cutadapt) does not work when double escaping {{ as recommended by the manual or in the program.
outparm="demux/\{name\}-rev{REVNUM}_R1.fastq"
works just fine.