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):
regrender roi — label cells per channel, then project + render in 3D with brainrender:
regrender probe — pick dye points per shank and reconstruct the tracks in 3D:
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
Release history Release notifications | RSS feed
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2930690306be28535297d10bd4a88c5061b5cdf558912c73d36ddd89eace03d4
|
|
| MD5 |
b7bce5ad5a405f35cfbfe9fad0edcf76
|
|
| BLAKE2b-256 |
3ac9a0213091b1a4e7a2720b61305038ecd9338d1873a3f0800f173f78a4a48f
|
Provenance
The following attestation bundles were made for regrender-0.1.0.tar.gz:
Publisher:
publish.yml on ytsimon2004/regrender
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
regrender-0.1.0.tar.gz -
Subject digest:
2930690306be28535297d10bd4a88c5061b5cdf558912c73d36ddd89eace03d4 - Sigstore transparency entry: 2173650799
- Sigstore integration time:
-
Permalink:
ytsimon2004/regrender@1fb18b47cd18a555ee3239dc838cd986a029767b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ytsimon2004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1fb18b47cd18a555ee3239dc838cd986a029767b -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
785439a2c2fc7fed207f856d03f2ef563d43d2c9847b244fce1c64303ee65993
|
|
| MD5 |
a59045b5764845c108529e16d862696a
|
|
| BLAKE2b-256 |
ae938a9fcb14f27cbe12b27b14cda4354d092948c8d40557b5c157c23033b724
|
Provenance
The following attestation bundles were made for regrender-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ytsimon2004/regrender
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
regrender-0.1.0-py3-none-any.whl -
Subject digest:
785439a2c2fc7fed207f856d03f2ef563d43d2c9847b244fce1c64303ee65993 - Sigstore transparency entry: 2173650804
- Sigstore integration time:
-
Permalink:
ytsimon2004/regrender@1fb18b47cd18a555ee3239dc838cd986a029767b -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ytsimon2004
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@1fb18b47cd18a555ee3239dc838cd986a029767b -
Trigger Event:
push
-
Statement type: