Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added missing input files in reason.updated_input in dag.py
Let's consider a 'A' rule that takes 'N' inputs from a 'B' rule with different wildcards. The input function for the A rule requests output files from 'B'. If a first run has already generated the output of 'A' and 'B' and if the input function of 'A' requests new input files from B not yet generated, snakemake will neither generate missing 'B' output files nor regenerate the 'A' output. However the list-input-changes is able to list correctly the missing files. The commit allows to generate missing 'B' outputs and regenerate the 'A' output.
- Loading branch information
Christophe Clienti
committed
Mar 7, 2022
1 parent
ef0475c
commit 326bf7c
Showing
6 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
rule all: | ||
input: | ||
lambda wildcards: [rules.B.output[0].format(name=name) | ||
for name in config.get("names", "john").split(",")] | ||
output: | ||
"A.txt" | ||
|
||
run: | ||
f = open(output[0], "w") | ||
f.write(' '.join(input) + "\n") | ||
|
||
rule B: | ||
output: | ||
touch("B-{name}.txt") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
B-john.txt B-doe.txt |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters