From 0a6b9ec767a12bedeb892f400e6b04bbd6160673 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 29 Mar 2021 22:00:44 +0000 Subject: Changed minimum num_overlap to 2, since there apparently need to be that many shared samples torun scipy.stats.pearsonr/spearmanr --- wqflask/wqflask/network_graph/network_graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/network_graph/network_graph.py b/wqflask/wqflask/network_graph/network_graph.py index 723a749f..1d5316a2 100644 --- a/wqflask/wqflask/network_graph/network_graph.py +++ b/wqflask/wqflask/network_graph/network_graph.py @@ -99,7 +99,7 @@ class NetworkGraph(object): if num_overlap < self.lowest_overlap: self.lowest_overlap = num_overlap - if num_overlap == 0: + if num_overlap < 2: continue else: pearson_r, pearson_p = scipy.stats.pearsonr( -- cgit v1.2.3