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¶
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.
-
simnibs-modular
Modular pipeline components for SimNIBS workflows.
-
simnibs-analyze
Statistical analysis tools for SimNIBS outputs.
⚡️ Automated Stroke Pipeline¶
End-to-end automated pipeline for stroke lesion-aware tDCS simulation and analysis.