aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e089643e..9b70f03d 100644
--- a/wqflask/wqflask/network_graph/network_graph.py
+++ b/wqflask/wqflask/network_graph/network_graph.py
@@ -141,7 +141,7 @@ class NetworkGraph:
if abs(sample_r) > max_corr:
max_corr = abs(sample_r)
- edge_data = {'id': str(this_trait.name) + '_to_' + str(target_trait.name),
+ edge_data = {'id': f"{str(this_trait.name)}:{str(this_trait.dataset.name)}" + '_to_' + f"{str(target_trait.name)}:{str(target_trait.dataset.name)}",
'source': str(this_trait.name) + ":" + str(this_trait.dataset.name),
'target': str(target_trait.name) + ":" + str(target_trait.dataset.name),
'correlation': round(sample_r, 3),