API Documentation

Main MNE-RSA functions

rsa_epochs(epochs, dsm_model[, noise_cov, ...])

Perform RSA in a searchlight pattern on epochs.

rsa_evokeds(evokeds, dsm_model[, noise_cov, ...])

Perform RSA in a searchlight pattern on evokeds.

rsa_stcs(stcs, dsm_model, src[, ...])

Perform RSA in a searchlight pattern on MNE-Python source estimates.

rsa_nifti(image, dsm_model[, ...])

Perform RSA in a searchlight pattern on Nibabel Nifti-like images.

Constructing DSMs

compute_dsm(data[, metric])

Compute a dissimilarity matrix (DSM).

compute_dsm_cv(folds[, metric])

Compute a dissimilarity matrix (DSM) using cross-validation.

dsm_epochs(epochs[, noise_cov, ...])

Generate DSMs in a searchlight pattern on epochs.

dsm_stcs(stcs, src[, spatial_radius, ...])

Generate DSMs in a searchlight pattern on MNE-Python source estimates.

dsm_nifti(image[, spatial_radius, ...])

Generate DSMs in a searchlight pattern on Nibabel Nifty-like images.

dsm_array(X[, patches, dist_metric, ...])

Generate DSMs from an array of data, possibly in a searchlight pattern.

Performing RSA

rsa(dsm_data, dsm_model[, metric, ...])

Perform RSA between data and model DSMs.

rsa_array(X, dsm_model[, patches, ...])

Perform RSA on an array of data, possibly in a searchlight pattern.

rsa_gen(dsm_data_gen, dsm_model[, metric, ...])

Generate RSA values between data and model DSMs.

Making searchlight patches

searchlight(shape[, dist, spatial_radius, ...])

Generate indices for searchlight patches.

Visualization

plot_dsms(dsms[, names, items, n_rows, ...])

Plot one or more DSMs

Utility functions

create_folds(X[, y, n_folds])

Group individual items into folds suitable for cross-validation.