FiPhoPHA - A fiber photometry Python package for post-hoc analysis
Project description
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.
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 (Example on Windows)
- Navigate to desired folder directory:
cd /path/to/your/project
- Create a virtual environment and activate:
python -m venv fiphopha_env
fiphopha_env\Scripts\activate
- Make sure pip is installed and then install package:
python -m ensurepip --upgrade
pip install fiphopha
- Run main script:
fiphopha
Dependencies
- NumPy
- Pandas
- Scikit-learn
- Tkinter
- Setuptools
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.
pip install fiphopha
Project details
Release history Release notifications | RSS feed
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 fiphopha-0.1.4.tar.gz.
File metadata
- Download URL: fiphopha-0.1.4.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76797c90c3315b9b2dc5637b64941a8b1c3907416ccd847d34095a889154cba1
|
|
| MD5 |
711ef2d4c905a5a394650a47df2eb5dc
|
|
| BLAKE2b-256 |
18aa739984a5923fa10accc27163ed55849ecfe0a75b3504e261e84838309b55
|
File details
Details for the file fiphopha-0.1.4-py3-none-any.whl.
File metadata
- Download URL: fiphopha-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd7f7da6ef20dde8aed25ba589d76c64a81988c46877e5e180595ffd3cb41683
|
|
| MD5 |
339fadd029ea648b15451e52516aa7b2
|
|
| BLAKE2b-256 |
10086f7bcbb4913f6f7d9981b96d7f68b055bd5546155232f0582b4f765d8d54
|