Two-photon imaging analysis tool with a napari interface.
Project description
twopy
Two-photon imaging analysis tool for the Clark Lab output format.
Getting Started
twopy lets you open two-photon recordings, draw ROIs, plot responses in real time, process and analyze them, and save them.
When you first load a recording, twopy converts it to a standardized HDF5 format. The converted format includes the aligned movie, mean image, stimulus tables, photodiode signals, and recording metadata. Analysis and the GUI both work from the converted files, so the original source files remain separate from twopy's outputs.
Install
Examples use micromamba, but any conda-compatible environment manager should work.
micromamba create -n twopy -c conda-forge python=3.13 pip -y
micromamba run -n twopy python -m pip install twopy
Verify the install:
micromamba run -n twopy python -c 'import twopy; print(twopy.__name__)'
For a source checkout, copy config.example.yml to config.yml and edit the paths for your computer. config.yml stays local and is not tracked by git.
Start
micromamba activate twopy
twopy
Open a source recording or converted recording directly:
twopy /path/to/source/recording
twopy /path/to/recording_data.h5
Basic GUI flow:
- Choose a recording.
- Draw or edit ROIs in the
roisLabels layer. - Update response plots from the current ROIs.
- Click Save ROIs + analysis when the plots look right.
When a source recording has not been converted yet, twopy converts it first. Converted data includes the aligned movie, mean image, stimulus tables, photodiode signals, and recording metadata.
Docs
- GUI guide: napari loading, ROI editing, plotting, and saved outputs.
- Python API guide: find recordings, convert data, run analysis, and open napari from scripts.
- Development guide: source setup and local checks.
- Input data spec: short recording folder contract.
- Recording file reference: detailed source and converted file schema.
Check
micromamba run -n twopy pre-commit run --all-files
Project details
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 twopy-0.1.5.tar.gz.
File metadata
- Download URL: twopy-0.1.5.tar.gz
- Upload date:
- Size: 249.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
299477650313643449123e2a4f085b18eb9310d56aac5c69cf19140a550b056f
|
|
| MD5 |
1873f9f9555ccfcd609cb5a18c428a91
|
|
| BLAKE2b-256 |
8c14f1f1a018c89f243185660cbd379da3607471184f4860c8c9e855c459f0b9
|
Provenance
The following attestation bundles were made for twopy-0.1.5.tar.gz:
Publisher:
publish-to-pypi.yml on gumadeiras/twopy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twopy-0.1.5.tar.gz -
Subject digest:
299477650313643449123e2a4f085b18eb9310d56aac5c69cf19140a550b056f - Sigstore transparency entry: 1468003805
- Sigstore integration time:
-
Permalink:
gumadeiras/twopy@92db1f8171854b6be3798ca2c11d4b7e92f2fd9a -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/gumadeiras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@92db1f8171854b6be3798ca2c11d4b7e92f2fd9a -
Trigger Event:
release
-
Statement type:
File details
Details for the file twopy-0.1.5-py3-none-any.whl.
File metadata
- Download URL: twopy-0.1.5-py3-none-any.whl
- Upload date:
- Size: 232.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b93917bd31db13c59c8e970ed0942cb4d5edcf4c9245eaa1164013112384fb11
|
|
| MD5 |
8ea4c4cac23cc67db183fe2eee9fda1e
|
|
| BLAKE2b-256 |
eeb50504fce2dd3740fc63a8ee61c82c4a4b69947476e363a144d89361a5fe30
|
Provenance
The following attestation bundles were made for twopy-0.1.5-py3-none-any.whl:
Publisher:
publish-to-pypi.yml on gumadeiras/twopy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
twopy-0.1.5-py3-none-any.whl -
Subject digest:
b93917bd31db13c59c8e970ed0942cb4d5edcf4c9245eaa1164013112384fb11 - Sigstore transparency entry: 1468003900
- Sigstore integration time:
-
Permalink:
gumadeiras/twopy@92db1f8171854b6be3798ca2c11d4b7e92f2fd9a -
Branch / Tag:
refs/tags/v0.1.5 - Owner: https://github.com/gumadeiras
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-to-pypi.yml@92db1f8171854b6be3798ca2c11d4b7e92f2fd9a -
Trigger Event:
release
-
Statement type: