Datasets#
The examples in the examples gallery use small,
pre-processed example datasets. Each one has a fetcher function in
whobpyt.datasets.fetchers that downloads it the first time it is needed:
from whobpyt.datasets.fetchers import fetch_egtmseeg
data_dir = fetch_egtmseeg() # returns the folder the files were saved to
By default, files are saved under ~/.whobpyt/data/<dataset name>. Every
fetcher also accepts dest_folder= to save somewhere else and
redownload=True to replace an existing copy. Most datasets are hosted on
the Open Science Framework (OSF).
The getting started tutorial makes its own toy data and needs no download.
Overview#
Fetcher |
Used by |
Contents |
|---|---|---|
|
One subject’s TMS-EEG epochs, lead field, and stimulation weights; a 200-region Schaefer parcellation (structural connectivity and region centroids); and a pre-computed fitting result. |
|
|
The Role of Recurrent Network Feedback in TMS-EEG Evoked Responses |
Grand-average and single-trial TMS-EEG data; per-subject lead fields and fitting results for six subjects; structural connectivity, distance matrix and annotation files for the 200-region Schaefer parcellation. |
|
Gradients of Excitability and Recurrence Revealed by Stimulation Mapping and Whole-Brain Modelling |
Intracerebral stimulation data (sEEG epochs and evoked scalp EEG), anatomical files (BEM, source space, head transform, parcellation), an example fitting result, and inputs for the virtual dissection analysis. |
|
Evoked MEG for verb generation and noise trials, empirical and simulated source and sensor time series, lead field, structural weights and distances. |
File details#
fetch_egtmseeg→~/.whobpyt/data/eg__tmseegSubject_1_low_voltage.fif(MNE epochs),Subject_1_low_voltage_lf.npy(lead field),stim_weights.npy(which regions are stimulated),Schaefer2018_200Parcels_7Networks_count.csv(structural connectivity),Schaefer2018_200Parcels_7Networks_order_FSLMNI152_2mm.Centroid_RAS.txt(region coordinates),Subject_1_low_voltage_fittingresults_stim_exp.pkl(a savedModelFittingobject).fetch_egmomi2023→~/.whobpyt/data/eg__momi2023sub_<n>_fittingresults_stim_exp.pklandsub_<n>_leadfieldfor subjects 0-5,leadfield,stim_weights.npy,real_EEG,only_high_trial.mat,all_avg.mat_avg_high_epoched,Schaefer2018_200Parcels_7Networks_count.csv,Schaefer2018_200Parcels_7Networks_distance.csv, and the left and right hemisphere.annotparcellation files.fetch_egmomi2025→~/.whobpyt/data/eg__momi2025Organised into sub-folders:
anatomical/,calculate_distance/,empirical_data/,example_fittingresults/andvirtual_dissection/.fetch_egismail2026→~/.whobpyt/data/eg__ismail2026verb_evoked.npyandnoise_evoked.npy(evoked MEG),emp_*_source.npyandsim_*_source.npy/sim_*_sensor.npy(empirical and simulated time series),leadfield_3d.mat,weights.csv(structural connectivity),distance.txt, andinfo.pkl/info_nosubjinfo.pkl(MNE measurement info).
Using your own data#
To model your own recordings you need, in a consistent parcellation:
a structural connectivity matrix (regions × regions),
a distance matrix (regions × regions), used to compute conduction delays,
for EEG/MEG, a lead field matrix (channels × regions), and
the recording itself, as a channels × time array.
See the Cookbook for how to load these into WhoBPyT.