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
🚀 Version 3.0 — Latest stable release
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
- Brightness & Contrast (BnC): adjust image display settings
- ROI tools: draw elliptical ROIs, freehand drawing tool, translate or rotate ROIs, move multiple ROIs, save/load as JSON, quick-select saved ROIs
- Metadata viewer: inspect experiment metadata directly in the application
- Second-level analysis viewer: explore and visualize second-level analysis results
- 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
Phasor Handler is now available on PyPI and can be installed via pip or from source using Conda/Mamba.
Option 1: Install via pip (Recommended)
The easiest way to install Phasor Handler is through pip:
pip install phasor-handler
After installation, you can run the application:
phasor-handler
PyPI Package: https://pypi.org/project/phasor-handler/
Option 2: Install from source (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 into it:
git clone https://github.com/joshemuel/Phasor-Handler.git cd Phasor-Handler
- Alternatively, you can download the entire project as a zip file, unzip it, then open that directory in Miniconda
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)
If installed via pip:
pip install --upgrade phasor-handler
If installed from source:
1) Go to your local repo and pull the latest code from the branch you use
cd Phasor-Handler
git pull --ff-only
Metadata
Release files for phasor-handler 3.5.3
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 | Actions |
|---|---|---|---|---|
| phasor_handler-3.5.3.tar.gz | 723.8 kB | Without provenance | Details for phasor_handler-3.5.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phasor_handler-3.5.3-py3-none-any.whl | Python 3 | none | any | Details for phasor_handler-3.5.3-py3-none-any.whl |
Total release size: 1.5 MB
Release files / phasor_handler-3.5.3.tar.gz
| Download URL | phasor_handler-3.5.3.tar.gz |
|---|---|
| Size | 723.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c6c2bdb35fe25683bbdad602bbee870d883e5b46ce93b0ca7d58e894f7f4744a
|
|
BLAKE2b-256 checksum How to use checksums |
208374f6281e5d529b036b396b89fe34284a3567f39cfc81ce57df5bbfc3b7a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / phasor_handler-3.5.3-py3-none-any.whl
| Download URL | phasor_handler-3.5.3-py3-none-any.whl |
|---|---|
| Size | 730.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
66cb09d1ed840d6c50c6727ab710f6dd796415d5d27de06c73a23f7b62bed5c7
|
|
BLAKE2b-256 checksum How to use checksums |
40e68fd500afc6adf514e3908c1179bbcfb836971f2ad8b7c1c3bc808f4560c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for phasor-handler 3.5.3
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.