Skip to content

Commit

Permalink
total and count of invivo_selection_results should by default be 1; fix
Browse files Browse the repository at this point in the history
  • Loading branch information
philiptzou committed Feb 8, 2022
1 parent 055709c commit cbdade5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions derived_tables/03_invivo_selection_results.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbdade5

Please sign in to comment.