Skip to main content

ephysio

Python code for reading ephys files

openEphysIO

This module provides convenient access to continuous and event data saved by OpenEphys. For instance:

from ephysio import openEphysIO
import matplotlib.pyplot as plt

ldr = openEphysIO.Loader("/path/to/data")

# first probe
strm = ldr.spikestreams()[0] 

# time x channel map of the data
dat = ldr.data(strm) 

# sampling rate in Hz
fs_Hz = ldr.samplingrate(strm) 
STIMMARKERCHANNEL = 2

# time stamps of events in channel 2 on the NIDAQ, translated to neuropixel time
evts = ldr.nidaqevents()[STIMMARKERCHANNEL] 
CHANNEL = 100
STIMNO = 10

# Start time of event #10
s0 = evts[STIMNO, 0] 

# prepare to receive 100 ms of data
ds = np.arange(int(.1*fs_Hz)) 

# 100 ms of data following the stimulus 
response = dat[s0:s0+ds, CHANNEL] 

# plot data with time in ms on x-axis
plt.plot(ds*1000/fs_Hz, response) 

Much more documentation is included in the module itself. Most users will want to use the Loader class rather than the various other functions.

Credits

Developed and tested by DAW and Frank Lanfranchi.

Metadata

Release files for ephysio 1.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for ephysio 1.0.13
File Interpreter ABI Platform
ephysio-1.0.13-py3-none-any.whl Python 3 none any Details

Release files / ephysio-1.0.13-py3-none-any.whl

Download URL ephysio-1.0.13-py3-none-any.whl
Size 45.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ad86d02a7cc4abe9aaf7fa9feff8fbddcc1ade6467eefdda6f280abf54808c0
BLAKE2b-256 checksum
How to use checksums
c132471d877bc322eeca2018f0e1d68f08f104d11431fdb286a4f17fbc26d444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.13 This release

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page