Skip to content

About

Open-source annotation and 3D reconstruction for serial-section and volume electron microscopy. The modern, actively maintained successor to Reconstruct.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

 
 

Latest commit

 

History

2,478 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyReconstruct: open-source annotation and 3D reconstruction for serial-section and volume electron microscopy

License: GPL v3 DOI

PyReconstruct is an open-source desktop application for tracing, annotating, and 3D-reconstructing serial-section and volume electron-microscopy (EM) data. It is the modern, actively maintained successor to Reconstruct. The upstream PyReconstruct project was developed in the Kristen Harris Lab at The University of Texas at Austin and introduced in PNAS (2025; see Credits for full provenance).

This repository is an independently developed and maintained distribution of PyReconstruct. It tracks the upstream SynapseWeb/PyReconstruct project and builds on it with 3–4× faster open and refresh on large series, one-click installers, an in-app updater, and ongoing user-interface modernization.

Who it's for

Neuroscientists and EM researchers who trace neural structures across stacks of serial sections: segmenting objects, aligning sections, measuring morphology, and building 3D reconstructions of cells, organelles, and synapses from volume-EM datasets. It reads and writes the .jser series format and handles large autosegmented series with hundreds of thousands of traces.

Install

One-click installers (recommended)

No Python required. Direct downloads for the current stable release, v1.25.0:

Platform Download
Windows (x86_64) PyReconstruct-1.25.0-Windows-x86_64-Setup.exe
macOS (Apple Silicon) PyReconstruct-1.25.0-macOS-arm64.dmg
macOS (Intel) PyReconstruct-1.25.0-macOS-x86_64.dmg
Linux (x86_64) PyReconstruct-1.25.0-linux-x86_64.AppImage
Linux (from source) PyReconstruct-1.25.0-Linux-installer.tar.gz

All builds, checksums, and past versions are on the Releases page.

Minimum requirements

Minimum
Windows Windows 10, 64-bit
macOS macOS 12 (Monterey), Apple Silicon or Intel
Linux glibc 2.28 or newer (Ubuntu 20.04, Debian 10, RHEL 8 and up), x86_64
Graphics OpenGL for the 3D scene; Windows builds carry a software fallback
Python 3.11, 3.12 or 3.13, for source installs only. The installers include their own.

Older systems are not blocked from installing, but parts of the app will fail at runtime rather than at startup.

  • Windows: builds are unsigned for now; if SmartScreen warns, choose More info → Run anyway.
  • macOS: open the .dmg and drag PyReconstruct to Applications. PyReconstruct is signed and notarized by Apple, so the first launch only asks whether to open an app downloaded from the internet. Click Open.
  • Linux: install the AppImage with one command:
    curl -fsSL https://pyreconstruct.org/install.sh | bash
    
    It needs no root and no Python. It adds a pyreconstruct command and a menu entry. Re-run it to update. For PyReconstruct Dev, end the command with bash -s -- --dev. To uninstall, end it with bash -s -- --uninstall. You can also download the .AppImage from the table and run it directly, or install from source with a system Python 3.11, 3.12 or 3.13:
    curl -fsSL https://pyreconstruct.org/install-from-source.sh | bash
    

The Windows and macOS builds update through Help ▸ Check for updates. On Linux, the same menu item shows the one command that updates your install, with a Copy button. PyReconstruct follows Stable releases (vX.Y.Z). PyReconstruct Dev follows Nightly builds (vX.Y.Z.devYYYYMMDD, such as v1.24.0.dev20260927). The two apps install side by side and each updates only from its own channel. Use the Help menu's download link to install the other app. On Windows and macOS, the in-app updater checks each download against the release's signed list of SHA-256 checksums before installing, and refuses one that does not match. A once-per-day startup check is on by default; turn it off under Help ▸ Automatically check for updates.

From source (developers)

To track the latest commits on main (this replaces the old in-app "Developer" update channel), run a source install rather than a frozen build.

PyReconstruct requires Python 3.11, 3.12 or 3.13. Its native dependencies are tested on those versions (the project pins >=3.11,<3.14). The canonical setup uses uv: it reads the checkout's .python-version, fetches Python 3.11 for you, and installs the exact dependency set recorded in the committed uv.lock. No system Python changes, no version guessing. To use 3.12 or 3.13 instead, set UV_PYTHON=3.12 (or 3.13) in your shell before uv sync and uv run.

curl -LsSf https://astral.sh/uv/install.sh | sh   # once; or: brew install uv
git clone https://github.com/dustenhubbard/PyReconstruct
cd PyReconstruct
uv sync                            # creates .venv from uv.lock (exact pinned deps)
uv run PyReconstruct               # launch

Update loop: git pull, then uv run PyReconstruct, which re-syncs .venv to the lockfile automatically, so pulled code runs immediately with no manual reinstall. You can also update from inside the app, or from the command line with PyReconstruct --update (PyReconstruct --switch <branch> to change branch first). On a source install, Help ▸ Check for updates prompts for a branch, starting with your saved choice or main, then reinstalls it.

Alternative: a plain venv without uv

If you already have python3.11, python3.12 or python3.13 on PATH, an editable install works too, though it resolves dependencies fresh rather than from uv.lock:

python3.11 -m venv .venv && source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -e .
PyReconstruct

See CONTRIBUTING.md and docs/DEV_UV.md for the full development setup (test suite, dev tooling, and code layout).

Quickstart

  1. Launch the app from your installer, or run PyReconstruct on the command line.
  2. Open an existing series (a .jser file) via File ▸ Open, or create a new one from a stack of images.
  3. Trace structures on each section, adjust the alignment, and open the 3D scene to reconstruct and inspect your objects.

A full installation guide, quickstart, and manuals live on the lab wiki (The University of Texas at Austin) and the repo wiki, and in-app under Help ▸ Online resources.

Documentation

  • User guide: installing and updating, opening and building a series, the tracing tools, the data lists, alignment, 3D reconstruction, and backups.
  • Wiki: older pages on GitHub.
  • Contributing guide: development setup, running the tests, the code layout, and the branch/PR conventions.

Performance

Large autosegmented series (tens to hundreds of thousands of traces) were previously slow to open and refresh. This distribution rewrites the hot geometry and serialization paths, with no change to the .jser format or the data model:

  • 3–4× faster to open and refresh a series, measured across real autoseg series from 6 MB to 1.4 GB (up to 4.2× on the best case). For example, a 1.4 GB / 492k-trace series drops from roughly 9.7 minutes to about 3.1 minutes to open and refresh.
  • Verified equivalence. The optimized code reproduces the previous implementation's geometry: section, object, and trace counts match exactly, and summed area, length, and radius are identical on seven of the eight benchmark series. On the largest (492k traces) the summed radius differs by ~1e-11 relative, from floating-point summation order, not from doing less work. The speedup comes from doing the same work faster, not from skipping work.
  • Algorithmic, single-threaded wins: vectorized per-trace geometry, a lazy Feret-diameter (convex-hull) computation, NumPy point mapping, and orjson on the JSON load/save paths. They help every machine, and most on the large series that were previously near-unusable.

The benchmark harness, raw results, and the full methodology and equivalence tables are in benchmarks/ (see benchmarks/REPORT.md), and are reproducible against the upstream they were forked from.

Highlights

What this distribution adds over upstream, all in the current stable release:

  • One-click installers for every platform. Windows, macOS (native Apple Silicon and Intel builds, signed and notarized, on an updated 3D stack: vtk 9.4.2 + vedo 2025.5.4), and a Linux AppImage with a one-line install, built in CI.
  • In-app updater that updates the Windows/macOS builds from GitHub Releases, on the Stable or Nightly channel, checking each download against a signed checksum list (see Install).
  • 3–4× faster large-series open & refresh: the performance work above, with verified geometry equivalence.
  • A correctness test suite (geometry/transform equivalence, updater logic) and a headless performance harness.

Inherited from PyReconstruct: serial-section tracing and annotation, section alignment, 3D reconstruction and mesh export, Zarr image conversion, quantitative morphology export, and collaborative, version-controlled series.

User interface: a broader UI modernization is in progress and not yet part of a release.

Bug reports & feature requests

Found a problem, have a feature idea, or want to improve the docs? Please open an issue. Thanks for the help!

Found a security vulnerability? Please report it privately instead of opening a public issue. See SECURITY.md.

Credits

PyReconstruct was created by Michael A. Chirillo, Julian N. Falco, Michael D. Musslewhite, Larry F. Lindsey, and Kristen M. Harris (Kristen Harris Lab, Department of Neuroscience, Center for Learning and Memory, The University of Texas at Austin) and introduced in PNAS (2025; see Citation). The upstream project lives at SynapseWeb/PyReconstruct. It succeeds the original Reconstruct, John C. Fiala's long-standing, Windows-only serial-section reconstruction program.

This distribution is independently developed and maintained by Dusten Hubbard (Kristen Harris Lab, Department of Neuroscience, Center for Learning and Memory, The University of Texas at Austin).

Citation

If you use PyReconstruct in published work, please cite the paper:

@article{Chirillo2025,
	title = {{PyReconstruct}: {A} fully open-source, collaborative successor to {Reconstruct}},
	author = {Chirillo, Michael A. and Falco, Julian N. and Musslewhite, Michael D. and Lindsey, Larry F. and Harris, Kristen M.},
	journal = {Proceedings of the National Academy of Sciences},
	volume = {122},
	number = {31},
	pages = {e2505822122},
	year = {2025},
	month = {7},
	doi = {10.1073/pnas.2505822122},
}

License

GPL-3.0-or-later.

About

Open-source annotation and 3D reconstruction for serial-section and volume electron microscopy. The modern, actively maintained successor to Reconstruct.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages