AlloViz.AlloViz.Analysis.single_analysis#

AlloViz.AlloViz.Analysis.single_analysis(graphs, metricf, metric, elem, pq, **kwargs)[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.

metricfstr

NetworkX function to analyze data. It must be written as if it were an absolute import (e.g., “networkx.algorithms.centrality.betweenness_centrality”).

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.

Other Parameters:
**kwargs

Other optional keyword arguments that will be passed to the NetworkX analysis function(s) that is(are) used on the method call in case they need extra parameters.