AlloViz.AlloViz.Analysis.single_analysis¶
- AlloViz.AlloViz.Analysis.single_analysis(graphs, metricd, metric, elem, pq)[source]¶
Analyze raw data with a single element-metric
Analyze stored, filtered raw data with the passed combination of element-metric/NetworkX’ analysis function and save the results.
- Parameters:
- graphsdict of external:ref:Graph <graph> objects
Graphs to analyze.
- metricddict
Dictionary with the NetworkX function and argument to analyze data, with the format {“function”: “networkx.algorithms.centrality.betweenness_centrality”, “arguments”: {“weight”: “graph_distance”, “seed”: 0}} where “function” must be the string of the absolute import of the function.
- metricstr
Network metric to compute, which must be a key in the nodes_dict or edges_dict dictionaries.
- elemstr or list, {“edges”, “nodes”}
Network element for which the analysis is performed.
- pqstr
Name of the parquet (.pq) file in which to save the analysis results.