Skip to content

Connectivity

Which regions are synchronized/interacting?

Features in the cobrabox.connectivity domain. Access them as cb.<Feature> (canonical), or as cb.connectivity.<Feature> / cb.feature.<Feature>.

Each feature has two forms: a class for building pipelines, and a one-shot function for a single call.

Coherence

Compute magnitude-squared coherence for all pairwise channel combinations.

cb.coherence(data, ...)  # one-shot
cb.Coherence(...).apply(data)  # composable, for pipelines

Tags: cross-spectral, welch, frequency-domain, undirected, resting-state, epilepsy, eeg, io:matrix, req:multichannel, req:sampling-rate

Correlation

Compute pairwise Pearson or Spearman correlation between all channel pairs.

cb.correlation(data, ...)  # one-shot
cb.Correlation(...).apply(data)  # composable, for pipelines

Tags: pearson, spearman, undirected, linear, resting-state, default-mode, eeg, fmri, io:matrix, req:multichannel

Covariance

Compute pairwise sample covariance between all channel pairs.

cb.covariance(data, ...)  # one-shot
cb.Covariance(...).apply(data)  # composable, for pipelines

Tags: undirected, linear, resting-state, eeg, fmri, io:matrix, req:multichannel

DirectedTransferFunction

Estimate the Directed Transfer Function (DTF) between channels via a VAR model.

cb.directed_transfer_function(data, ...)  # one-shot
cb.DirectedTransferFunction(...).apply(data)  # composable, for pipelines

Tags: mvar, var, directed, frequency-domain, total-causality, epilepsy, seizure-propagation, eeg, io:matrix-frequency, req:multichannel, req:sampling-rate

EnvelopeCorrelation

Compute amplitude envelope correlation (AEC) between all channel pairs.

cb.envelope_correlation(data, ...)  # one-shot
cb.EnvelopeCorrelation(...).apply(data)  # composable, for pipelines

Tags: aec, orthogonalization, volume-conduction, undirected, resting-state, meg, eeg, io:matrix, req:multichannel

GrangerCausality

Compute the Granger causality matrix across channels.

cb.granger_causality(data, ...)  # one-shot
cb.GrangerCausality(...).apply(data)  # composable, for pipelines

Tags: mvar, var, directed, prediction-error, epilepsy, seizure-propagation, resting-state, eeg, io:matrix, req:multichannel, req:sampling-rate

MutualInformation

Compute mutual information (MI) between all pairs of series along a specified dimension (by

cb.mutual_information(data, ...)  # one-shot
cb.MutualInformation(...).apply(data)  # composable, for pipelines

Tags: nonlinear, entropy, undirected, resting-state, eeg, io:matrix, req:multichannel

PartialCorrelation

Compute the partial-correlation matrix across channels.

cb.partial_correlation(data, ...)  # one-shot
cb.PartialCorrelation(...).apply(data)  # composable, for pipelines

Tags: conditional-independence, precision-matrix, undirected, resting-state, eeg, fmri, io:matrix, req:multichannel

PartialDirectedCoherence

Estimate the Partial Directed Coherence (PDC) between channels via a VAR model.

cb.partial_directed_coherence(data, ...)  # one-shot
cb.PartialDirectedCoherence(...).apply(data)  # composable, for pipelines

Tags: mvar, var, directed, frequency-domain, direct-causality, epilepsy, seizure-propagation, eeg, io:matrix-frequency, req:multichannel, req:sampling-rate

PhaseLockingValue

Compute the phase-locking-value (PLV) matrix across channels.

cb.phase_locking_value(data, ...)  # one-shot
cb.PhaseLockingValue(...).apply(data)  # composable, for pipelines

Tags: phase-synchrony, undirected, resting-state, epilepsy, anesthesia, eeg, io:matrix, req:multichannel, req:sampling-rate

ReciprocalConnectivity

Compute per-channel Reciprocal Connectivity (RC) from a directed connectivity matrix.

cb.reciprocal_connectivity(data, ...)  # one-shot
cb.ReciprocalConnectivity(...).apply(data)  # composable, for pipelines

Tags: directed, sink-source, post-processing, epilepsy, seizure-onset-zone, eeg, io:vector, req:asymmetric-matrix