about summary refs log tree commit diff
path: root/src/config.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs
index c6a1553..0061070 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -175,6 +175,8 @@ pub struct Config {
     pub pca_plotter: String,
     /// Script that draws the clustered heatmap of a correlation matrix (HEATMAP_PLOTTER).
     pub heatmap_plotter: String,
+    /// Script that draws the scatter plot of a two-trait comparison (COMPARE_PLOTTER).
+    pub compare_plotter: String,
     /// Directory holding BNW's worked example datasets (`BNW_EXAMPLES_DIR`),
     /// served by `/compute/bnw/examples`. Empty means the endpoint reports
     /// that no examples are configured.
@@ -419,6 +421,10 @@ impl Config {
             "HEATMAP_PLOTTER".to_string(),
             "scripts/plot-heatmap.py".to_string(),
         );
+        values.insert(
+            "COMPARE_PLOTTER".to_string(),
+            "scripts/plot-compare.py".to_string(),
+        );
         // Per-user baskets: one SQLite file each (src/baskets.rs). Never
         // MariaDB -- a user's edited column is theirs.
         values.insert(
@@ -487,6 +493,7 @@ impl Config {
             "GENOTYPE_PLOTTER",
             "PCA_PLOTTER",
             "HEATMAP_PLOTTER",
+            "COMPARE_PLOTTER",
             "BNW_CMD",
             "BNW_BIN_DIR",
             "BNW_CACHE_DIR",
@@ -554,6 +561,7 @@ impl Config {
             bnw_plotter: values["BNW_PLOTTER"].clone(),
             pca_plotter: values["PCA_PLOTTER"].clone(),
             heatmap_plotter: values["HEATMAP_PLOTTER"].clone(),
+            compare_plotter: values["COMPARE_PLOTTER"].clone(),
             bnw_examples_dir: values["BNW_EXAMPLES_DIR"].clone(),
             bulklmm_cmd: values["BULKLMM_CMD"].clone(),
             bulklmm_env: values["BULKLMM_ENV"].clone(),