Skip to main content

Constellation-based point-set registration utilities for microscopy in 2D and 3D

Project description

NucleiSky Banner

NucleiSky ✨🔬

Constellation-based point-set registration for microscopy in 2D and 3D Align calibrated partial views to whole-slide images or thick tissue volumes using landmark geometry.

PyPI License Downloads Open 2D App in Colab Open 3D App in Colab


✨ What is NucleiSky?

Microscopy alignment gets messy when images are rotated, scaled, or captured on completely different platforms. NucleiSky solves this by treating your nuclei like stars in a constellation.

Instead of relying on pixel intensity similarity, NucleiSky matches the geometry of the cells. Whether your data is a 2D field of view or a 3D tissue stack, NucleiSky finds the calibrated similarity transform that best overlaps two landmark constellations.

👩‍🔬 For the Biologist: The "Telescope" Setup

Imagine looking through a small telescope at a random patch of the night sky. Even without seeing the whole galaxy, you can figure out exactly where you are by matching your small star pattern against a full sky map. NucleiSky does the same for your tissue: it anchors high-magnification ROIs into whole-slide scans by estimating rotation, scale, and shift.

👨‍💻 For the Developer: The Constellation Engine

NucleiSky is a robust point-set registration pipeline built for real-world microscopy noise. It provides modular feature extraction, dynamically scaled RANSAC, geometric hashing, and tetrahedral pyramid matchers — ready to slot into automated spatial analysis pipelines.


⚡ Quickstart

Choose your setup and align your images in minutes:

🌟 Try it in the Browser (Fastest)

No installation required. Run our interactive apps directly in Google Colab:

🖥️ No-Code Desktop GUI

Prefer a local app? Use our standalone desktop installer.

🐍 Python Workflows (Local Installation)

To install the package for your own scripts:

pip install nucleisky

Use pip install "nucleisky[all]" when you also need optional segmentation, OME-Zarr, SimpleITK, and notebook dependencies. Core matching runs on CPU; GPU support only affects optional deep-learning segmentation backends such as Cellpose and InstanSeg.

2D Pipeline (ROI → Whole Slide)

  1. 2D Data Preparation
  2. 2D End-to-End Workflow
  3. Quality Control

3D Pipeline (Subvolume → Thick Tissue)

  1. 3D Data Preparation
  2. 3D End-to-End Workflow
  3. Quality Control

(Need a leaner installation? See our Installation Guide for modular backend options).


🔑 Key Capabilities

  • 2D & 3D registration: Shared constellation logic for flat slides and volumetric stacks. 3D workflows should be reviewed with manual QC before downstream use.
  • Scale-aware: Matches images captured at different pixel/voxel sizes when calibration metadata is correct.
  • Rotation-aware: Supports unrestricted rotations unless you configure an angle bound.
  • Modality-Agnostic: If you can segment the nuclei (or spots/cells), NucleiSky can match them.
  • Export-Ready: Saves transforms, warped hyperstacks, and QC overlays for downstream analysis.

⚠️ The Two Golden Rules (Make or Break)

  1. Pixel and Voxel size matter immensely. NucleiSky measures physical distances in micrometres. If your scale metadata (µm/px) is missing or wrong, the search bounds break, and alignment fails. Always verify your metadata! See Data Preparation.
  2. Segmentation quality drives match quality. NucleiSky registers point sets. Missing, massively merged, or noisy nuclei obscure the constellation and make matching much harder. See Segmentation.

📚 Documentation Index

Start Here

Quality Control & Troubleshooting

Developer Deep Dives


🤝 Contributing

We welcome PRs, feature ideas, and bug reports! For the fastest triage, please use our GitHub issue forms.

If you’re using NucleiSky in a new workflow, drop an issue and tell us:

  • What you’re aligning (restains, multi-round, ROI-to-reference, etc.)
  • What success looks like in your pipeline
  • What would make adoption easier for your lab

Need troubleshooting help? Please include a QC overlay from your save_dir/original/ folder when you open a bug report!


📢 Citation

If you find this tool useful in your research, please cite:

NucleiSky enables cross-scale multimodal registration of microscopy data using nuclei constellations.

Iván Hidalgo Cenalmor, Adán Olguín-Olguín, Carolina Prieto, Johannes Kumra Ahnlide, Pontus Nordenfelt, Ricardo Henriques, Mario Del Rosario, Guillaume Jacquemet bioRxiv 2026.06.29.735028;

doi: https://doi.org/10.64898/2026.06.29.735028

@article {Cenalmor2026,
	author = {Cenalmor, Iv{\'a}n Hidalgo and Olgu{\'\i}n-Olgu{\'\i}n, Ad{\'a}n and Prieto, Carolina and Ahnlide, Johannes Kumra and Nordenfelt, Pontus and Henriques, Ricardo and Del Rosario, Mario and Jacquemet, Guillaume},
	title = {NucleiSky enables cross-scale multimodal registration of microscopy data using nuclei constellations},
	elocation-id = {2026.06.29.735028},
	year = {2026},
	doi = {10.64898/2026.06.29.735028},
	publisher = {Cold Spring Harbor Laboratory},	
	URL = {https://www.biorxiv.org/content/early/2026/06/29/2026.06.29.735028},
	eprint = {https://www.biorxiv.org/content/early/2026/06/29/2026.06.29.735028.full.pdf},
	journal = {bioRxiv}
}

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

nucleisky-0.0.1.tar.gz (158.2 kB view details)

Uploaded Source

Built Distribution

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

nucleisky-0.0.1-py3-none-any.whl (142.1 kB view details)

Uploaded Python 3

File details

Details for the file nucleisky-0.0.1.tar.gz.

File metadata

  • Download URL: nucleisky-0.0.1.tar.gz
  • Upload date:
  • Size: 158.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nucleisky-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a5c38127471b1a482dba5e559a7cdbcca6e66fa596783693eed62348668eb6c1
MD5 bd07abdac4fa5c62f509cc6bb5024c01
BLAKE2b-256 01404003d5aab8ba848b88296917a97850fba44be565c0e6a5bf69d2b83cf796

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucleisky-0.0.1.tar.gz:

Publisher: publish_to_pypi.yml on CellMigrationLab/NucleiSky

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

File details

Details for the file nucleisky-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for nucleisky-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 703b11d8083fce6e340c7bcd2607e447b306f046d6bd32a30429cf1da3394c83
MD5 571dd35ce09584ce46095efb9d71f40e
BLAKE2b-256 4d9710a6ee0fd0a8e86653b7b79cbe16be8f6f80f9545b14d59e91f41fb772ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for nucleisky-0.0.1-py3-none-any.whl:

Publisher: publish_to_pypi.yml on CellMigrationLab/NucleiSky

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