Skip to main content

Python library for reading files in Axon Binary Format (ABF)

Project description

pyABF: a pure-Python ABF file reader

pyABF provides a Python interface to electrophysiology files in the Axon Binary Format (ABF). pyABF supports Python versions 3.6 and newer and does not use obscure libraries (just the standard libraries plus numpy and matplotlib). pyABF supports reading of ABF1 and ABF2 files, and can write ABF1 files.

pyABF electrophysiology data analysis with Python and Matplotlib

Quickstart

Install or upgrade pyABF:

pip install --upgrade pyabf

Access ABF sweep data:

import pyabf
abf = pyabf.ABF("demo.abf")
abf.setSweep(sweepNumber=3, channel=0)
print(abf.sweepY) # displays sweep data (ADC)
print(abf.sweepX) # displays sweep times (seconds)
print(abf.sweepC) # displays command waveform (DAC)

Plot a sweep with Matplotlib:

import pyabf
import matplotlib.pyplot as plt
abf = pyabf.ABF("demo.abf")
abf.setSweep(14)
plt.plot(abf.sweepX, abf.sweepY)
plt.show()
pyABF Example

Additional Examples

Full pyabf API documentation, additional code examples, a pyabf cookbook, and low-level information about the ABF file format can be found at the pyABF project homepage: http://swharden.com/pyabf/

pyABF Example

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyabf-2.3.7.tar.gz (44.3 kB view details)

Uploaded Source

Built Distribution

pyabf-2.3.7-py3-none-any.whl (53.2 kB view details)

Uploaded Python 3

File details

Details for the file pyabf-2.3.7.tar.gz.

File metadata

  • Download URL: pyabf-2.3.7.tar.gz
  • Upload date:
  • Size: 44.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for pyabf-2.3.7.tar.gz
Algorithm Hash digest
SHA256 8ad126829f7a052694c8ab0839a557c19368b39ebe6adebfa300fddcc86fe40a
MD5 36a6769ceeba7787b3121c3c4d94cf3e
BLAKE2b-256 dc5c2434049962364613bc3dcecb24f3d4c7a5d1d48f0b4ab4a16d7a208d7a19

See more details on using hashes here.

File details

Details for the file pyabf-2.3.7-py3-none-any.whl.

File metadata

  • Download URL: pyabf-2.3.7-py3-none-any.whl
  • Upload date:
  • Size: 53.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.14

File hashes

Hashes for pyabf-2.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fff9db8e1d0be740025e6595b5879e1e9d6d58c3c2f77896a53e5592f9e4e406
MD5 f2692c72525fad3eb1b909c55e1717e6
BLAKE2b-256 97184849f016e6758ba5bc11295fcafd71f7175f2756a2ce96f6703c54186bfb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page