HistoSeg#
StructureMap-guided semantic contours and 3D Xenium tissue reconstruction.
HistoSeg is a Python toolkit centered on same-sample, multi-slice Xenium
contour reconstruction. It turns Cell-GPS Search-and-Find/StructureMap-guided
or curated structure groups into continuous semantic contours, then aligns
neighboring contour slices, builds 3D contour stacks, exports PLY/OBJ
meshes, and writes QC artifacts. histoseg.contour and
histoseg.he support the 2D spatial and image workflows that
prepare those structures for reconstruction.
Note
Start with 3D Reconstruction when the goal is a multi-slice Xenium contour stack or 3D mesh. Use Contour Analysis to generate 2D structures from cell-coordinate data, and H&E Analysis when the primary input is an image.
Start Here#
Align neighboring Xenium contour slices, reconstruct 3D contour stacks, and export meshes plus QC artifacts.
Set up the package from PyPI or prepare an editable development environment.
Run the first 3D reconstruction, contour, or H&E workflow from Python or the command line.
Follow the 3D stack reconstruction and soft-alignment walkthroughs end to end.
Browse the public interfaces for histoseg.threed, histoseg.contour, and
histoseg.he.
Explore By Workflow#
Soft-align neighboring Xenium contour slices and build multi-slice 3D contour meshes.
Inspect a fully automatic two-slice breast contour alignment where local landmarks are found without manual annotation.
Follow a B1_2/B1_3 breast pair from raw cell points through Cell-GPS-guided contours to contour-guided tear closure.
Extract Pattern1 isolines, build StructureMap-guided named structure partitions, and export Xenium-ready review layers.
Run the Gradio web workflow for dendrogram-guided multi-structure contour selection from Xenium cell-coordinate and cluster tables.
Segment tissue, partition neutral components, and detect changes between aligned H&E images.
See the contour-generation steps, expected inputs, and artifact set for the single-structure Pattern1 pipeline.
Use workflow-oriented guides when you need a more operational view of a run and its outputs.
Project And Internals#
Understand how the contour and structure-analysis building blocks fit together.
See the expectations for issues, pull requests, and reproducible bug reports.
Track the package direction and the public feature groups exposed today.