pyabf is a Python library for reading electrophysiology data from Axon Binary Format (ABF) files. It was created with the goal of providing a Pythonic API to access the content of ABF files which is so intuitive to use (with a predictive IDE) that documentation is largely unnecessary. Flip through the pyabf Tutorial and you'll be analyzing data from your ABF files in minutes!
pip install --upgrade pyabf
import pyabf
abf = pyabf.ABF("demo.abf")
abf.setSweep(3)
print(abf.sweepY) # displays sweep data (ADC)
print(abf.sweepX) # displays sweep times (seconds)
print(abf.sweepC) # displays command waveform (DAC)
The latest version of pyABF runs on all currently supported Python versions.
Users who wish to run pyABF on older versions of python may do so by installing older pyABF packages available on the Release History Page on PyPi. Additional information is available on the pyABF Release History Page on GitHub. Note that pyabf 2.1.10 was the last version to support both Python 2.7 and Python 3.5.
- pyabf Website
- pyabf Tutorial
- Advanced Topics
- ABF File Format
- AbfSharp - a C#/.NET interface for ABF files