WaveSpace
WaveSpace is a Python toolbox for simulating, detecting, and analyzing spatiotemporal traveling waves in neural sensor array data. It provides tools for generating synthetic datasets, and applying a range of wave analysis techniques such as optical flow, 2D FFT, circular-linear correlation and singular value decomposition. In addition, it contains pipelines to decompose multi-dimensional timeseries data into its frequency components to derive robust phase estimates. WaveSpace’s WaveData class provides a structured approach to managing complex datasets, while its plotting helpers facilitate intuitive visualization of spatiotemporal patterns.
Documentation
Access latest documentation from here
Installation
Download latest version from here
Open a terminal, navigate to the directory you downloaded to and install with
pip install wavespace
Testing
-
Run tests locally using Python's built-in
unittestframework from theUnitTestfolder:python -m unittest discover UnitTest
Contributing
See https://github.com/kpetras/WaveSpace/blob/main/CONTRIBUTING.md
Modules
Decomposition:
Implements various frequency decomposition techniques, such as Fourier and wavelet transforms, Empirical Mode Decomposition (EMD)
Preprocessing:
Provides functions for cleaning, normalizing, and filtering time series data.
Plotting Helpers:
Contains utilities for visualizing cortical traveling waves using matplotlib & pyvista, including time-frequency plots, phase maps, and spatial-temporal representations.
Simulation:
Tools for generating synthetic cortical traveling waves, aiding in model validation and hypothesis testing.
Spatial Arrangement:
Handles spatial organization of sensor positions. Includes interpolation options
Statistics:
Offers methods for computing null distributions.
Utils:
A collection of general-purpose helper functions used throughout the toolbox, including data manipulation and file I/O.
The WaveData Class
The WaveData class serves as a container for time-series data related to cortical traveling waves. It provides functionalities for data storage, manipulation, and analysis, ensuring a structured workflow for handling multi-channel neural recordings.
Key Features
- Initialization (
__init__): Stores channel positions, time vectors, sample rates, and maintains a structured dataset with multiple DataBuckets for flexible data handling. - Data Management:
- Supports multiple datasets through DataBuckets, enabling users to store, retrieve, and manipulate data flexibly.
- Provides methods to add, delete, and check the existence of specific DataBuckets.
- Allows appending datasets and setting an active dataset for streamlined analysis.
- Data Processing:
- Cropping: Enables temporal cropping of data using specific time intervals.
- Trial Pruning: Removes unwanted trials from datasets while maintaining metadata consistency.
- Metadata Handling:
- Stores and retrieves spatial arrangements of recording channels (
set_channel_positions,get_channel_positions). - Maintains a history of operations for reproducibility (
log_history). - Supports storage and retrieval of simulation and trial metadata (
set_simInfo,get_trialInfo).
- Stores and retrieves spatial arrangements of recording channels (
- I/O and Persistence:
- Saves objects to files for later retrieval (
save_to_file). - Provides a structured string representation (
__repr__) for quick dataset summaries.
- Saves objects to files for later retrieval (
This class is essential for organizing and processing large-scale neural recordings, offering flexibility in data structuring, preprocessing, and visualization. Let me know if you’d like any refinements!
Wave Analysis:
Core module for detecting, characterizing, and quantifying cortical traveling waves using advanced signal processing techniques.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wavespace-1.1.8.tar.gz.
File metadata
- Download URL: wavespace-1.1.8.tar.gz
- Upload date:
- Size: 90.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c3aa4d013a2017a4f70e8c9ba7fd2cbbfd9bd60ffdbe384215f7fd5cd68dc64
|
|
| MD5 |
466b1bd1c970be5d1f529d7e81942922
|
|
| BLAKE2b-256 |
ffb50525ef5293b4ae307eedc3e5cbf85e1be2163fc0acd3a5a5a7d3745c7230
|
Provenance
The following attestation bundles were made for wavespace-1.1.8.tar.gz:
Publisher:
release.yml on kpetras/WaveSpace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wavespace-1.1.8.tar.gz -
Subject digest:
6c3aa4d013a2017a4f70e8c9ba7fd2cbbfd9bd60ffdbe384215f7fd5cd68dc64 - Sigstore transparency entry: 2436314944
- Sigstore integration time:
-
Permalink:
kpetras/WaveSpace@bea21f046d44daf345d2bab050b308d5feedb5fa -
Branch / Tag:
refs/tags/v1.1.8 - Owner: https://github.com/kpetras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bea21f046d44daf345d2bab050b308d5feedb5fa -
Trigger Event:
push
-
Statement type:
File details
Details for the file wavespace-1.1.8-py3-none-any.whl.
File metadata
- Download URL: wavespace-1.1.8-py3-none-any.whl
- Upload date:
- Size: 98.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2427abedd9de3aef8b8d6135af3dc03cb354d5842810629a271f14b19c7c401
|
|
| MD5 |
b7ab01c63c468abbc1945ffa1fda7bcb
|
|
| BLAKE2b-256 |
89c2fe712c7257824931caf95b3a3520eb79cdaff617160627f90785c041549f
|
Provenance
The following attestation bundles were made for wavespace-1.1.8-py3-none-any.whl:
Publisher:
release.yml on kpetras/WaveSpace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wavespace-1.1.8-py3-none-any.whl -
Subject digest:
e2427abedd9de3aef8b8d6135af3dc03cb354d5842810629a271f14b19c7c401 - Sigstore transparency entry: 2436316205
- Sigstore integration time:
-
Permalink:
kpetras/WaveSpace@bea21f046d44daf345d2bab050b308d5feedb5fa -
Branch / Tag:
refs/tags/v1.1.8 - Owner: https://github.com/kpetras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@bea21f046d44daf345d2bab050b308d5feedb5fa -
Trigger Event:
push
-
Statement type: