From 0affee4cb3e369d0ed5897d3299eb6ee8308da63 Mon Sep 17 00:00:00 2001 From: Sebastian Proost Date: Thu, 25 Jan 2018 03:20:26 +0100 Subject: [PATCH] changed interpro labels (IPR...) to descriptions (human readable) in graphs --- conekt/helpers/cytoscape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conekt/helpers/cytoscape.py b/conekt/helpers/cytoscape.py index 122f7e8..c86be49 100644 --- a/conekt/helpers/cytoscape.py +++ b/conekt/helpers/cytoscape.py @@ -109,9 +109,9 @@ def add_family_data_nodes(network, family_method_id): data[i.sequence_id]["clade_count"] = 0 if "interpro" in data[i.sequence_id]: - data[i.sequence_id]["interpro"] += [i.domain.label] + data[i.sequence_id]["interpro"] += [i.domain.description] else: - data[i.sequence_id]["interpro"] = [i.domain.label] + data[i.sequence_id]["interpro"] = [i.domain.description] for node in completed_network["nodes"]: if "data" in node.keys() and "gene_id" in node["data"].keys() \