Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix: fixed handling of input functions and unpack when using the pref…
…ix setting of module definitions (#1553)
- Loading branch information
1 parent
6866134
commit d561e04
Showing
8 changed files
with
61 additions
and
10 deletions.
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
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,22 @@ | ||
rule all: | ||
input: | ||
"results/all.done", | ||
|
||
|
||
module other: | ||
snakefile: | ||
"module.smk" | ||
prefix: | ||
"results/other" | ||
|
||
|
||
use rule * from other as other_* | ||
|
||
|
||
rule all_impl: | ||
output: | ||
out=touch("results/all.done"), | ||
input: | ||
b=rules.other_b.output.b, | ||
shell: | ||
"cp {input} {output}" |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
rule a: | ||
output: | ||
a=touch("results/a.txt"), | ||
|
||
|
||
def unpack_a(wildcards): | ||
return {"a": rules.a.output.a} | ||
|
||
|
||
def lambda_a(wildcards): | ||
return rules.a.output.a | ||
|
||
|
||
rule b: | ||
input: | ||
unpack(unpack_a), | ||
# a = lambda_a, | ||
output: | ||
b="results/b.txt", | ||
shell: | ||
"cp {input.a} {output}" |
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