Skip to content

Lead field matrix - #249

Merged
caglorithm merged 3 commits into
neurolib-dev:masterfrom
Wirkungstreffer:Lead_Field_Matrix
Apr 2, 2024
Merged

caglorithm merged 3 commits into
neurolib-dev:masterfrom
Wirkungstreffer:Lead_Field_Matrix

Conversation

@Wirkungstreffer

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Kreijstal pushed a commit to Kreijstal/neurolib that referenced this pull request Jun 21, 2024
* add AAL2 atlas data files

* add lead-field matrix function script
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.

2 participants