From cbdade5f0540a8aa8a1c8fa6e511a9e4119ec1be Mon Sep 17 00:00:00 2001 From: Philip Tzou Date: Mon, 7 Feb 2022 17:49:07 -0800 Subject: [PATCH] total and count of invivo_selection_results should by default be 1; fix #22 --- derived_tables/03_invivo_selection_results.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/derived_tables/03_invivo_selection_results.sql b/derived_tables/03_invivo_selection_results.sql index f76f9a3..3f428ca 100644 --- a/derived_tables/03_invivo_selection_results.sql +++ b/derived_tables/03_invivo_selection_results.sql @@ -19,8 +19,8 @@ INSERT INTO invivo_selection_results IM.gene, IM.position, IM.amino_acid, - CASE WHEN IM.count IS NULL THEN 0 ELSE IM.count END, - CASE WHEN IM.total IS NULL THEN 0 ELSE IM.total END, + CASE WHEN IM.count IS NULL THEN 1 ELSE IM.count END, + CASE WHEN IM.total IS NULL THEN 1 ELSE IM.total END, PTH_INF.event_date AS infection_date, PTH.event_date AS appearance_date, PTH_INF.severity AS severity