You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snakemake version 6.1.1 and git version 6.1.1+7.g5349f2a4
Describe the bug
Errors are thrown if we have modified rules made using the use rule ... as ... with: syntax in a Snakemake module while snakemake --list.
Minimal example
Assume there are two rules defined in a module other_workflow.smk. There is one scenario in which everything works as expected and 2 in which errors are thrown.
❯ snakemake -l
KeyError in line 7 of /home/avmo/src/sandbox/snakemake-module-issue/other_workflow.smk:
'some_task'
File "/home/avmo/src/sandbox/snakemake-module-issue/Snakefile", line 5, in<module>
File "/home/avmo/src/sandbox/snakemake-module-issue/other_workflow.smk", line 7, in<module>
It seems like an issue with the scope of the modules.
❯ snakemake -l
CreateRuleException in line 7 of /home/avmo/src/sandbox/snakemake-module-issue/other_workflow.smk:
The name another_task is already used by another rule
File "/home/avmo/src/sandbox/snakemake-module-issue/Snakefile", line 9, in<module>
File "/home/avmo/src/sandbox/snakemake-module-issue/other_workflow.smk", line 7, in<module>
It seems like an issue with importing rules multiple times
The text was updated successfully, but these errors were encountered:
ashwinvis
changed the title
Key error while using modifying use statement in the module
KeyError and CreateRuleException while using modifying use statement
Apr 16, 2021
Snakemake version 6.1.1 and git version 6.1.1+7.g5349f2a4
Describe the bug
Errors are thrown if we have modified rules made using the
use rule ... as ... with:
syntax in a Snakemake module whilesnakemake --list
.Minimal example
Assume there are two rules defined in a module
other_workflow.smk
. There is one scenario in which everything works as expected and 2 in which errors are thrown.It seems like an issue with the scope of the modules.
It seems like an issue with importing rules multiple times
The text was updated successfully, but these errors were encountered: