aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2021-03-29 22:00:44 +0000
committerzsloan2021-03-29 22:00:44 +0000
commit0a6b9ec767a12bedeb892f400e6b04bbd6160673 (patch)
tree69f53d92f4dca9d12dd0598830dd0904c71bc023
parent19f91de0a78b1805b00b8345523c62c7fee31223 (diff)
downloadgenenetwork2-0a6b9ec767a12bedeb892f400e6b04bbd6160673.tar.gz
Changed minimum num_overlap to 2, since there apparently need to be that many shared samples torun scipy.stats.pearsonr/spearmanr
-rw-r--r--wqflask/wqflask/network_graph/network_graph.py2
1 files changed, 1 insertions, 1 deletions
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(