Skip to content

Add an AUC Units parameter for the PSTH peak and area - #415

Merged
pauladkisson merged 2 commits into
mainfrom
auc_units
Aug 6, 2026
Merged

Add an AUC Units parameter for the PSTH peak and area#415
pauladkisson merged 2 commits into
mainfrom
auc_units

Conversation

@pauladkisson

@pauladkisson pauladkisson commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Fixes #366

Details (AI-generated)

Closes #366.

Adds an AUC Units selector to the Peak and AUC Parameters box. seconds integrates each peak window against the PSTH time axis, so area_* is reported in z-score (or ΔF/F) × seconds; samples keeps the existing one-sample spacing and remains the default. The setting is recorded in GuPPyParamtersUsed.json and exposed as step4(auc_units=...) in the testing API. The area_* column names are unchanged, so nothing downstream of peak_AUC_* moves.

Verification: tests/unit/analysis/test_psth_peak_and_area.py, tests/unit/orchestration/, tests/unit/frontend/test_input_parameters.py, tests/unit/testing/, tests/integration/test_integration_step4.py, test_integration_home.py, test_integration_save_parameters.py — 216 passed. pre-commit clean. The default path is unchanged, so the consistency baselines are untouched.

🤖 Generated with Claude Code

pauladkisson and others added 2 commits August 6, 2026 16:22
The area under the curve was integrated with one-sample spacing, so it was
reported in z-score * samples and scaled with the recording's sampling rate.
The new "AUC Units" selector adds a "seconds" option that integrates against
the PSTH time axis, giving z-score * seconds. The default keeps the existing
sample-spacing behavior.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@pauladkisson
pauladkisson enabled auto-merge August 6, 2026 23:45
@codecov

codecov Bot commented Aug 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@pauladkisson
pauladkisson merged commit 786a164 into main Aug 6, 2026
15 of 22 checks passed
@pauladkisson
pauladkisson deleted the auc_units branch August 6, 2026 23:56
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.

Enhancement Request: AUC Calculation in GuPPy

1 participant