
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
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.
.. class:: no-web
.. image:: http://swharden.com/pyabf/graphics/action-potentials-small.png
:alt: pyABF electrophysiology data analysis with Python and Matplotlib
:align: center
Install or upgrade pyABF:
.. code-block:: bash
pip install --upgrade pyabf
|
Access ABF sweep data:
.. code-block:: python
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:
.. code-block:: python
import pyabf import matplotlib.pyplot as plt abf = pyabf.ABF("demo.abf") abf.setSweep(14) plt.plot(abf.sweepX, abf.sweepY) plt.show()
.. class:: no-web
.. image:: http://swharden.com/pyabf/graphics/pyabf-example-sweep.jpg
:alt: pyABF Example
:align: center
|
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/
.. class:: no-web
.. image:: http://swharden.com/pyabf/graphics/pyabf-example-action-potentials.jpg
:alt: pyABF Example
:align: center
|
FAQs
Python library for reading files in Axon Binary Format (ABF)
We found that pyabf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.