From 1c2417fb3a8d8eb7087ab77a811aa790a9e2eb5b Mon Sep 17 00:00:00 2001 From: zsloan Date: Fri, 14 May 2021 18:36:20 +0000 Subject: Changed logic in has_num_cases to ignore N=1 --- wqflask/wqflask/show_trait/show_trait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/show_trait/show_trait.py b/wqflask/wqflask/show_trait/show_trait.py index 424b8ee5..837c7a54 100644 --- a/wqflask/wqflask/show_trait/show_trait.py +++ b/wqflask/wqflask/show_trait/show_trait.py @@ -631,7 +631,7 @@ def has_num_cases(this_trait): has_n = False if this_trait.dataset.type != "ProbeSet" and this_trait.dataset.type != "Geno": for name, sample in list(this_trait.data.items()): - if sample.num_cases: + if sample.num_cases and sample.num_cases != "1": has_n = True break -- cgit v1.2.3