Skip to main content

segger

Release License: MIT Docs Python 3.13 CUDA 13 Powered by cuspa

Cell segmentation for imaging-based spatial transcriptomics as graph-based transcript–cell assignment.

segger overview

Segger is a graph neural network (GNN)-based method that formulates cell segmentation in imaging-based spatial transcriptomics (iST) as a problem of transcript–cell assignment. Rather than relying solely on geometric proximity, Segger assumes that a transcript belongs to a cell if it is consistent both with its local spatial context and with the gene expression programs that define cell identity, as captured in a shared latent representation.

— Heidari, Moorman, et al., segger methods description

Full documentation - installation, quickstart, outputs, API reference, etc.: segger-segmentation.readthedocs.io

Installation

segger requires CUDA 13 and Python 3.13.

uv pip install segger

For conda, pixi, installing from source and older CUDA versions, see the installation docs.

Container

On HPC clusters, run the Docker image with Apptainer/Singularity. Pull it once (about 10-20 minutes), then run on a GPU node with --nv:

export APPTAINER_CACHEDIR=/path/to/cachedir
apptainer pull segger.sif docker://sailmskcc/segger:latest
apptainer exec --nv segger.sif segger --help

For Docker, see Use a container.

Usage

segger segment \
  -i /path/to/your/ist/data/ \
  -o /path/to/save/outputs/ \
  --export anndata boundaries  # optional (e.g. anndata, boundaries, xeniumranger, ...)

See notebooks/quickstart.ipynb for an end-to-end walkthrough.

If you run into a problem, first check the GitHub issues and the known issues in the docs.

Contributing

See CONTRIBUTING.md.

Methods description

Heidari, E., Moorman, A., et al. Segger: Fast and accurate cell segmentation of imaging-based spatial transcriptomics data. Methods description (2026).

Citation

If you use segger in your research, please cite:

@misc{heidari2026segger,
  title={Segger: Fast and accurate cell segmentation of imaging-based spatial transcriptomics data},
  author={Heidari, Elyas and Moorman, Andrew and others},
  note={Methods description},
  year={2026},
  howpublished={\url{https://github.com/dpeerlab/segger/blob/main/segger_methods.pdf}}
}

Metadata

Release files for segger 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for segger 1.0.0
File Size Uploaded Provenance Actions
segger-1.0.0.tar.gz 93.3 kB With provenance Details for segger-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for segger 1.0.0
File Interpreter ABI Platform Actions
segger-1.0.0-py3-none-any.whl Python 3 none any Details for segger-1.0.0-py3-none-any.whl

Total release size: 200.4 kB

Release files / segger-1.0.0.tar.gz

Download URL segger-1.0.0.tar.gz
Size 93.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d242acc9ee4b5ec9968c1e8b3084b264c668c9c8ddd9b5c3eb4fd86b642c8253
BLAKE2b-256 checksum
How to use checksums
69cfff20308e70ced06ef4ceafba5a268846da3c17b156757467f79878e9cf3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / segger-1.0.0-py3-none-any.whl

Download URL segger-1.0.0-py3-none-any.whl
Size 107.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69941b408462191c472c530aa538b4f43a39a936d301eeb9ea9181e6c3d65006
BLAKE2b-256 checksum
How to use checksums
d3c1f8b2aaf7f2402930b668079c0774f1fa3a25e2cf3f514a153edcc76f19e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for segger 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for segger-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page