Skip to content

Commit 0fe8dfe

Browse files
authored
Fixed diplo_ZnS bug for fvecVcf mode (#62)
1 parent 948c8f3 commit 0fe8dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diploshic/fvTools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,8 +1047,8 @@ def calcAndAppendStatValForScanDiplo(
10471047
statVals["diplo_Omega"].append(0.0)
10481048
else:
10491049
r2Matrix = allel.stats.ld.rogers_huff_r(genosNAlt)
1050-
statVals["diplo_ZnS"].append(np.nanmean(r2Matrix))
10511050
r2Matrix2 = squareform(r2Matrix ** 2)
1051+
statVals["diplo_ZnS"].append(np.nanmean(r2Matrix))
10521052
statVals["diplo_Omega"].append(dps.omega(r2Matrix2)[0])
10531053
elif statName == "distVar":
10541054
dists = dps.pairwiseDiffsDiplo(genosNAlt) / float(

0 commit comments

Comments
 (0)