mne.datasets.sleep_physionet.temazepam.fetch_data#

mne.datasets.sleep_physionet.temazepam.fetch_data(subjects, path=None, force_update=False, base_url='https://physionet.org/physiobank/database/sleep-edfx/sleep-telemetry/', *, verbose=None)[source]#

Get paths to local copies of PhysioNet Polysomnography dataset files.

This will fetch data from the publicly available subjects from PhysioNet’s study of Temazepam effects on sleep 1. This corresponds to a set of 22 subjects. Subjects had mild difficulty falling asleep but were otherwise healthy.

See more details in the physionet website 2.

Parameters
subjectslist of int

The subjects to use. Can be in the range of 0-21 (inclusive).

pathNone | str

Location of where to look for the PhysioNet data storing location. If None, the environment variable or config parameter PHYSIONET_SLEEP_PATH is used. If it doesn’t exist, the “~/mne_data” directory is used. If the Polysomnography dataset is not found under the given path, the data will be automatically downloaded to the specified folder.

force_updatebool

Force update of the dataset even if a local copy exists.

base_urlstr

The base URL to download from.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns
pathslist

List of local data paths of the given type.

Notes

For example, one could do:

>>> from mne.datasets import sleep_physionet
>>> sleep_physionet.temazepam.fetch_data(subjects=[1]) 

This would download data for subject 0 if it isn’t there already.

References

1

B. Kemp, A. H. Zwinderman, B. Tuk, H. A. C. Kamphuisen, and J. J. L. Oberyé. Analysis of a sleep-dependent neuronal feedback loop: the slow-wave microcontinuity of the EEG. IEEE Transactions on Biomedical Engineering, 47(9):1185–1194, 2000. doi:10.1109/10.867928.

2

Ary L. Goldberger, Luis A. N. Amaral, Leon Glass, Jeffrey M. Hausdorff, Plamen Ch. Ivanov, Roger G. Mark, Joseph E. Mietus, George B. Moody, Chung-Kang Peng, and H. Eugene Stanley. PhysioBank, PhysioToolkit, and PhysioNet: Components of a new research resource for complex physiologic signals. Circulation, 2000. doi:10.1161/01.CIR.101.23.e215.