Skip to main content

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

Project description

regrender

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.

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

# 1. label ROIs on raw slices
regrender roi -D <slices_dir>

# 2. register each slice to the CCF
regrender register -D <slices_dir>

# 3. project ROIs to CCF + render  (or use the GUI "Project + Render" button)
regrender roi --project --render -D <slices_dir>

# probe tracks
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.0.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.0-py3-none-any.whl (42.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for regrender-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2930690306be28535297d10bd4a88c5061b5cdf558912c73d36ddd89eace03d4
MD5 b7bce5ad5a405f35cfbfe9fad0edcf76
BLAKE2b-256 3ac9a0213091b1a4e7a2720b61305038ecd9338d1873a3f0800f173f78a4a48f

See more details on using hashes here.

Provenance

The following attestation bundles were made for regrender-0.1.0.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.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for regrender-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 785439a2c2fc7fed207f856d03f2ef563d43d2c9847b244fce1c64303ee65993
MD5 a59045b5764845c108529e16d862696a
BLAKE2b-256 ae938a9fcb14f27cbe12b27b14cda4354d092948c8d40557b5c157c23033b724

See more details on using hashes here.

Provenance

The following attestation bundles were made for regrender-0.1.0-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