File: module_shallow.smk

package info (click to toggle)
snakemake 7.32.4-8.1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 25,836 kB
  • sloc: python: 32,846; javascript: 1,287; makefile: 247; sh: 163; ansic: 57; lisp: 9
file content (19 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module deep_module:
    snakefile:
        "module_deep.smk"


use rule work from deep_module as deep_work


rule all:
    input:
        "foo.txt",
    default_target: True


# rules.deep_work has to work even if the rule is renamed in a parent module
# The rulename itself can be already modified.
assert hasattr(
    rules, "deep_work"
), f"bug: rule cannot be accessed as deep_work: {dir(rules)}"