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: fix errors occurring when refering to input func via rules.<rule…
…name>.input (#1669) * fix: fix errors occurring when refering to input func via rules.<rulename>.input * skip win * fix for cases when a prefix is provided
- Loading branch information
1 parent
f1ffbf2
commit 28a4795
Showing
6 changed files
with
55 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
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 @@ | ||
module mod1: | ||
snakefile: | ||
"module1/Snakefile" | ||
prefix: | ||
"test/" | ||
|
||
|
||
use rule * from mod1 as mod1_* | ||
|
||
|
||
rule all: | ||
input: | ||
rules.mod1_all.input, | ||
default_target: True |
1 change: 1 addition & 0 deletions
1
tests/test_module_input_func/expected-results/test/results/C.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 @@ | ||
C |
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,15 @@ | ||
def txt_output(wildcards): | ||
return ["results/C.txt"] | ||
|
||
|
||
rule all: | ||
input: | ||
txt_output | ||
|
||
|
||
rule txt: | ||
output: | ||
"results/C.txt" | ||
shell: | ||
"echo 'C' " | ||
">{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