stonpy.completion module¶
The module for completing subgraphs to form complete subgraphs that can be converted to SBGN maps.
- stonpy.completion.complete_subgraph(subgraph, db_graph, complete_process_modulations=False)[source]¶
Complete a subgraph w.r.t to a graph and returns it.
See Completion algorithm for more details.
- Parameters:
subgraph (py2neo.Subgraph) – the subgraph to complete
db_graph (py2neo.Graph) – the neo4j graph where to look for the completion
complete_process_modulations (bool) – option to complete processes with the modulations targetting it, default is False
- Returns:
the completed subgraph
- Return type:
py2neo.Subgraph