Skip to main content

2D mouse brain registration, ROI/Probe annotation, and brainrender reconstruction

Project description

regrender

PyPI Python License: MIT CI Docs

Tools for 2D mouse brain registration to the Allen Common Coordinate Framework (CCF)

A napari-based Python toolkit For registering histological brain slices to the Allen Brain Atlas, annotating cells/ROIs, reconstructing probe tracks, and rendering the results with brainrender.

[!TIP] Full documentation: regrender documentation

Features

  • Interactive slice→CCF registration (regrender register) — pick landmark pairs in napari, estimate a homography/affine transform.
  • ROI annotation (regrender roi) — label cells on raw images, project them into CCF space, and render.
  • Probe-track reconstruction (regrender probe) — reconstruct electrode shanks from dye labels across serial sections.
  • brainrender rendering of ROIs and probes in 3D atlas space.

Demo

regrender register — match landmark pairs between the atlas plane (left) and histology (right):

register

regrender roi — label cells per channel, then project + render in 3D with brainrender:

roi

regrender probe — pick dye points per shank and reconstruct the tracks in 3D:

probe

Installation

# Option 1 — one-shot CLI install, no clone or env needed (recommended for users)
uv tool install git+https://github.com/ytsimon2004/regrender.git

# Option 2 — uv virtual environment (development)
git clone https://github.com/ytsimon2004/regrender.git && cd regrender
uv venv && source .venv/bin/activate
uv pip install -e .

# Option 3 — conda environment (development)
git clone https://github.com/ytsimon2004/regrender.git && cd regrender
conda create -n regrender python=3.12 -y && conda activate regrender
pip install -e .

See the installation docs for details.

Quick Start

# Register each slice to the CCF   -> opens the registration GUI
regrender register -D <slices_dir>

# Label ROIs on raw slices        -> opens the ROI GUI
regrender roi -D <slices_dir>

# Probe tracks                        -> opens the probe GUI
regrender probe -D <slices_dir>

See the full documentation for the complete workflow.

Contact

Yu-Ting Wei - ytsimon2004@gmail.com

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

regrender-0.1.1.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

regrender-0.1.1-py3-none-any.whl (44.2 kB view details)

Uploaded Python 3

File details

Details for the file regrender-0.1.1.tar.gz.

File metadata

  • Download URL: regrender-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for regrender-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a418efc6e9f717eb81607c9f8d76bba2d3e12350e368441401e0ea75906f9eda
MD5 f8051e6450ab392df0a9338d7f73237d
BLAKE2b-256 837e32bb91adac37024caed4b18a1f0d4b98ab01831637ca936d975f3ce6c3bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for regrender-0.1.1.tar.gz:

Publisher: publish.yml on ytsimon2004/regrender

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file regrender-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: regrender-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 44.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for regrender-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7518edc0b02c3e79463d16d6112deabbc681580f4ae450a4d060cf86f6b6e39c
MD5 19633ae1257282ede8258811395ca151
BLAKE2b-256 2334d7dd605bf85e9608cd30026d7e0db854fad7550599a3b8801161fd905c51

See more details on using hashes here.

Provenance

The following attestation bundles were made for regrender-0.1.1-py3-none-any.whl:

Publisher: publish.yml on ytsimon2004/regrender

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page