Open dievsky opened 4 years ago
allow_missing=True
option, then missing wildcards are allowed.w1="value"
and such case rather hard to check"{{w1}}_{{w2}}"
is nothing to expandA suggested example is rather trivial and users will rarely have bugs in such simple case. Much more useful is to allow this inspection to work with cases like:
input: expand(rules.sort_tophat_bams.output, sample=SAMPLES, allow_missing=True)
where:
rule sort_tophat_bams:
output: temp("sorted/{genome}/tophat_{sample}_{genome}.bam")
It is important to cover different widely used scenarios here, e.g. when reference is to:
rules.foo.output
or rules.foo.input
, etc.rules.foo.outptu[1]
or rules.foo.input.key
temp("sorted/{genome}/tophat_{sample}_{genome}.bam")
It would be nice to have an inspection for missing wildcards in
expand
expressions, e.g.should produce a warning because this statement can never succeed.