We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d257fc commit 2d85d2eCopy full SHA for 2d85d2e
1 file changed
malariagen_data/anoph/hap_freq.py
@@ -95,7 +95,7 @@ def haplotypes_frequencies(
95
cohorts_iterator = self._progress(
96
coh_dict.items(), desc="Compute allele frequencies"
97
)
98
- hap_track: dict[np.int64, int] = {}
+ hap_track: dict[np.int64, float] = {}
99
for coh, loc_coh in cohorts_iterator:
100
hap_track = {k: 0 for k in hap_track.keys()}
101
n_samples = np.count_nonzero(loc_coh)
@@ -201,7 +201,7 @@ def haplotypes_frequencies_advanced(
201
gt = gt.compute()
202
203
# Count haplotypes.
204
- hap_freq: dict[np.int64, int] = dict()
+ hap_freq: dict[np.int64, float] = dict()
205
hap_count: dict[np.int64, int] = dict()
206
hap_nob: dict[np.int64, int] = dict()
207
freq_cols = dict()
0 commit comments