Content area
Fiber photometry measures neural activity in vivo from genetically encoded indicators. Recordings generate large datasets that require extensive preprocessing and robust statistical methods for meaningful interpretation. However, existing analysis tools demand programming expertise, limiting accessibility. Here we describe FPmotion, a comprehensive, user-friendly software platform for batchwise processing, integration, and statistical analysis of fiber photometry data with or without accompanying behavioral information. FPmotion performs filtering, isosbestic regression, dF/F computation, detrending, and z-scoring. It also extracts detailed peak properties at whole-file, block-level, and individual-peak resolution. When behavioral data is provided, FPmotion automatically identifies behavioral bouts, computes bout-level statistics, performs peri-event signal extraction, and supports multi-group comparisons through ANOVA- and LMEM-based statistical frameworks. All analyses generate publication-ready figures and structured CSV outputs suitable for downstream workflows. FPmotion also introduces a dedicated alignment module for peri-event signal analysis. This module applies dynamic time warping followed by barycenter averaging to realign peri-event traces while preserving the behavioral time anchor, producing cleaner and more temporally coherent peri-event motifs. We demonstrate the capabilities of FPmotion software using the dlight1.1 sensor to measure dopamine responses from ventral striatum in behaving mice before and after amphetamine treatment. Together, FPmotion offers a fully automated framework for FP data analysis that improves interpretability and accessibility while reducing analysis time substantially.
Competing Interest Statement
The authors have declared no competing interest.
Footnotes
* https://github.com/TCB-yehong/FPmotion
Funder Information Declared
Research Council of Finland, https://ror.org/05k73zm37, 362838, 310583 Research Council for Health Postal address POB 131 00531 Helsinki Street address Hakaniemenranta 6 Phone +358 29 533 5000 Fax +358 29 533 5000 +358
Finnish Cultural Foundation, https://ror.org/027xav248