mne.datasets.sample.data_path#
- mne.datasets.sample.data_path(path=None, force_update=False, update_path=True, download=True, *, verbose=None)[source]#
Get path to local copy of sample dataset.
- Parameters
- path
None|str Location of where to look for the sample dataset. If None, the environment variable or config parameter
MNE_DATASETS_SAMPLE_PATHis used. If it doesn’t exist, the “~/mne_data” directory is used. If the sample dataset is not found under the given path, the data will be automatically downloaded to the specified folder.- force_updatebool
Force update of the sample dataset even if a local copy exists. Default is False.
- update_pathbool |
None If True (default), set the
MNE_DATASETS_SAMPLE_PATHin mne-python config to the given path. If None, the user is prompted.- downloadbool
If False and the sample dataset has not been downloaded yet, it will not be downloaded and the path will be returned as ‘’ (empty string). This is mostly used for debugging purposes and can be safely ignored by most users.
- verbosebool |
str|int|None Control verbosity of the logging output. If
None, use the default verbosity level. See the logging documentation andmne.verbose()for details. Should only be passed as a keyword argument.
- path
- Returns
- pathinstance of
pathlib.Path Path to sample dataset directory.
- pathinstance of
Examples using mne.datasets.sample.data_path#
Signal-space separation (SSS) and Maxwell filtering
Preprocessing functional near-infrared spectroscopy (fNIRS) data
EEG processing and Event Related Potentials (ERPs)
Source localization with equivalent current dipole (ECD) fit
Source localization with MNE, dSPM, sLORETA, and eLORETA
The role of dipole orientations in distributed source localization
EEG source localization given electrode locations on an MRI
Non-parametric 1 sample cluster statistic on single trial power
Non-parametric between conditions cluster statistic on single trial power
Spatiotemporal permutation F-test on full sensor data
Permutation t-test on source data with spatio-temporal clustering
2 samples permutation test on source data with spatio-temporal clustering
Repeated measures ANOVA on source data with spatio-temporal clustering
Mass-univariate twoway repeated measures ANOVA on single trial power
Cortical Signal Suppression (CSS) for removal of cortical signals
Define target events based on time lag, plot evoked response
Transform EEG data using current source density (CSD)
Compute Power Spectral Density of inverse solution from single epochs
Compute power and phase lock in label of the source space
Compute source power spectral density (PSD) in a label
Compute induced power in the source space with dSPM
Permutation F-test on sensor data with 1D cluster level
Decoding sensor space data with generalization across time and conditions
Analysis of evoked response using ICA and PCA reduction techniques
Linear classifier on sensor data with plot patterns and filters
Compute MNE-dSPM inverse solution on single epochs
Compute MNE-dSPM inverse solution on evoked data in volume source space
Compute a sparse inverse solution using the Gamma-MAP empirical Bayesian method
Extracting time course from source_estimate object
Extracting the time series of activations in a label
Compute sparse inverse solution with mixed norm: MxNE and irMxNE
Compute MNE inverse solution on evoked data with a mixed source space
Compute source power estimate by projecting the covariance with MNE
Visualize source leakage among labels using a circular graph
Plot point-spread functions (PSFs) and cross-talk functions (CTFs)
Compute spatial resolution metrics in source space
Compute spatial resolution metrics to compare MEG with EEG+MEG