Skip to main content

iEEG-BIDS anatomical and electrode coordinate interfacing software for easily generating anatomical interpretations of iEEG data.

Project description

CircleCI GitHub Actions Test Suite Code style: black https://codecov.io/gh/adam2392/seek_localize/branch/master/graph/badge.svg Documentation Status https://zenodo.org/badge/DOI/10.5281/zenodo.4508674.svg

seek_localize helps localize iEEG electrodes on MRI/CT images and deals with data processing for iEEG-BIDS data.

Documentation

The documentation can be found under the following links:

To see the seek documentation, see http://neuroseek.azurewebsites.net/docs/seek/

Setup and Installation

See INSTALLATION GUIDE for full instructions. A quick setup can occur with github and pipenv.

# clone repository locally
$ git clone https://github.com/adam2392/seek_localize
$ python3.8 -m venv .venv
$ pipenv install

Through pip

$ pip install seek_localize

Quick Usage

Here is a quick look at a basic use-case, where we want to label the anatomical regions each electrode is in, based on FreeSurfer.

from seek_localize import label_elecs_anat
from mne_bids import BIDSPath

# define file path to the T1w image that electrode coordinates are localized in
img_fname = ...

# define a path to the electrodes.tsv file in iEEG-BIDS
bids_path = BIDSPath(..., suffix='electrodes', extension='.tsv')

# define filepath to the FreeSurferColor Look up Table
# (it is stored locally)
fs_lut_fpath = seek_localize.fs_lut_fpath

label_elecs_anat(bids_path, img_fname, fs_lut_fpath)

Data Organization

We use BIDS. See https://github.com/bids-standard/bids-starter-kit/wiki/The-BIDS-folder-hierarchy for more information. We recommend the following BIDS structure with the minimally required set of files.

{bids_root}/
     /sub-001/
         /anat/
             - sub-001_*_T1w.nii
         /ct/
             - sub-001_*_CT.nii
         /ieeg/
             - sub-001_*_channels.tsv
             - sub-001_*_electrodes.tsv
             - *

Development

seek_localize was created and is maintained by Adam Li. It is also maintained and contributed by Christopher Coogan and other researchers in the NCSL and Crone lab. Contributions are more than welcome so feel free to contact me, open an issue or submit a pull request! See the contribution guide.

To report a bug, please visit the GitHub repository.

Note that this program is provided with NO WARRANTY OF ANY KIND. If you can, always double check the results with a human researcher, or clinician.

How to cite?

If you want to cite seek_localize, please cite the following paper(s).

Adam Li. (2021, February 5). seek_localize (Version 0.0.1). Zenodo. http://doi.org/10.5281/zenodo.4508674

Acknowledgement

Appelhoff, S., Sanderson, M., Brooks, T., Vliet, M., Quentin, R., Holdgraf, C., Chaumon, M., Mikulan, E., Tavabi, K., Höchenberger, R., Welke, D., Brunner, C., Rockhill, A., Larson, E., Gramfort, A., & Jas, M. (2019): MNE-BIDS: Organizing electrophysiological data into the BIDS format and facilitating their analysis. Journal of Open Source Software, 4:1896. DOI: [10.21105/joss.01896](https://doi.org/10.21105/joss.01896)

FAQ

1. For ECoG data, we do not explicitly have a process outlined, but these are significantly easier since grids can be easily interpolated. See Fieldtrip Toolbox.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seek_localize-0.1.0.tar.gz (120.1 kB view details)

Uploaded Source

Built Distribution

seek_localize-0.1.0-py3.8.egg (139.8 kB view details)

Uploaded Source

File details

Details for the file seek_localize-0.1.0.tar.gz.

File metadata

  • Download URL: seek_localize-0.1.0.tar.gz
  • Upload date:
  • Size: 120.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for seek_localize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 472499269a02919bc10a24c01883989aab897a629ffaa19ed5bbb1be48476c92
MD5 b62ea2da90c07624a30b49dd9ce7663b
BLAKE2b-256 5206bcc5b6410fb4c67e82628adc39c66dcd672808dcfbd62c1d9f379f5753dd

See more details on using hashes here.

File details

Details for the file seek_localize-0.1.0-py3.8.egg.

File metadata

  • Download URL: seek_localize-0.1.0-py3.8.egg
  • Upload date:
  • Size: 139.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for seek_localize-0.1.0-py3.8.egg
Algorithm Hash digest
SHA256 faf405bbae2c97019b31650e1ddc58b92b5374029fa599c309e5a1a57364cdf5
MD5 2f4c50f69b33253db4f3ba288399f737
BLAKE2b-256 4a8c03ebdf1e095f7fcaf8f675cea30cc5a9f16861b85d38239827933cbdc619

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page