Skip to main content

Analysis of electrophysiology data

Project description

[![Python package](https://github.com/rhayman/ephysiopy/actions/workflows/python-package.yml/badge.svg)](https://github.com/rhayman/ephysiopy/actions/workflows/python-package.yml)

Synopsis

Tools for the analysis of electrophysiological data collected with the Axona or openephys recording systems.

Installation

ephysiopy requires python3.7 or greater. The easiest way to install is using pip:

python3 -m pip install ephysiopy

or,

pip3 install ephysiopy

Or similar.

Code Example

Neuropixels / openephys tetrode recordings

For openephys-type analysis there are two main entry classes depending on whether you are doing OpenEphys- or Axona-based analysis. Both classes inherit from the same abstract base class (TrialInterface) and so share a high degree of overlap in what they can do. Because of the inheritance structure, the methods you call on each concrete class are the same

`python from ephysiopy.io.recording import OpenEphysBase trial = OpenEphysBase("/path/to/top_level") `

The “/path/to/top_level” bit here means that if your directory hierarchy looks like this:

├── 2020-03-20_12-40-15
├── Record Node 101
|    └── settings.xml
         experiment1
|        └── recording1
|            ├── structure.oebin
|            ├── sync_messages.txt
|            ├── continuous
|            |   └── Neuropix-PXI-107.0
|            |       └── continuous.dat
|            └── events
├── Record Node 102

Then the “/path/to/top_level” is the folder “2020-03-20_12-40-15”

On insantiation of an OpenEphysBase object the directory structure containing the recording is traversed and various file locations are noted for later processing of the data in them.

The pos data is loaded by calling the load_pos_data() method:

`python npx.load_pos_data(ppm=300, jumpmax=100, cm=True) `

Note ppm = pixels per metre, used to convert pixel coords to cms. jumpmax = maximum “jump” in cms for point to be considered “bad” and smoothed over

The same principles apply to the other classes that inherit from TrialInterface (AxonaTrial and OpenEphysNWB)

Plotting data

A mixin class called FigureMaker allows consistent plots, regardless of recording technique. All plotting functions there begin with “make” e.g “_getRateMapPlot” and return an instance of a matplotlib axis

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

ephysiopy-2.0.39.tar.gz (129.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ephysiopy-2.0.39-py3-none-any.whl (142.3 kB view details)

Uploaded Python 3

File details

Details for the file ephysiopy-2.0.39.tar.gz.

File metadata

  • Download URL: ephysiopy-2.0.39.tar.gz
  • Upload date:
  • Size: 129.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ephysiopy-2.0.39.tar.gz
Algorithm Hash digest
SHA256 1a7a0f999d4928b006e21ca88105b3223db256636ad727d6000766b9eab4dae3
MD5 2e8045e21d58ba2a8e96b74be4d52187
BLAKE2b-256 1c514e09676b6d9595dc0c500ffa5952c4d19caa9f674c5518f512b32db1af79

See more details on using hashes here.

File details

Details for the file ephysiopy-2.0.39-py3-none-any.whl.

File metadata

  • Download URL: ephysiopy-2.0.39-py3-none-any.whl
  • Upload date:
  • Size: 142.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for ephysiopy-2.0.39-py3-none-any.whl
Algorithm Hash digest
SHA256 e658945d25f11e21d46c9f5c07032fd17fdd0faaf50547b1a49423f3852d70c9
MD5 c5970e3bac91cad3edf3b9b7bc9a844c
BLAKE2b-256 84ce8fedf00a394ebd699b66df0e473886b4944df08d20a4a8a5b7dc5bf4d7c8

See more details on using hashes here.

Supported by

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