Skip to content

Commit 79bf475

Browse files
committed
Rename heatmap data rule
1 parent d1351d7 commit 79bf475

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

workflow/rules/report.smk

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
1-
rule heatmap:
1+
rule demix_plot_data:
2+
conda: "../envs/renv.yaml"
3+
input:
4+
summary_demixing = OUTDIR/"demixing"/"summary.csv",
5+
metadata = config["METADATA"]
6+
output:
7+
data = report(REPORT_DIR_TABLES/"demix.csv")
8+
log:
9+
LOGDIR / "demix_plot_data" / "log.txt"
10+
script:
11+
"../scripts/report/demix_plot_data.R"
12+
13+
14+
rule demix_plot:
15+
conda: "../envs/renv.yaml"
16+
params:
17+
design = config["PLOTS"]
18+
input:
19+
data = REPORT_DIR_TABLES/"demix.csv"
20+
output:
21+
plot = report(REPORT_DIR_PLOTS/"demix.png")
22+
log:
23+
LOGDIR / "demix_plot" / "log.txt"
24+
script:
25+
"../scripts/report/demix_plot.R"
26+
27+
28+
rule heatmap_plot_data:
229
conda: "../envs/renv.yaml"
330
input:
431
vcf = OUTDIR/f"{OUTPUT_NAME}.masked.filtered.tsv",
532
metadata = config["METADATA"]
633
output:
7-
table = report(REPORT_DIR_TABLES/"figure_10.csv")
34+
table = report(REPORT_DIR_TABLES/"heatmap.csv")
835
log:
936
LOGDIR / "heatmap" / "log.txt"
1037
script:
@@ -49,33 +76,6 @@ rule diversity:
4976
"../scripts/report/diversity_plot.R"
5077

5178

52-
rule demix_plot_data:
53-
conda: "../envs/renv.yaml"
54-
input:
55-
summary_demixing = OUTDIR/"demixing"/"summary.csv",
56-
metadata = config["METADATA"]
57-
output:
58-
data = report(REPORT_DIR_TABLES/"demix.csv")
59-
log:
60-
LOGDIR / "demix_plot_data" / "log.txt"
61-
script:
62-
"../scripts/report/demix_plot_data.R"
63-
64-
65-
rule demix_plot:
66-
conda: "../envs/renv.yaml"
67-
params:
68-
design = config["PLOTS"]
69-
input:
70-
data = REPORT_DIR_TABLES/"demix.csv"
71-
output:
72-
plot = report(REPORT_DIR_PLOTS/"demix.png")
73-
log:
74-
LOGDIR / "demix_plot" / "log.txt"
75-
script:
76-
"../scripts/report/demix_plot.R"
77-
78-
7979
rule general_NV_description:
8080
conda: "../envs/renv.yaml"
8181
params:
@@ -196,7 +196,7 @@ rule report:
196196
panel = report(REPORT_DIR_PLOTS/"figure_7.png"),
197197
tree = report(REPORT_DIR_PLOTS/"figure_8.png"),
198198
temest = report(REPORT_DIR_PLOTS/"figure_9.png"),
199-
heat_table = report(REPORT_DIR_TABLES/"figure_10.csv"),
199+
heat_table = report(REPORT_DIR_TABLES/"heatmap.csv"),
200200
evo = report(REPORT_DIR_PLOTS/"figure_11.png"),
201201
omega_plot = report(REPORT_DIR_PLOTS/"figure_12.png"),
202202
freyja_ts = OUTDIR/"demixing"/"freyja_data"/"last_barcode_update.txt",

0 commit comments

Comments
 (0)