conpy.LabelConnectivity

class conpy.LabelConnectivity(data, pairs, labels, label_degree=None, subject=None)

Estimation of all-to-all connectivity, parcellated into labels.

Parameters
datandarray, shape (n_pairs,)

For each connectivity source pair, a value describing the connection. For example, this can be the strength of the connection between the sources.

pairsndarray, shape (n_pairs, 2)

The index of the labels involved in the from-to connectivity pair.

labelslist of instance of Label

The labels between which connectivity has been computed.

label_degreetuple of lists (out_degree, in_degree) | None

For each label, the total number of possible connections from and to the label. This information is needed to perform weighting on the number of connections during visualization and statistics. If None, it is assumed that all possible connections are defined in the pairs parameter and the out- and in-degree of each label is computed.

subjectstr | None

The subject-id.

Attributes
n_connectionsint

The number of connections.

__getitem__(index)

Select connections without making a deep copy.

__hash__(/)

Return hash(self).