Skip to content
Snippets Groups Projects
Commit 0b5c9cf0 authored by Hartung, Michael's avatar Hartung, Michael
Browse files

erge branch 'development' into production

Former-commit-id: 3de05553baaae9a66391211f9bfc41b7cec81e6c [formerly f11df83f05940a71eaf6f285d36e2147af02928e]
Former-commit-id: bfdc2155dc2e2642b3a2a6c5e3e8cd18ca786681
parents 0b43f24e 05e025b2
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,7 @@ def multi_steiner(task_hook: TaskHook):
returned_edges.append((node, int(neighbor)))
accepted_nodes = [g.vertex_properties[node_name_attribute][node] for node in returned_nodes]
accepted_nodes_without_seeds = [g.vertex_properties[node_name_attribute][node] for node in returned_nodes if node not in seed_ids]
subgraph = {"nodes": accepted_nodes,
"edges": [{"from": g.vertex_properties[node_name_attribute][source], "to": g.vertex_properties[node_name_attribute][target]} for
source, target in returned_edges]}
......@@ -188,7 +189,7 @@ def multi_steiner(task_hook: TaskHook):
task_hook.set_results({
"network": subgraph,
"node_attributes": {"node_types": node_types, "is_seed": is_seed},
"target_nodes": accepted_nodes,
"target_nodes": accepted_nodes_without_seeds,
'gene_interaction_dataset': ppi_dataset,
'drug_interaction_dataset': pdi_dataset
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment