@@ -27,38 +27,6 @@ rule demix_plot:
2727 "../scripts/report/demix_plot.R"
2828
2929
30- rule heatmap_plot_data :
31- conda : "../envs/renv.yaml"
32- input :
33- variants = OUTDIR / f"{ OUTPUT_NAME } .variants.tsv" ,
34- metadata = config ["METADATA" ]
35- output :
36- table = report (REPORT_DIR_TABLES / "heatmap.csv" )
37- log :
38- LOGDIR / "heatmap" / "log.txt"
39- script :
40- "../scripts/report/heatmap.R"
41-
42-
43- rule window :
44- conda : "../envs/biopython.yaml"
45- params :
46- window = config ["WINDOW" ]["WIDTH" ],
47- step = config ["WINDOW" ]["STEP" ],
48- features = config .get ("GB_FEATURES" , {}),
49- gb_qualifier_display = "gene"
50- input :
51- variants = OUTDIR / f"{ OUTPUT_NAME } .variants.tsv" ,
52- gb = OUTDIR / "reference.gb" ,
53- output :
54- window_df = temp (REPORT_DIR_TABLES / "window.csv" ),
55- json = temp (REPORT_DIR_TABLES / "window.json" ),
56- log :
57- LOGDIR / "window" / "log.txt"
58- script :
59- "../scripts/window.py"
60-
61-
6230rule diversity_data :
6331 threads : 4
6432 conda : "../envs/renv.yaml"
@@ -142,6 +110,25 @@ rule polymorphic_sites_over_time_plot:
142110 "../scripts/report/polymorphic_sites_over_time_plot.R"
143111
144112
113+ rule window_data :
114+ conda : "../envs/biopython.yaml"
115+ params :
116+ window = config ["WINDOW" ]["WIDTH" ],
117+ step = config ["WINDOW" ]["STEP" ],
118+ features = config .get ("GB_FEATURES" , {}),
119+ gb_qualifier_display = "gene"
120+ input :
121+ variants = OUTDIR / f"{ OUTPUT_NAME } .variants.tsv" ,
122+ gb = OUTDIR / "reference.gb" ,
123+ output :
124+ window_df = temp (REPORT_DIR_TABLES / "window.csv" ),
125+ json = temp (REPORT_DIR_TABLES / "window.json" ),
126+ log :
127+ LOGDIR / "window_data" / "log.txt"
128+ script :
129+ "../scripts/report/window_data.py"
130+
131+
145132rule nv_panel_data :
146133 conda : "../envs/renv.yaml"
147134 input :
@@ -275,7 +262,7 @@ rule allele_freq_tree_data:
275262 use_bionj = config ["USE_BIONJ" ],
276263 ref_name = config ["ALIGNMENT_REFERENCE" ],
277264 input :
278- dist = REPORT_DIR_TABLES / "distances.csv" ,
265+ dist = OUTDIR / "distances.csv" ,
279266 output :
280267 tree = report (REPORT_DIR_TABLES / "allele_freq_tree.nwk" ),
281268 log :
@@ -434,9 +421,9 @@ rule report:
434421 panel = report (REPORT_DIR_PLOTS / "af_trajectory_panel.png" ),
435422 tree = report (REPORT_DIR_PLOTS / "allele_freq_tree.png" ),
436423 temest = report (REPORT_DIR_PLOTS / "time_signal.png" ),
437- heat_table = report (REPORT_DIR_TABLES / "heatmap.csv" ),
438424 evo = report (REPORT_DIR_PLOTS / "dn_and_ds.png" ),
439425 omega_plot = report (REPORT_DIR_PLOTS / "dnds.png" ),
426+ heat_table = report (OUTDIR / "vaf" / "pairwise_trajectory_correlation.csv" ),
440427 freyja_ts = OUTDIR / "demixing" / "freyja_data" / "last_barcode_update.txt" ,
441428 value = REPORT_DIR_TABLES / "diversity.json" ,
442429 stats_lm = REPORT_DIR_TABLES / "time_signal.json" ,
0 commit comments