Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix pepfile handling in case of module usage (#1387)
* fix: fix pepfile handling in case of module usage * skip on win
- Loading branch information
1 parent
7a8da9f
commit f097a76
Showing
12 changed files
with
60 additions
and
11 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,15 @@ | ||
shell.executable("bash") | ||
|
||
configfile: "config/config.yaml" | ||
|
||
|
||
module test: | ||
snakefile: | ||
"module-test/Snakefile" | ||
config: | ||
config | ||
prefix: | ||
"foo" | ||
|
||
|
||
use rule * from test |
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,2 @@ | ||
test: 1 | ||
pepfile: "pep/config.yaml" |
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 @@ | ||
1 |
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 @@ | ||
configfile: "config.yaml" # does not exist, but this statement should be ignored on module import | ||
pepfile: config["pepfile"] | ||
|
||
def some_func(): | ||
return 15 | ||
|
||
print(pep) | ||
|
||
rule a: | ||
output: | ||
"results/test.out", | ||
"/tmp/foo.txt" | ||
shell: | ||
"echo {config[test]} > {output[0]}; touch {output[1]}" |
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,2 @@ | ||
pep_version: "2.0.0" | ||
sample_table: sample_table.csv |
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,3 @@ | ||
sample_name,protocol | ||
a,test | ||
b,test2 |
4 changes: 3 additions & 1 deletion
4
tests/test_peppy/workflow/Snakefile → tests/test_peppy/Snakefile
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
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