snakemake icon indicating copy to clipboard operation
snakemake copied to clipboard

Check rule-specific references also in dryrun

Open chrarnold opened this issue 3 years ago • 1 comments

Snakemake version 7.8, and all versions before

Describe the bug The dryrun should also catch, if possible, rule-specific errors such as referencing {input.bam} in other rule sections(message, or shell) when in fact, {input.bam} doesnt exist. Currently, the dryrun works fine and doesnt catch this, and only in a real run snakemake aborts with an error. From a dev and user perspective, would be great if such thing can be checked already with a dryrun.

Minimal example I can add if needed, but I think this fairly straight forward to construct

chrarnold avatar May 30 '22 14:05 chrarnold

You mean when the shell section refers to {input.bam}, while there is no bam file defined in the input section of the rule? It might be better to check that in the linting rather then dry-run

Redmar-van-den-Berg avatar Jul 05 '22 13:07 Redmar-van-den-Berg