SanPy: Software for the analysis and visualization of whole-cell current-clamp recordings

Biophys J. 2024 Apr 2;123(7):759-769. doi: 10.1016/j.bpj.2024.02.025. Epub 2024 Feb 27.

Abstract

The analysis of action potentials and other membrane voltage fluctuations provides a powerful approach for interrogating the function of excitable cells. However, a major bottleneck in the interpretation of this critical data is the lack of intuitive, agreed-upon software tools for its analysis. Here, we present SanPy, an open-source and freely available software package for the analysis and exploration of whole-cell current-clamp recordings written in Python. SanPy provides a robust computational engine with an application programming interface. Using this, we have developed a cross-platform desktop application with a graphical user interface that does not require programming. SanPy is designed to extract common parameters from action potentials, including threshold time and voltage, peak, half-width, and interval statistics. In addition, several cardiac parameters are measured, including the early diastolic duration and rate. SanPy is built to be fully extensible by providing a plugin architecture for the addition of new file loaders, analysis, and visualizations. A key feature of SanPy is its focus on quality control and data exploration. In the desktop interface, all plots of the data and analysis are linked, allowing simultaneous data visualization from different dimensions with the goal of obtaining ground-truth analysis. We provide documentation for all aspects of SanPy, including several use cases and examples. To test SanPy, we performed analysis on current-clamp recordings from heart and brain cells. Taken together, SanPy is a powerful tool for whole-cell current-clamp analysis and lays the foundation for future extension by the scientific community.

MeSH terms

  • Brain
  • Heart
  • Software*
  • User-Computer Interface*