Skip to content

Comments

WIDEFIELD: Spatial analysis#95

Open
iezqrom wants to merge 13 commits intowidefield-devfrom
spatial-analysis
Open

WIDEFIELD: Spatial analysis#95
iezqrom wants to merge 13 commits intowidefield-devfrom
spatial-analysis

Conversation

@iezqrom
Copy link
Collaborator

@iezqrom iezqrom commented Dec 18, 2025

No description provided.

iezqrom and others added 4 commits December 18, 2025 10:37
- Updated __init__.pyi to include TraceMetrics in exports.
- Implemented get_trace_metrics method in WidefieldAnalysis for analyzing 1D traces with detailed documentation and error handling.
- Introduced methods for estimating and applying motion correction, including `estimate_motion_vectors` and `apply_motion_correction`.
- Added support for saving and loading motion vectors and reference images.
- Updated __init__.pyi to export new motion-related functions.
- Enhanced diagnostic plotting capabilities for motion correction analysis.
@iezqrom iezqrom requested a review from zeniazen5 December 18, 2025 11:59
iezqrom and others added 8 commits December 18, 2025 13:20
- Introduced `calculate_spatial_threshold_metrics` function for computing spatial threshold metrics on 2D activity images.
- Updated documentation to reflect the new functionality and its parameters.
- Modified __init__.pyi to export the new metrics function.
- Changed saved figure filenames from "02_motion_trajectory.png" to "motion_trajectory.png" and from "03_stability_maps.png" to "stability_maps.png".
- Updated corresponding log messages to reflect the new filenames.
- Replaced np.diff with np.gradient for calculating first and second derivatives to enhance accuracy.
- Updated variable names for clarity and consistency.
- Adjusted logic for determining window start and end indices based on the new derivative calculations.
- Introduced DataConfig class to manage file paths for raw and processed trial data.
- Updated WidefieldAnalysis to support both raw and processed data configurations.
- Implemented motion correction pipeline with methods for applying corrections and saving outputs.
- Enhanced data loading methods to accommodate new imaging file formats (TIFF and NPY).
- Added metadata extraction and saving functionalities for trial data.
- Updated tests to cover new features and configurations, ensuring robust functionality.
@iezqrom iezqrom changed the title Spatial analysis WIDEFIELD: Spatial analysis Jan 28, 2026
…and validation

- Changed baseline temperature range from 20-45°C to 16-45°C in the class description and validation constraints.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant