Result Handlers (indra_network_search.result_handler
)
Handles the aggregation of results from the IndraNetworkSearchAPI
The result manager deals with things like:
Stopping path iteration when timeout is reached
Keeping count of number of paths returned
Filtering results when it’s not done in the algorithm
- class indra_network_search.result_handler.BreadthFirstSearchResultManager(path_generator, graph, filter_options, source, target, reverse, timeout=30)[source]
Handles results from bfs_search
- class indra_network_search.result_handler.DijkstraResultManager(path_generator, graph, filter_options, source, target, reverse, timeout=30, hash_blacklist=None)[source]
Handles results from open_dijkstra_search
- class indra_network_search.result_handler.MultiInteractorsResultManager(path_generator, graph, input_nodes, filter_options, downstream, timeout=30)[source]
Handles results from pathfinding.direct_multi_interactors
- class indra_network_search.result_handler.OntologyResultManager(path_generator, graph, filter_options, source, target)[source]
Handles results from shared_parents
Handles results from shared_interactors, both up and downstream
downstream is True for shared targets and False for shared regulators
Execute the result assembly with the loaded generator
- Return type:
SharedInteractorsResults
- Returns:
Results for shared_interactors as a BaseModel
- class indra_network_search.result_handler.ShortestSimplePathsResultManager(path_generator, graph, filter_options, source, target, timeout=30, hash_blacklist=None)[source]
Handles results from shortest_simple_paths