From a0b12ddb7f253ee4dedf9260eea8738ac3889bc6 Mon Sep 17 00:00:00 2001 From: saraloo <45245630+saraloo@users.noreply.github.com> Date: Fri, 14 Apr 2023 09:51:57 -0400 Subject: [PATCH] add pull gt option --- R/scripts/postprocess/run_sim_processing_SLURM.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/scripts/postprocess/run_sim_processing_SLURM.R b/R/scripts/postprocess/run_sim_processing_SLURM.R index 1e678bfce..d6f7b8fe5 100644 --- a/R/scripts/postprocess/run_sim_processing_SLURM.R +++ b/R/scripts/postprocess/run_sim_processing_SLURM.R @@ -307,9 +307,9 @@ data_path <- opt$data_path Sys.setenv(CONFIG_PATH = opt$config) Sys.setenv(COVID_PATH = source_loc) -if (pathogen == "flu"){ +if (pathogen == "flu" & pull_gt){ source(paste0(source_loc, "/R/scripts/build_flu_data.R")) -} else if (pathogen == "covid19"){ +} else if (pathogen == "covid19" & pull_gt){ source(paste0(source_loc, "/R/scripts/build_covid_data.R")) }