diff options
author | zsloan | 2021-03-29 22:00:44 +0000 |
---|---|---|
committer | zsloan | 2021-03-29 22:00:44 +0000 |
commit | 0a6b9ec767a12bedeb892f400e6b04bbd6160673 (patch) | |
tree | 69f53d92f4dca9d12dd0598830dd0904c71bc023 /wqflask/wqflask | |
parent | 19f91de0a78b1805b00b8345523c62c7fee31223 (diff) | |
download | genenetwork2-0a6b9ec767a12bedeb892f400e6b04bbd6160673.tar.gz |
Changed minimum num_overlap to 2, since there apparently need to be that many shared samples torun scipy.stats.pearsonr/spearmanr
Diffstat (limited to 'wqflask/wqflask')
-rw-r--r-- | wqflask/wqflask/network_graph/network_graph.py | 2 |
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( |