twopy

twopy is a two-photon imaging analysis tool for Clark Lab recordings. Open a recording, draw ROIs, watch responses update live, and save the results.

twopy napari interface

Pick your path

I want to click through recordings in the app. Start with Getting started, then the GUI guide.

I want to script analyses in Python. Start with Getting started, then the Python guide.

I want to add my own analysis to the app. Read Writing custom workflows.

What twopy does

twopy converts raw microscope recordings into a clean, twopy-owned HDF5 format the first time you open them. Everything after that — ROI editing, response plots, custom analyses, saved outputs — works from those converted files. The original microscope files stay untouched.

By default the converted recordings live in a local cache (~/.cache/twopy/recordings) for speed; when you save, twopy publishes the changed files back to your analysis_output location in the background.