Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lead field matrix #249

Merged
merged 3 commits into from
Apr 2, 2024
Merged

Conversation

Wirkungstreffer
Copy link
Contributor

Overview:
This pull request integrates two main components:

  1. AAL2 Atlas Data Files: Added Automated Anatomical Labeling 2 (AAL2) atlas parcellation files, specifically AAL2.nii and AAL2.xml.

  2. Lead-field Matrix Computation Script: Introduced a utility script leadfield.py to facilitate the calculation of the lead-field matrix for the template data "fsaverage" in alignment with the AAL2 atlas and the standard 1020 EEG montage, it serves as necessary functions script to execute the Jupyter notebook from Orabe Mohammad example-0.8-leadfield-matrix.ipynb (neurolib/examples/).

File Paths:

  • Two AAL2 Atlas Data: /neurolib/examples/data/AAL2_atlas_data/AAL2.nii
    /neurolib/examples/data/AAL2_atlas_data/AAL2.xml
  • Computation Script: /neurolib/neurolib/utils/leadfield.py

Dependencies:
Ensure the independencies MNE, nibabel, and matplotlib are installed. With these prerequisites, the provided Jupyter notebook can be executed to compute the lead-field matrix.

Paper References:
[Conference Paper]

Acknowledgments:

  • This contribution stems from the Neural Information Processing project carried out at the Technical University of Berlin.
  • Collaborative efforts with Orabe Mohammad: @orabe
  • Heartfelt gratitude to @caglorithm for the consistent mentorship.

Your review and feedback on this contribution would be greatly appreciated.

@caglorithm
Copy link
Member

Would it be possible to add a notebook example like the ones we have for other functionality? It would be of great help for anyone who would like to get up to speed how to use this great feature I believe.

@Wirkungstreffer
Copy link
Contributor Author

Would it be possible to add a notebook example like the ones we have for other functionality? It would be of great help for anyone who would like to get up to speed how to use this great feature I believe.

Yes, I think we have this notebook example and it is already in Mohammad's pull request. So we separated the uploads, I uploaded the function script and AAL2 files, and Mohammad uploaded the notebook example.

@caglorithm caglorithm merged commit c971c32 into neurolib-dev:master Apr 2, 2024
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants