Python library for reading files in Axon Binary Format (ABF)
Project description
pyabf: A portable Python library for reading files in Axon Binary Format (ABF)
==============================================================================
* Project Homepage: `https://github.com/swharden/pyABF <https://github.com/swharden/pyABF>`_
* Package Usage: `https://github.com/swharden/pyABF/tree/master/doc/pyabf <https://github.com/swharden/pyABF/tree/master/doc/pyabf>`_
* pyABF Cookbook: Getting Started `https://github.com/swharden/pyABF/blob/master/cookbook/getting-started.ipynb>`_
* pyABF Cookbook: Features of ABF objects `https://github.com/swharden/pyABF/tree/master/cookbook>`_
* ABF File Format: `https://github.com/swharden/pyABF/tree/master/doc/abf-file-format <https://github.com/swharden/pyABF/tree/master/doc/abf-file-format>`_
Quickstart
----------
**Display ABF Information:**
.. code-block:: python
import pyabf
abf=pyabf.ABF("filename.abf")
abf.info()
**Plot all sweeps with matplotlib:**
.. code-block:: python
import pyabf
import matplotlib.pyplot as plt
abf=pyabf.ABF("filename.abf")
plt.figure(figsize=(8,4))
for sweepNumber in abf.sweepList:
abf.setSweep(sweepNumber)
plt.plot(abf.dataX,abf.dataY)
plt.ylabel(abf.unitsLong)
plt.xlabel(abf.unitsTimeLong)
plt.title(abf.ID)
plt.margins(0,.1)
plt.show()
**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: https://github.com/swharden/pyABF
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyabf-0.1.7.tar.gz
(19.7 kB
view hashes)