Segger: Reproducible Analyses for Fast and Accurate Cell Segmentation in Imaging-Based Spatial Omics
This repository contains code and analyses for reproducing figures in the preprint Segger: Fast and accurate cell segmentation of imaging-based spatial omics data. Segger is a graph-based segmentation framework that improves transcript assignment in spatial omics data while offering high sensitivity, specificity, and scalability.
paper/– Notebooks reproducing the figures of the manuscript, from data download to figure panels (seepaper/README.md).src/– Python modules for data preprocessing, visualization, and utility functions (sg_utils).
The datasets used in this study are publicly available and can be accessed as follows:
- S2 – Human non-small-cell lung cancer, FFPE (Xenium v1; lung panel + 100 custom genes):
Download (tar.gz) - S5 – Mouse liver (Xenium v1; custom 456-gene panel):
Download (tar.gz)
- S1 – Human colorectal cancer, FFPE (Xenium v1 with multimodal cell segmentation; colon panel + 100 add-on genes):
Dataset Link (10x Genomics); GEO GSE280314 - S3 – Human colon cancer, FFPE (Xenium v1; colon panel):
Dataset Link (10x Genomics) - S4 – Human colon, non-diseased, FFPE (Xenium v1; colon panel + 100 add-on genes):
Dataset Link (10x Genomics) - S6 – Human breast cancer, FFPE (Xenium Prime 5K; pan-tissue panel + 100 custom genes):
Dataset Link (10x Genomics) - S7 – Mouse brain, fresh frozen (Xenium Prime 5K; pan-tissue panel):
Dataset Link (10x Genomics) - S8 – Human brain cortex, non-diseased (MERSCOPE; 960-gene panel):
Dataset Link (Vizgen) - S9 – Human pancreas, FFPE (CosMx; whole-transcriptome panel):
Dataset Link (Bruker Spatial Biology) - S10 – Human cervical squamous-cell carcinoma, FFPE (Atera; whole-transcriptome panel):
Dataset Link (10x Genomics) - S11 – Human lung adenocarcinoma, FFPE (Xenium v1 with multimodal cell segmentation; multi-tissue and cancer panel):
Dataset Link (10x Genomics) - Xenium Breast Cancer preview (10x Genomics; used in the preprint):
Dataset Link
- S1 – Xenium CRC: Download
- S2 – Xenium NSCLC: Download
- S3 – Xenium v1 colon: Download
- S4 – Xenium v1 colon with add-on genes: Download
- S5 – Xenium mouse liver: Download
- S6 – Xenium Prime 5K breast: Download
- S7 – Xenium Prime 5K mouse brain: Download
- S8 – MERSCOPE brain cortex: Download
- S9 – CosMx pancreas: Download
- S10 – Atera cervical cancer: Download
Download the datasets Run the following commands to download and extract the datasets:
wget https://dp-lab-data-public.s3.us-east-1.amazonaws.com/segger/xenium_nsclc.tar.gz
wget https://dp-lab-data-public.s3.us-east-1.amazonaws.com/segger/xenium_mouse_liver_healthy_v1.tar.gz
tar -xvzf xenium_nsclc.tar.gz
tar -xvzf xenium_mouse_liver_healthy_v1.tar.gzFor questions or issues, please open a GitHub issue or contact the authors of the manuscript.