Skip to main content

YSA Signal - Standalone signal analyzer for .brw/.h5 files

Project description

YSA Signal

Post-Release Integration Test PyPI version

Standalone signal analyzer for downsampled .brw files

YSA Signal processes MEA recordings from downsampled .brw files, detects seizures and status epilepticus events, and saves the results in a compact HDF5 format.

Supported Platforms: macOS (Intel & Apple Silicon) • Windows (x64)

Installation

pip install ysa-signal

Usage

GUI Mode

To run the GUI, just run this command after installation:

ysa-signal

The GUI provides two tabs:

  • Process Files: Select input files, optionally enable seizure analysis, and save processed data
  • View Signals: Load processed files and view signals in an interactive 64x64 channel grid

CLI Mode

# Process without analysis (faster)
ysa-signal input.brw output_processed.h5

# Process with seizure analysis
ysa-signal input.brw output_processed.h5 --do-analysis

Python API

from ysa_signal import process_and_store, save_processed_data, load_processed_data

# Read in downsampled .brw file, process it, and store the results in memory (not on disk on a file)
processed_data = process_and_store('/path/to/file.brw', do_analysis=True)

# Save the processed data to an h5 file (on disk on a file you specify)
save_processed_data(processed_data, '/path/to/file_processed.h5')

# With already processed data saved to an h5 file, you can load it back into memory
loaded_data = load_processed_data('/path/to/file_processed.h5')

# Example: Accessing data for a specific channel (row, col)
row = loaded_data.active_channels[0][0]
col = loaded_data.active_channels[0][1]

# Access the signal and seizure times for the specified channel
channel_data = loaded_data.data[row - 1, col - 1]
signal = channel_data['signal']
sz_times = channel_data['SzTimes']

Batch Processing Example

from ysa_signal import process_and_store, save_processed_data
import glob

for brw_file in glob.glob('data/*.brw'):
    output_file = brw_file.replace('.brw', '_processed.h5')
    processed_data = process_and_store(brw_file, do_analysis=True)
    save_processed_data(processed_data, output_file)

Support

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ysa_signal-1.2.11.tar.gz (39.0 kB view details)

Uploaded Source

Built Distributions

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

ysa_signal-1.2.11-cp310-cp310-win_amd64.whl (216.5 kB view details)

Uploaded CPython 3.10Windows x86-64

ysa_signal-1.2.11-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl (1.7 MB view details)

Uploaded CPython 3.10macOS 10.14+ x86-64macOS 15.0+ ARM64

File details

Details for the file ysa_signal-1.2.11.tar.gz.

File metadata

  • Download URL: ysa_signal-1.2.11.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ysa_signal-1.2.11.tar.gz
Algorithm Hash digest
SHA256 1665afafb85953d801cbdadc3e1ecfc0d7fb021f3db386b9ade2fb48450bf5a9
MD5 5bcde5531eb805a60f4a7ff126818f56
BLAKE2b-256 e335592dc2f9eb5b23654ce9050fe79869058233bf7781305922e1e98e144445

See more details on using hashes here.

File details

Details for the file ysa_signal-1.2.11-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for ysa_signal-1.2.11-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ea3083cf6aea4f45f27835d155448c22baad9de10dbc7bf7d1809f75e6c71b33
MD5 f077f17cc6645b552e8c67fc1607b2d0
BLAKE2b-256 47329b8fab929c76ba42822a7d009555d6e09604f504ee22b43b41775297712c

See more details on using hashes here.

File details

Details for the file ysa_signal-1.2.11-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for ysa_signal-1.2.11-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 c380ddbd20839ce05a5bffdd853b92f04d92ced4ee057d0da684198cdce6f5fc
MD5 6279fbd86b0bc8441ac332c22b9d3002
BLAKE2b-256 56697650de81aa8e0c6a7ffc1afa2b4c0fa86a315b99fe83176c4cc37e2ccc04

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