Skip to content

Commit 49e4ca6

Browse files
committed
Fixed zscore bug
1 parent ad6f9fd commit 49e4ca6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/decoupler/mt/_zscore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _func_zscore(
7373
n = np.sqrt(np.count_nonzero(adj, axis=0))
7474
mean = mat.dot(adj) / np.sum(np.abs(adj), axis=0)
7575
es = ((mean - mean_all.reshape(-1, 1)) * n) / stds.reshape(-1, 1)
76-
pv = 2 * sts.norm.sf(np.abs(z))
76+
pv = 2 * sts.norm.sf(np.abs(es))
7777
return es, pv
7878

7979

0 commit comments

Comments
 (0)