pyABF: a pure-Python ABF file reader
pyABF provides a Python interface to electrophysiology files in the Axon Binary Format (ABF). pyABF supports Python 3 and does not use obscure libraries (just numpy and matplotlib). pyABF supports reading ABF1 and ABF2 files and can write ABF1 files.
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()
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/
Metadata
Release files for pyabf 2.3.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyabf-2.3.8.tar.gz | 44.2 kB | Without provenance | Details for pyabf-2.3.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyabf-2.3.8-py3-none-any.whl | Python 3 | none | any | Details for pyabf-2.3.8-py3-none-any.whl |
Total release size: 97.2 kB
Release files / pyabf-2.3.8.tar.gz
| Download URL | pyabf-2.3.8.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4a4cf5701149eed75adc4dc8ea975c61c43c1678e5bcf468426140ec52302109
|
|
BLAKE2b-256 checksum How to use checksums |
088c60694c3129f22766e69e413c8172a263a46f363a99498da63bda411cfe28
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / pyabf-2.3.8-py3-none-any.whl
| Download URL | pyabf-2.3.8-py3-none-any.whl |
|---|---|
| Size | 53.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
32c59da0db9afdb69568b6bd0f8aa4b409193fe325a461d906c6ae22e5bff391
|
|
BLAKE2b-256 checksum How to use checksums |
b428b05be29bc66faa4683b18aaa67cb24edde881f54b0e368adf8975b78fd02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for pyabf 2.3.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.