1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
|
from pathlib import Path
configfile: "config.yaml"
rule all:
input:
"test.out",
"test.html",
"rel_source.out",
"julia.out",
"rust.out",
"rust-manifest.out",
"rust-outer-line-doc.out",
"bash.out",
rule:
input:
"test.in"
output:
txt="test.out"
params:
xy=True
conda:
"envs/r.yaml"
script:
"scripts/test.R"
rule:
output:
"test.in"
script:
Path("scripts/test.py")
rule:
output:
"test.html"
params:
test="testparam"
conda:
"envs/r.yaml"
script:
"scripts/test.Rmd"
rule:
output:
"rel_source.out"
conda:
"envs/r.yaml"
script:
"scripts/rel_source.R"
rule:
input:
"test.in",
named_input="test.in"
output:
"julia.out"
params:
integer=123
conda:
"envs/julia.yaml"
script:
"scripts/test.jl"
rule:
input:
"test.in",
"test2.in",
["test.in", "test2.in"],
named_input="test.in",
output:
"rust.out",
params:
integer=123
conda:
"envs/rust.yaml"
script:
"scripts/test.rs"
rule:
output:
"rust-manifest.out",
params:
keep="-"
conda:
"envs/rust.yaml"
log:
"rust-manifest.log"
script:
"scripts/test-manifest.rs"
rule:
output:
"rust-outer-line-doc.out",
params:
keep="-",
conda:
"envs/rust.yaml"
script:
"scripts/test-outer-line-doc.rs"
rule bash:
input:
"test2.in",
named_input="test.in",
output:
"bash.out"
params:
integer=123,
string="foo",
d={"a": "foo"}
resources:
mem_mb=1024
log:
"bash.log"
conda:
"envs/bash.yaml"
script:
"scripts/test.sh"
|