FiPHoPHA - A Fiber Photometry Python Package for Post-Hoc Analysis
This Python tool allows for the analysis of photometry data, enabling the user to upload Excel files, select baseline and comparison periods, and calculate significant differences within and between-groups. The tool performs both bootstrapping to derive confidence intervals as well as permutation tests.
Cite (Drakopoulos, V., Reichenbach, A., Stark, R., Foldi, C. J., Jean-Richard-Dit-Bressel, P., & Andrews, Z. B. (2025). FiPhoPHA-A Fiber Photometry Python Package for Post Hoc Analysis. eNeuro, 12(8), ENEURO.0221-25.2025. https://doi.org/10.1523/ENEURO.0221-25.2025)
Features
- Excel Integration: Load photometry data from Excel, analyze it, and save the results back to an Excel file.
- Graphical User Interface (GUI): The application uses a simple GUI for file uploads, setting periods, and saving results.
- Within and Between-Groups Bootstrapped Confidence Intervals (CI): Comparison to baseline is determined by whether the bootstrapped CI includes the null of 0. Whilst comparison for within-groups is determined from subtracting each corresponding animal/trial of the group and bootstrapping the product to derive CIs and determining deviation from the null of 0. For between-groups the distribution of each group is bootstrapped and subtracted, then CIs derived and determined if they deviate from the null of 0
- Permutation Test: Permutation tests are used to compare differences between groups and determine significance.
How to Use
- Load Excel Data: Click the "Load Excel File" button to load your photometry data in
.xlsxformat. - Set Baseline and Comparison Periods: Enter the row indices for the baseline and comparison periods.
- Analyze Data: The application will analyze the loaded data, calculating bootstrapped confidence intervals and performing permutation tests between groups.
- Save Results: Save the analyzed results to an Excel file, which includes confidence intervals, significance maps, and significant timings.
Excel File Structure
- Sheets: Timings, where each row corresponds to a Z-score of that time point and columns represent individual animals/trials.
- Subsequent Sheets represent different groups of animals
Installation Instructions in Any Environemnt
- Install package:
pip install fiphopha
- Run main script:
fiphopha
Dependencies
- NumPy
- Pandas
- Scikit-learn
- Tkinter
- Setuptools
- Openpyxl
Acknowledgements
Adapted from Dr. Philip Jean-Richard Dit Bressel from the University of New South Wales Jean-Richard-Dit-Bressel, P., Clifford, C. W. G., & McNally, G. P. (2020). Analyzing Event-Related Transients: Confidence Intervals, Permutation Tests, and Consecutive Thresholds. Frontiers in molecular neuroscience, 13, 14. https://doi.org/10.3389/fnmol.2020.00014
I would also like to thank all members of the Andrews Lab at Monash University for being testers of the scripts.
Metadata
Release files for fiphopha 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| fiphopha-0.2.2.tar.gz | 10.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fiphopha-0.2.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.5 kB
Release files / fiphopha-0.2.2.tar.gz
| Download URL | fiphopha-0.2.2.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca1df02565d176572c4fc3ce7fcc4184fc5d138951a658ca349cbbef2f757e36
|
|
BLAKE2b-256 checksum How to use checksums |
8c812726793eaec71619cfc7ad2bbbdaa301dcb209b7463e2df4af6400caa34f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Release files / fiphopha-0.2.2-py3-none-any.whl
| Download URL | fiphopha-0.2.2-py3-none-any.whl |
|---|---|
| Size | 14.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
184293c64b36cd83f828b6ec4ef4136a49ccadd8fcddcd14aa902d4d0616402e
|
|
BLAKE2b-256 checksum How to use checksums |
3dbe179c3ab00637b99ee8b0d89c13f94e50ae2f089c9b65f745ca7d1852f757
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.6
|
Security for fiphopha 0.2.2
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.