conpy.connectivity.
LabelConnectivity
(data, pairs, labels, label_degree=None, subject=None)¶Estimation of all-to-all connectivity, parcellated into labels.
For each connectivity source pair, a value describing the connection. For example, this can be the strength of the connection between the sources.
The index of the labels involved in the from-to connectivity pair.
The labels between which connectivity has been computed.
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.
The subject-id.
n_connections
intThe number of connections.
Methods
|
Return copy of the Connectivity object. |
|
Get a source-to-source adjacency matrix. |
|
Check compatibility with another connectivity object. |
|
Visualize parcellated connectivity as a circular graph. |
|
Save the connectivity object to an HDF5 file. |
|
Threshold the connectivity. |
is_compatible
(other)¶Check compatibility with another connectivity object.
Two connectivity objects are compatible if they define the same connectivity pairs.
Whether the given connectivity object is compatible with this one.
plot
(n_lines=None, node_angles=None, node_width=None, node_colors=None, facecolor='black', textcolor='white', node_edgecolor='black', linewidth=1.5, colormap='hot', vmin=None, vmax=None, colorbar=True, title=None, colorbar_size=0.2, colorbar_pos=- 0.3, 0.1, fontsize_title=12, fontsize_names=8, fontsize_colorbar=8, padding=6.0, fig=None, subplot=111, interactive=True, node_linewidth=2.0, show=True)¶Visualize parcellated connectivity as a circular graph.
If not None, only the n_lines strongest connections (strength=abs(con)) are drawn.
Array with node positions in degrees. If None, the nodes are
equally spaced on the circle. See mne.viz.circular_layout()
.
Width of each node in degrees. If None, the minimum angle between any two nodes is used as the width.
List with the color to use for each node. If fewer colors than nodes are provided, the colors will be repeated. Any color supported by matplotlib can be used, e.g., RGBA tuples, named colors.
Color to use for background. See matplotlib.colors.
Color to use for text. See matplotlib.colors.
Color to use for lines around nodes. See matplotlib.colors.
Line width to use for connections.
Colormap to use for coloring the connections.
Minimum value for colormap. If None, it is determined automatically.
Maximum value for colormap. If None, it is determined automatically.
Display a colorbar or not.
The figure title.
Size of the colorbar.
Position of the colorbar.
Font size to use for title.
Font size to use for node names.
Font size to use for colorbar.
Space to add around figure to accommodate long labels.
The figure to use. If None, a new figure with the specified background color will be created.
Location of the subplot when creating figures with multiple plots. E.g. 121 or (1, 2, 1) for 1 row, 2 columns, plot 1. See matplotlib.pyplot.subplot.
When enabled, left-click on a node to show only connections to that node. Right-click shows all connections.
Line with for nodes.
Show figure if True.
The figure handle.
The subplot handle.