Skip to content

Commit 70ebc6e

Browse files
authored
Merge branch 'master' into refactor/het-analysis
2 parents f67cd37 + 5e74b9f commit 70ebc6e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

malariagen_data/anoph/frq_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def _add_frequency_ci(*, ds, ci_method):
140140
frq_ci_low, frq_ci_upp = proportion_confint(
141141
count=count, nobs=nobs, method=ci_method
142142
)
143+
loc_zero = nobs == 0
144+
frq_ci_low[loc_zero] = np.nan
145+
frq_ci_upp[loc_zero] = np.nan
143146
ds["event_frequency_ci_low"] = ("variants", "cohorts"), frq_ci_low
144147
ds["event_frequency_ci_upp"] = ("variants", "cohorts"), frq_ci_upp
145148

0 commit comments

Comments
 (0)