Skip to main content

A python toolbox to conduct non-invasive brain stimulation experiments (NIBS).

Project description

pyNIBS

Preprocessing, postprocessing, and analyses routines for non-invasive brain stimulation experiments.

Latest Release

pyNIBS provides the functions to allow cortical mappings with transcranial magnetic stimulation (TMS) via functional analysis. pyNIBS is developed to work with SimNIBS, i.e. SimNIBS' meshes and FEM results can directly be used. Currently, SimNIBS 3.2.5 is supported. Have a look at our [gitlab repository] for SimNIBS 4 (beta) support.

See the documentation for package details and our protocol publication for an extensive example of the usage.

Installation

Via pip:

pip install pynibs

Or clone the source repository and install via setup.py:

git clone https://gitlab.gwdg.de/tms-localization/pynibs
cd pynibs
python setup.py develop

To import CED Signal EMG data use the export to .mat feature of Signal. To read .cfs files exported with CED Signal you might need to manually compile the libbiosig package:

cd pynibs/pckg/biosig
tar -xvf biosig4c++-1.9.5.src_fixed.tar.gz
cd biosig4c++-1.9.5
./configure
make
cd python
python setup.py install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.local/lib  # add `~/.local/lib` to your `.bashrc`

Bugs

Yes. Drop us a line if you find any or feel free to file a PR.

Citation

Please cite Numssen, O., Zier, A. L., Thielscher, A., Hartwigsen, G., Knösche, T. R., & Weise, K. (2021). Efficient high-resolution TMS mapping of the human motor cortex by nonlinear regression. NeuroImage, 245, 118654. doi:10.1016/j.neuroimage.2021.118654 when using this toolbox in your research.

References

  • Weise, K., Numssen, O., Thielscher, A., Hartwigsen, G., & Knösche, T. R. (2020). A novel approach to localize cortical TMS effects. Neuroimage, 209, 116486. doi: 10.1016/j.neuroimage.2019.116486
  • Numssen, O., Zier, A. L., Thielscher, A., Hartwigsen, G., Knösche, T. R., & Weise, K. (2021). Efficient high-resolution TMS mapping of the human motor cortex by nonlinear regression. NeuroImage, 245, 118654. doi:10.1016/j.neuroimage.2021.118654
  • Weise, K., Numssen, O., Kalloch, B., Zier, A. L., Thielscher, A., Hartwigsen, G., Knösche, T. R. (2022). Precise transcranial magnetic stimulation motor-mapping. Nature Protocols. (accepted)

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

pynibs-0.1.7.tar.gz (252.0 kB view details)

Uploaded Source

Built Distribution

pynibs-0.1.7-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file pynibs-0.1.7.tar.gz.

File metadata

  • Download URL: pynibs-0.1.7.tar.gz
  • Upload date:
  • Size: 252.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pynibs-0.1.7.tar.gz
Algorithm Hash digest
SHA256 6ad85f71b89cf30f0822019df8f1f7879e69ffdeb9782978951b45549871a9f2
MD5 eaca5412da7a54dad034da7b227c77f8
BLAKE2b-256 127c9cb056be91693cd8fbd451e7d7e18dd9412831fb495dd73566eae0454f1e

See more details on using hashes here.

File details

Details for the file pynibs-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: pynibs-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 1.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for pynibs-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 317bd4be6a35eb7a355d2f61c9e9e5edc5b16e798f1a079aa24e094bc8331ff7
MD5 33d3e7688be505d969acc7f84ad9ae7c
BLAKE2b-256 25caa5681ade63bc18b9fd4eb102c8b3156dcac05abebb5f8a8ffacba0baaeb0

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 Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page