You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-54Lines changed: 2 additions & 54 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,22 +14,6 @@ To leverage recent and ongoing advancements in large-scale computational methods
14
14
15
15
The data in EEG-DaSh originates from a collaboration involving 25 laboratories, encompassing 27,053 participants. This extensive collection includes MEEG data, which is a combination of EEG and MEG signals. The data is sourced from various studies conducted by these labs, involving both healthy subjects and clinical populations with conditions such as ADHD, depression, schizophrenia, dementia, autism, and psychosis. Additionally, data spans different mental states like sleep, meditation, and cognitive tasks. In addition, EEG-DaSh will incorporate a subset of the data converted from NEMAR, which includes 330 MEEG BIDS-formatted datasets, further expanding the archive with well-curated, standardized neuroelectromagnetic data.
16
16
17
-
## Featured data
18
-
19
-
The following HBN datasets are currently featured on EEGDash. Documentation about these datasets is available [here](https://neuromechanist.github.io/data/hbn/).
20
-
21
-
| DatasetID | Participants | Files | Sessions | Population | Channels | Is 10-20? | Modality | Size |
A total of [246 other datasets](datasets.md) are also available through EEGDash.
32
-
33
17
## Data format
34
18
35
19
EEGDash queries return a **Pytorch Dataset** formatted to facilitate machine learning (ML) and deep learning (DL) applications. PyTorch Datasets are the best format for EEGDash queries because they provide an efficient, scalable, and flexible structure for machine learning (ML) and deep learning (DL) applications. They allow seamless integration with PyTorch’s DataLoader, enabling efficient batching, shuffling, and parallel data loading, which is essential for training deep learning models on large EEG datasets.
@@ -41,47 +25,11 @@ EEGDash datasets are processed using the popular [braindecode](https://braindeco
41
25
## EEG-Dash usage
42
26
43
27
### Install
44
-
Use your preferred Python environment manager with Python > 3.9 to install the package.
28
+
Use your preferred Python environment manager with Python > 3.10 to install the package.
45
29
* To install the eegdash package, use the following command: `pip install eegdash`
46
30
* To verify the installation, start a Python session and type: `from eegdash import EEGDash`
47
31
48
-
### Data access
49
-
50
-
To use the data from a single subject, enter:
51
-
52
-
```python
53
-
from eegdash import EEGDashDataset
54
-
55
-
ds_NDARDB033FW5 = EEGDashDataset(
56
-
{"dataset": "ds005514", "task":
57
-
"RestingState", "subject": "NDARDB033FW5"},
58
-
cache_dir="."
59
-
)
60
-
```
61
-
62
-
This will search and download the metadata for the task **RestingState** for subject **NDARDB033FW5** in BIDS dataset **ds005514**. The actual data will not be downloaded at this stage. Following standard practice, data is only downloaded once it is processed. The **ds_NDARDB033FW5** object is a fully functional braindecode dataset, which is itself a PyTorch dataset. This [tutorial](https://github.com/sccn/EEGDash/blob/develop/notebooks/tutorial_eoec.ipynb) shows how to preprocess the EEG data, extracting portions of the data containing eyes-open and eyes-closed segments, then perform eyes-open vs. eyes-closed classification using a (shallow) deep-learning model.
This will search and download the metadata for the task 'RestingState' for all subjects in BIDS dataset 'ds005505' (a total of 136). As above, the actual data will not be downloaded at this stage so this command is quick to execute. Also, the target class for each subject is assigned using the target_name parameter. This means that this object is ready to be directly fed to a deep learning model, although the [tutorial script](https://github.com/sccn/EEGDash/blob/develop/notebooks/tutorial_sex_classification.ipynb) performs minimal processing on it, prior to training a deep-learning model. Because 14 gigabytes of data are downloaded, this tutorial takes about 10 minutes to execute.
75
-
76
-
### Automatic caching
77
-
78
-
By default, EEGDash caches downloaded data under a single, consistent folder:
79
-
80
-
- If ``EEGDASH_CACHE_DIR`` is set in your environment, that path is used.
81
-
- Else, if MNE’s ``MNE_DATA`` config is set, that path is used to align with other EEG tooling.
82
-
- Otherwise, ``.eegdash_cache`` in the current working directory is used.
83
-
84
-
This means that if you run the tutorial [scripts](https://github.com/sccn/EEGDash/tree/develop/notebooks), the data will only be downloaded the first time the script is executed and reused thereafter.
32
+
Please check our tutorial webpages to explore what you can do with [eegdash](https://eegdash.org/)!
0 commit comments