bluepysnap.edges.edge_population_stats¶
EdgePopulation stats helper.
Classes

EdgePopulation stats helper. 
 class bluepysnap.edges.edge_population_stats.StatsHelper(edge_population)¶
EdgePopulation stats helper.
Initialize StatsHelper with an EdgePopulation instance.
 convergence(source, target, by=None, sample=None)¶
source > target convergence.
Calculate the convergence based on number of “connections” or “synapses” each target cell shares with the cells specified in source.
connections: number of unique source cells each target cell shares a connection with
synapses: number of unique synapses between a target cell and its source cells
 Parameters:
source (int/CircuitNodeId/CircuitNodeIds/sequence/str/mapping/None) – source nodes
target (int/CircuitNodeId/CircuitNodeIds/sequence/str/mapping/None) – target nodes
by (str) – ‘synapses’ or ‘connections’
sample (int) – if specified, sample size for target group
 Returns:
Array with synapse / connection count per each cell from target sample (taking into account only connections from cells in source).
 divergence(source, target, by, sample=None)¶
source > target divergence.
Calculate the divergence based on number of “connections” or “synapses” each source cell shares with the cells specified in target.
connections: number of unique target cells each source cell shares a connection with
synapses: number of unique synapses between a source cell and its target cells
 Parameters:
source (int/CircuitNodeId/CircuitNodeIds/sequence/str/mapping/None) – source nodes
target (int/CircuitNodeId/CircuitNodeIds/sequence/str/mapping/None) – target nodes
by (str) – ‘synapses’ or ‘connections’
sample (int) – if specified, sample size for source group
 Returns:
Array with synapse / connection count per each cell from source sample (taking into account only connections to cells in target).