Skip to content

Commit a72a2f4

Browse files
committed
refactor: move NV panel data rules to VCF snakefile
1 parent 8f214c4 commit a72a2f4

2 files changed

Lines changed: 38 additions & 38 deletions

File tree

workflow/rules/report.smk

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -110,44 +110,6 @@ rule polymorphic_sites_over_time_plot:
110110
"../scripts/report/polymorphic_sites_over_time_plot.R"
111111

112112

113-
rule nv_panel_data:
114-
conda: "../envs/renv.yaml"
115-
input:
116-
variants = OUTDIR/f"{OUTPUT_NAME}.variants.tsv",
117-
metadata = config["METADATA"],
118-
output:
119-
table = REPORT_DIR_TABLES/"nv_panel.csv",
120-
json = temp(REPORT_DIR_TABLES/"nv_panel.json"),
121-
log:
122-
LOGDIR / "nv_panel_data" / "log.txt"
123-
script:
124-
"../scripts/report/nv_panel_data.R"
125-
126-
127-
rule nv_panel_zoom_on_feature_data:
128-
input:
129-
table = REPORT_DIR_TABLES/"nv_panel.csv",
130-
regions = REPORT_DIR_TABLES/"genbank_regions.json",
131-
output:
132-
table = temp(REPORT_DIR_TABLES/"nv_panel.{region_name}.csv"),
133-
log:
134-
LOGDIR / "nv_panel_zoom_on_feature_data" / "{region_name}.log.txt"
135-
script:
136-
"../scripts/report/nv_panel_zoom_on_feature_data.py"
137-
138-
139-
rule window_zoom_on_feature_data:
140-
input:
141-
table = REPORT_DIR_TABLES/"window.csv",
142-
regions = REPORT_DIR_TABLES/"genbank_regions.json",
143-
output:
144-
table = temp(REPORT_DIR_TABLES/"window.{region_name}.csv"),
145-
log:
146-
LOGDIR / "window_zoom_on_feature_data" / "{region_name}.log.txt"
147-
script:
148-
"../scripts/report/window_zoom_on_feature_data.py"
149-
150-
151113
rule nv_panel_plot:
152114
conda: "../envs/renv.yaml"
153115
params:

workflow/rules/vaf.smk

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,3 +292,41 @@ rule window_data:
292292
LOGDIR / "window_data" / "log.txt"
293293
script:
294294
"../scripts/report/window_data.py"
295+
296+
297+
rule nv_panel_data:
298+
conda: "../envs/renv.yaml"
299+
input:
300+
variants = OUTDIR/f"{OUTPUT_NAME}.variants.tsv",
301+
metadata = config["METADATA"],
302+
output:
303+
table = REPORT_DIR_TABLES/"nv_panel.csv",
304+
json = temp(REPORT_DIR_TABLES/"nv_panel.json"),
305+
log:
306+
LOGDIR / "nv_panel_data" / "log.txt"
307+
script:
308+
"../scripts/report/nv_panel_data.R"
309+
310+
311+
rule nv_panel_zoom_on_feature_data:
312+
input:
313+
table = REPORT_DIR_TABLES/"nv_panel.csv",
314+
regions = REPORT_DIR_TABLES/"genbank_regions.json",
315+
output:
316+
table = temp(REPORT_DIR_TABLES/"nv_panel.{region_name}.csv"),
317+
log:
318+
LOGDIR / "nv_panel_zoom_on_feature_data" / "{region_name}.log.txt"
319+
script:
320+
"../scripts/report/nv_panel_zoom_on_feature_data.py"
321+
322+
323+
rule window_zoom_on_feature_data:
324+
input:
325+
table = REPORT_DIR_TABLES/"window.csv",
326+
regions = REPORT_DIR_TABLES/"genbank_regions.json",
327+
output:
328+
table = temp(REPORT_DIR_TABLES/"window.{region_name}.csv"),
329+
log:
330+
LOGDIR / "window_zoom_on_feature_data" / "{region_name}.log.txt"
331+
script:
332+
"../scripts/report/window_zoom_on_feature_data.py"

0 commit comments

Comments
 (0)