A PyQt6 GUI toolbox for processing two-photon phasor imaging data
Project description
Phasor-Handler (Windows)
Phasor Handler is a toolbox for processing raw two-photon phasor imaging data: convert → register → explore → extract calcium traces.
It provides a PyQt6 GUI for viewing registered or raw stacks (Ch1/Ch2), z-projections (std/max/mean), drawing/storing ROIs, overlaying stimulated ROIs from metadata, and exporting ROI traces.
⚠️ Platform: Windows 10/11 only
🧪 Status: actively developed (Brightness & Contrast dialog is WIP)
Features
- Load registered TIFF (
Ch1-reg.tif,Ch2-reg.tif) or raw NPY fallbacks (ImageData_Ch0_TP0000000.npy,ImageData_Ch1_TP0000000.npy) - Linear and non-linear motion-correct TIFF images using Suite2p
- Automated cell detection using Suite2p
- Channel switching (Ch1/Ch2) and Composite (G/R)
- Z-projections: standard deviation, max, mean
- ROI tools: draw elliptical ROIs, translate or rotate ROIs, save/load as JSON, quick-select saved ROIs
- Stimulus overlay: show stimulated ROI locations from experiment metadata and add to the saved ROIs
- Trace plotting: configurable formula, custom y-limits, frame/time (s) x-axis
- Export: write per-ROI traces for all frames to
.txt(tab-separated) - Keyboard:
Rsave/add ROI,Deleteremove selected ROI,Escclear selection,Alt+Sload stimulated ROIs,Right Click + dragtranslate selected ROI,Ytoggle right click to rotation mode
Input data layout
For each dataset directory, Phasor Handler looks for any of:
- Ch1-reg.tif
- Ch2-reg.tif # optional
- ImageData_Ch0_TP0000000.npy # raw fallback for Ch1
- ImageData_Ch1_TP0000000.npy # optional raw fallback for Ch2
- experiment_summary.pkl # optional metadata (or .json)
Registered TIFFs are preferred when available; raw NPYs are used as fallback.
Installation (Windows, Conda)
This project provides an environment.yml for Windows. The environment is large (GUI, image I/O, napari/suite2p), so mamba is recommended, but conda works too.
1) Install Conda/Mamba (if needed)
- Install Miniconda or Mambaforge on Windows.
- (Optional) Add mamba for faster solves:
conda install -n base -c conda-forge mamba
2) Get the code
- Clone the repo and change it into
git clone https://github.com/joshemuel/Phasor-Handler.git chdir Phasor-Handler
- Alternatively, you can download the entire project as a zip file, unzip it, then open that directory in Miniconda cd Phasor-Handler
3) Create the environment
- Using mamba:
mamba env create -f environment.yml
- Using conda:
conda env create -f environment.yml
4) Activate and run
- Before running the toolbox, activate the environment
conda activate suite2p python app.py
Update (Windows, Conda)
1) Go to your local repo and pull the latest code from the branch you use
chdir Phasor-Handler
git pull --ff-only
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 phasor_handler-2.3.0.tar.gz.
File metadata
- Download URL: phasor_handler-2.3.0.tar.gz
- Upload date:
- Size: 113.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efc0d528c04ac999ec53147307fb8ae4902ce192290974ff6c997f98c23f8bc9
|
|
| MD5 |
2591d5773cec68819d629442ac7bab3d
|
|
| BLAKE2b-256 |
ce374a483455bc739bd492373da880558427c72ef20a5f28d195600eba539058
|
File details
Details for the file phasor_handler-2.3.0-py3-none-any.whl.
File metadata
- Download URL: phasor_handler-2.3.0-py3-none-any.whl
- Upload date:
- Size: 118.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43f376f1df0dadc9af7100c1a1e31284517b04288373eb3af2c0175d60187304
|
|
| MD5 |
a226f1dd422b769c5a3168184687adad
|
|
| BLAKE2b-256 |
fad21ed748240d8a33697f31791f0270c5aee9b6069815fdca52e7bbe937fb06
|