Skip to main content

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)

Release files for pyNIBS 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyNIBS 0.1.8
File Size Uploaded
pynibs-0.1.8.tar.gz 252.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyNIBS 0.1.8
File Interpreter ABI Platform
pynibs-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / pynibs-0.1.8.tar.gz

Download URL pynibs-0.1.8.tar.gz
Size 252.7 kB
Tags Source
SHA-256 checksum
How to use checksums
215b076bb81756043d3ad4e89f304ac5b4fd89b0b9fe0cf8b66f9845dc3a5403
BLAKE2b-256 checksum
How to use checksums
7f310f83e17049a6337c36aa0dcc51ff5456b8f943c1da9def77ec2f4e68c9ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / pynibs-0.1.8-py3-none-any.whl

Download URL pynibs-0.1.8-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
d87602719df7408f033c39b870a5bec831ec151d85b96eed505b248fdfad4c8c
BLAKE2b-256 checksum
How to use checksums
9c9f762f47b7910205bbdc9a23531cb4cdc01fa6db684bea916b9cfbe4c5ff83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page