Skip to content

Commit 14c2ab5

Browse files
authored
Merge pull request #1006 from adilraza99/GH1005-fix-cnv-fixed-denominator
fix: use per-sample denominator for CNV frequencies when nobs_mode="fixed"
2 parents 5e74b9f + 32e252f commit 14c2ab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

malariagen_data/anoph/cnv_frq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ def _gene_cnv_frequencies_advanced(
586586
nobs[:, cohort_index] = np.repeat(cohort_n_called, 2)
587587
else:
588588
assert nobs_mode == "fixed"
589-
nobs[:, cohort_index] = cohort.size * 2
589+
nobs[:, cohort_index] = cohort.size
590590

591591
debug("compute frequency")
592592
with np.errstate(divide="ignore", invalid="ignore"):

0 commit comments

Comments
 (0)