Skip to content
forked from simnibs/simnibs

Simulation of Non-Invasive Brain Stimulation

License

Notifications You must be signed in to change notification settings

RawanIb/simnibs

 
 

Repository files navigation

SimNIBS

SimNIBS Fronpage The main goal of SimNIBS is to calculate electric fields caused by Transcranial Electrical Stimulation (TES) and Transcranial Magnetic Stimulation (TMS).

The pipeline is divided in three parts:

  1. Automatic segmentation of MRI images and meshing to create individualized head models
  2. Calculation of electric fields through the Finite Element Method (FEM)
  3. Post-processing of results for further analysis.

Build Status

Linux Windows MacOS
Build Status Build Status Build Status

Getting Started

SimNIBS runs on 64bit Windows, Linux and MacOS machines. Please visit the SimNIBS website for instructions on how to download and install SimNIBS.

Installation for development

After cloning the repository (for all platforms except arm64 Macs):

conda env create -f environment_.yml -n <name_of_my_environment>
conda activate <name_of_my_environment>
python -m pip install --editable .
python simnibs/cli/link_external_progs.py

Rawan Installation Guide

If above didnt work, try the following:

conda env create -f "environment_win.yml"
conda activate simnibs_env
pip install -f https://github.com/simnibs/simnibs/releases/latest simnibs

If this not working use, download the .whl file then:

pip install simnibs-4.1.0-cp39-cp39-win_amd64.whl --user

If loop module import raise error, try to delete simnibs\__init__.py file.

Example dataset

Example dataset can be downloaded from the following link: https://github.com/simnibs/example-dataset/releases/latest/download/simnibs4_examples.zip

NOTE

Currently on arm64 Macs it is only possible to build by creating an x86_64 environment. To do so, replace the first command above with:

conda env create -f environment_.yml -n <name_of_my_environment> --platform osx-64

If the --platform argument is not available in your version of conda, use

CONDA_SUBDIR=osx-64 conda env create -f environment_.yml -n <name_of_my_environment>
conda env config vars set CONDA_SUBDIR=osx-64 -n <name_of_my_environment>

The latter command ensures that new packages are also installed from the osx-64 subdir in this environment.

Authors

Please see the SimNIBS website for a complete list of contributors.

3rd Party Files

We have included code or binaries from the following project to this repository:

For a full list of files and licenses, please see the 3RD-PARTY.md file

About

Simulation of Non-Invasive Brain Stimulation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 73.1%
  • C 13.9%
  • MATLAB 8.4%
  • Cython 3.4%
  • C++ 0.8%
  • NSIS 0.2%
  • Other 0.2%