In [1]:
import numpy as np
In [2]:
import scipy
from scipy import io
dyconnmap supports the standard NumPy arrays, so, it's up to the user to import the data. For example, one could load a Nifti file (using i.e. nibabel) and fetch the internal structure that is a standard numpy array.
In [3]:
data = scipy.io.loadmat('sample_eeg/eyes_open.mat')
eeg = np.squeeze(data['eyes_open'])
fs = 160.0
num_trials = 101
num_samples_vis = 160 * 3
After loading the data, inspect them; find out home many channels and samples are available.
In [4]:
num_channels, num_samples = np.shape(eeg[0])
print("""
trials: {0}
channels: {1}
samples: {2}
""".format(num_trials, num_channels, num_samples))
In [5]:
eeg1 = eeg[0]
dyconnmap's available submodules are
fc for functional connectivitygraphs for graph analysis,cluster for clustering algorithmsts for (symbolic) time series
In [8]:
import warnings
warnings.simplefilter(action='ignore', category=FutureWarning)
from dyconnmap.fc import iplv
Most estimators' functions signatures rely on the same inputs. One can reference to the docstrings or simply read the whole documentation with the command (i.e.) help(iplv).
In [9]:
help(iplv)
The pairs argument is optional, and usually is ignored.