Skip to main content

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

Metadata

Release files for ysa-signal 1.2.15

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

Source distribution (sdist)

Source distribution for ysa-signal 1.2.15
File Size Uploaded Provenance Actions
ysa_signal-1.2.15.tar.gz 39.0 kB Without provenance Details for ysa_signal-1.2.15.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for ysa-signal 1.2.15
File Interpreter ABI Platform Actions
ysa_signal-1.2.15-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for ysa_signal-1.2.15-cp310-cp310-win_amd64.whl
ysa_signal-1.2.15-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl CPython 3.10 CPython 3.10 macOS 15.0+ ARM64, macOS 10.14+ x86-64 Details for ysa_signal-1.2.15-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl

Total release size: 3.7 MB

Release files / ysa_signal-1.2.15.tar.gz

Download URL ysa_signal-1.2.15.tar.gz
Size 39.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4a1f2551f42b3472463f501846a32793cbf7c8e319e4dd741616f893f384a72a
BLAKE2b-256 checksum
How to use checksums
19c378fbc3abede2ab73b1a1b69a3357243d6da80ec41320edf14f49e10bfcf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / ysa_signal-1.2.15-cp310-cp310-win_amd64.whl

Download URL ysa_signal-1.2.15-cp310-cp310-win_amd64.whl
Size 1.9 MB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
3fc1d59e9108d01f953eeb4d2e38e7edde34349e4ad9538894ae56fd95c664a2
BLAKE2b-256 checksum
How to use checksums
dd2293ce5d67b886de97183fed9cd28c10d90e019f973d903989dfa4d6fa28a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / ysa_signal-1.2.15-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl

Download URL ysa_signal-1.2.15-cp310-cp310-macosx_10_14_x86_64.macosx_15_0_arm64.whl
Size 1.7 MB
Tags CPython 3.10 macOS 10.14+ x86-64 macOS 15.0+ ARM64
SHA-256 checksum
How to use checksums
fec13b2ac018654bb444a0fd4c73a8e0ebe905eb9691def471c0153e4b60aee4
BLAKE2b-256 checksum
How to use checksums
f2fedf0306c1323825c2c4b5624c5ca4adc7178af4b8c5178b937cc4b0e4a1ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for ysa-signal 1.2.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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