File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ shell .executable ("bash" )
2+
3+ rule all :
4+ input :
5+ "d.out" ,
6+
7+ rule A :
8+ output :
9+ "a.out" ,
10+ shell :
11+ "echo 'text' > {output}"
12+
13+ rule B :
14+ input :
15+ "a.out" ,
16+ output :
17+ "b_{i}.out" ,
18+ shell :
19+ "cat {input} > {output}"
20+
21+ # rule C is required for #946
22+ # use `range(20)` so test will pass in < 5% of cases where issue is present
23+ rule C :
24+ input :
25+ expand ("b_{i}.out" , i = list (range (4 ))),
26+ output :
27+ "c.out" ,
28+ shell :
29+ "cat {input} > {output}"
30+
31+ # For #946, 'a.out' is required as input, but does not need to be `ancient()`
32+ rule D :
33+ input :
34+ "a.out" ,
35+ "c.out" ,
36+ output :
37+ "d.out" ,
38+ shell :
39+ "cat {input} > {output}"
Original file line number Diff line number Diff line change 1+ ---
2+ title : DAG
3+ ---
4+ flowchart TB
5+ id0 [ all]
6+ id1 [ D]
7+ id2 [ A]
8+ id3 [ C]
9+ id4 [ B - i: 0]
10+ id5 [ B - i: 1]
11+ id6 [ B - i: 2]
12+ id7 [ B - i: 3]
13+ style id0 fill :#57BFD9 , stroke-width :2px , color :#333333
14+ style id1 fill :#57D98B , stroke-width :2px , color :#333333
15+ style id2 fill :#D95757 , stroke-width :2px , color :#333333
16+ style id3 fill :#8BD957 , stroke-width :2px , color :#333333
17+ style id4 fill :#D9BF57 , stroke-width :2px , color :#333333
18+ style id5 fill :#D9BF57 , stroke-width :2px , color :#333333
19+ style id6 fill :#D9BF57 , stroke-width :2px , color :#333333
20+ style id7 fill :#D9BF57 , stroke-width :2px , color :#333333
21+ id1 --> id0
22+ id2 --> id1
23+ id3 --> id1
24+ id4 --> id3
25+ id5 --> id3
26+ id6 --> id3
27+ id7 --> id3
28+ id2 --> id4
29+ id2 --> id5
30+ id2 --> id6
31+ id2 --> id7
Original file line number Diff line number Diff line change @@ -2439,3 +2439,7 @@ def test_censored_path():
24392439
24402440def test_params_empty_inherit ():
24412441 run (dpath ("test_params_empty_inherit" ))
2442+
2443+
2444+ def test_github_issue3556 ():
2445+ run (dpath ("test_github_issue3556" ), shellcmd = "snakemake --dag mermaid-js >dag.mmd" )
You can’t perform that action at this time.
0 commit comments