Skip to content
Snippets Groups Projects
Commit 85727c7e authored by AndiMajore's avatar AndiMajore
Browse files

minor change

Former-commit-id: cf588a2b
parent fa9eb133
No related branches found
No related tags found
No related merge requests found
......@@ -374,7 +374,9 @@ def result_view(request) -> Response:
detail['ensg'] = list(set(detail['ensg']))
edges = parameters['input_network']['edges']
edge_endpoint_ids = set()
# TODO check for custom edges when working again with ensemble gene ids
for edge in edges:
edge_endpoint_ids.add(edge['from'])
......@@ -382,11 +384,10 @@ def result_view(request) -> Response:
nodes_mapped, id_key = query_proteins_by_identifier(edge_endpoint_ids, identifier)
if 'autofill_edges' in parameters['config'] and parameters['config']['autofill_edges']:
prots = list(filter(lambda n: n['drugstone_type'] == 'protein',
filter(lambda n: 'drugstone_type' in n and node_name_attribute in n, parameters['input_network']['nodes'])))
filter(lambda n: 'drugstone_type' in n and node_name_attribute in n,
parameters['input_network']['nodes'])))
proteins = {node_name[1:] for node in prots for node_name in node[node_name_attribute]}
dataset = DEFAULTS['ppi'] if 'interaction_protein_protein' not in parameters['config'] else \
......@@ -399,7 +400,6 @@ def result_view(request) -> Response:
interaction_objects))
edges.extend(auto_edges)
result['network']['edges'].extend(edges)
uniq_edges = dict()
for edge in result['network']['edges']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment