Skip to content

simnibs-reader

Load, extract, clean and analyze SimNIBS e-field NIfTI outputs — in one line.

simnibs-reader is a lightweight Python library that turns SimNIBS simulation results into analysis-ready ROI data with built-in outlier removal, smoothing, statistics and export.


Installation

pip install simnibs-reader

Quick Example

from simnibs_reader import SimNIBSResults

results = SimNIBSResults("/path/to/simnibs/output")
efield = results.efield()

# Extract ROI, clean, get stats — 3 lines
roi = efield.get_roi(mask="my_roi.nii.gz")
cleaned = roi.postprocess(smooth_fwhm=2.0, outlier_method="iqr")
cleaned.stats()
# {'mean': 0.142, 'median': 0.138, 'std': 0.031, 'max': 0.241, ...}

Ecosystem

  • SimNIBS


    The core simulation platform for non-invasive brain stimulation.

    Documentation

  • simnibs-modular


    Modular pipeline components for SimNIBS workflows.

    GitHub Pages · Repo

  • simnibs-analyze


    Statistical analysis tools for SimNIBS outputs.

    GitHub Pages · Repo


⚡️ Automated Stroke Pipeline

Stroke tDCS Pipeline

End-to-end automated pipeline for stroke lesion-aware tDCS simulation and analysis.