aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2021-04-29 21:39:52 +0000
committerzsloan2021-04-29 21:39:52 +0000
commit53b0ba9672c8855a82fe7695832f869347bf9f88 (patch)
treeb7a7d8042d2675910fbc1dc260c1ddcc72240c13 /wqflask
parent97663c7d0aa4b457948301849a46e6d9b42664c9 (diff)
downloadgenenetwork2-53b0ba9672c8855a82fe7695832f869347bf9f88.tar.gz
Don't draw edges between a trait and itself
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/network_graph/network_graph.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wqflask/wqflask/network_graph/network_graph.py b/wqflask/wqflask/network_graph/network_graph.py
index ca3d5bb3..a45eaad4 100644
--- a/wqflask/wqflask/network_graph/network_graph.py
+++ b/wqflask/wqflask/network_graph/network_graph.py
@@ -80,6 +80,9 @@ class NetworkGraph(object):
target_trait = target[0]
target_db = target[1]
+ if str(this_trait) == str(target_trait) and str(this_db) == str(target_db):
+ continue
+
target_samples = target_db.group.all_samples_ordered()
target_sample_data = target_trait.data