Skip to main content

PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation.

Publication ,  Journal Article
Marshall, DP; Farah, ES; Musselman, ED; Pelot, NA; Grill, WM
Published in: PLoS computational biology
December 2025

Computational modeling of peripheral nerve fibers is a key tool for designing improved neuromodulation therapies. The NEURON software is commonly used to create biophysical simulations of nerve fibers, often in the outdated HOC language. Whether written in HOC or Python, implementing fiber simulations involves a steep learning curve and requires a large amount of standard, boilerplate code that is typically written anew for each project. There is a need for a code package that standardizes and simplifies the creation of model fibers, the execution of simulations of electrical stimulation, and the analysis of the resulting data. We created PyFibers, a NEURON-Python package that provides tools for accomplishing all these tasks and supports the development of new fiber models and stimulation protocols. PyFibers includes 11 fiber models from prior publications under a shared framework, and we validated each model's implementation in PyFibers against the original results. Our open-source tool simplifies and standardizes computational modeling of peripheral nerve fiber responses to electrical stimulation, providing a platform for the development of novel therapies using electrical stimulation, block, and recording.

Duke Scholars

Published In

PLoS computational biology

DOI

EISSN

1553-7358

ISSN

1553-734X

Publication Date

December 2025

Volume

21

Issue

12

Start / End Page

e1013764

Related Subject Headings

  • Software
  • Nerve Fibers
  • Models, Neurological
  • Humans
  • Electric Stimulation
  • Computer Simulation
  • Computational Biology
  • Bioinformatics
  • Animals
  • 08 Information and Computing Sciences
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Marshall, D. P., Farah, E. S., Musselman, E. D., Pelot, N. A., & Grill, W. M. (2025). PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation. PLoS Computational Biology, 21(12), e1013764. https://doi.org/10.1371/journal.pcbi.1013764
Marshall, Daniel P., Elie S. Farah, Eric D. Musselman, Nicole A. Pelot, and Warren M. Grill. “PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation.PLoS Computational Biology 21, no. 12 (December 2025): e1013764. https://doi.org/10.1371/journal.pcbi.1013764.
Marshall DP, Farah ES, Musselman ED, Pelot NA, Grill WM. PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation. PLoS computational biology. 2025 Dec;21(12):e1013764.
Marshall, Daniel P., et al. “PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation.PLoS Computational Biology, vol. 21, no. 12, Dec. 2025, p. e1013764. Epmc, doi:10.1371/journal.pcbi.1013764.
Marshall DP, Farah ES, Musselman ED, Pelot NA, Grill WM. PyFibers: An open-source NEURON-Python package to simulate responses of model nerve fibers to electrical stimulation. PLoS computational biology. 2025 Dec;21(12):e1013764.

Published In

PLoS computational biology

DOI

EISSN

1553-7358

ISSN

1553-734X

Publication Date

December 2025

Volume

21

Issue

12

Start / End Page

e1013764

Related Subject Headings

  • Software
  • Nerve Fibers
  • Models, Neurological
  • Humans
  • Electric Stimulation
  • Computer Simulation
  • Computational Biology
  • Bioinformatics
  • Animals
  • 08 Information and Computing Sciences