This repository demonstrates how to:
- Access and download iEEG data from the Cogitate database.
- Perform preprocessing and preliminary analyses on the data.
- Use the cog_ieeg Python package, which contains many utilities created for the Cogitate consortium.
It accompanies the scientific data we have recently submitted and is intended to help researchers quickly get started with the dataset and tools.
To download our data, you must first register for an account on our data portal. Watch this video to see how, or directly register here.
In a dedicated Python environment (recommended), run:
pip install git+https://github.com/Cogitate-consortium/iEEG-data-release.git@main#egg=cog_ieeg
This single command will install all necessary dependencies and the cog_ieeg package. You will then be ready to go
The various scripts presented below will download the data automatically in your home directory, under COGITATE/bids. If you wish to change this default parameter, you can adjust it with python:
from cog_ieeg.utils import set_bids_root
set_bids_root("YOUR/LOCAL/PATH")
This step is optional, everything else is ready to go. You also don't need to download any data manually, has we have automated download implemented. You should only register to our database here to get your credentials. You will simply need to specify the name of the subject you would like to download, input your credentials and the data will get downloaded on your machine.
This repository contains Jupyter notebooks, analysis pipelines, and various utility functions. Depending on your goals, here are the key entry points:
- Check out the ieeg-data-release.ipynb notebook to see the steps involved in iEEG data analysis, including how to work with the COGITATE data format.
- If you have decided you would like to do something with the cogitate data, you should go check this notebook. It can be run on each subject to get an idea of channels localization, responses observed
- You can also run the batch_subjects_reports.py to generate HTML reports for multiple subjects at once.
- Visit cog_ieeg to see the source code for the Python package. This is where various custom functions are implemented and organized.
- If you have your own data and would like to use pipelines that are similar to ours, go check the various scripts here. If your data follows the BIDS format, you should be able to adapt these pipelines with minimal effort
My personal recommendation is to always start with ieeg-data-release.ipynb notebook as it gives a really good overview of how things work in general.
If you use the scripts found in this repository, you can use the DOI provided by Zenodo to cite us. And here is a bibtex:
@article{LepauvreEtAl2024,
title = {COGITATE-iEEG-DATA-RELEASE},
author = {Lepauvre, Alex and Henin, Simon and Bendtz, Katarina and Sripad, Praveen and Bonacchi, Niccolò and Kreiman, Gabriel and Melloni, Lucia},
year = {2024},
doi = {10.5281/zenodo.13832169},
}
If you use any the data for other purpose, you should cite the scientific data paper directly:
@article{SeedatEtAl2024,
author = {Alia Seedat and Alex Lepauvre and Jay Jeschke and Urszula Gorska-Klimowska and Marcelo Armendariz and Katarina Bendtz and Simon Henin and Rony Hirschhorn and Tanya Brown and Erika Jensen and David Mazumder and Stephanie Montenegro and Leyao Yu and Niccol\`{o} Bonacchi and Praveen Sripad and Fatemeh Taheriyan and Orrin Devinsky and Patricia Dugan and Werner Doyle and Adeen Flinker and Daniel Friedman and Wendell Lake and Michael Pitts and Liad Mudrik and Melanie Boly and Sasha Devore and Gabriel Kreiman and Lucia Melloni},
title = {Open multi-center iEEG dataset with task probing conscious visual perception},
journal = {TO_BE_UPDATED},
year = {TO_BE_UPDATED},
volume = {TO_BE_UPDATED},
number = {TO_BE_UPDATED},
pages = {TO_BE_UPDATED},
doi = {TO_BE_UPDATED},
}
Alex Lepauvre 💻 |
Praveen Sripad 💻 |
Simon Henin 💻 |
Katarina Bendtz 💻 |
Qian Chu 💬 |
Thank you for considering contributing to our project! Here are a few guidelines to help you get started:
- File an issue: Before making any changes, please open an issue to discuss the proposed changes. This helps us keep track of what needs to be done and ensures that your efforts align with the project's goals.
- Fork the repository and create your branch from
main
. - Commit your changes and push your branch to your fork.
- Submit a pull request and request a review.
Our main
branch is protected. All changes must be made via pull requests and require approval before being merged. This helps us maintain the quality and stability of the codebase.
All pull requests will be reviewed by a maintainer. Please be patient if we take a bit longer than expected.
If you have any questions, feel free to open an issue or contact the maintainers (alex.lepauvre@).
The folder WU_coregistration contains scripts that were used on subjects from Wisconsin university to co-register the trigger signal with the recorded iEEG signals (as both were recorded on different systems). This procedure was applied locally on the site before sharing the raw data, and is available here only for reference purposes. It should not be applied on the data at any points.
This notebook is brought to you by the intracranial team of the COGITATE consortium.
We would like to thank all the COGITATE consortium members:
This research was supported by Templeton World Charity Foundation (TWCF0389) and the Max Planck Society. The opinions expressed in this publication are those of the authors and do not necessarily reflect the views of TWCF.