File: Snakefile

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

checkpoint a:
    output:
        "a.txt"
    shell:
        "touch {output}"

def aggregate(wildcards):
    # files = {'inp1': "Snakefile"}
    files = {'inp1': checkpoints.a.get(**wildcards).output[0]}
    return files

rule b:
    input:
        unpack(aggregate)
    output:
        "b.txt"
    shell:
        "touch {output}"