From 53b0ba9672c8855a82fe7695832f869347bf9f88 Mon Sep 17 00:00:00 2001 From: zsloan Date: Thu, 29 Apr 2021 21:39:52 +0000 Subject: Don't draw edges between a trait and itself --- wqflask/wqflask/network_graph/network_graph.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wqflask') 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 -- cgit v1.2.3