Serval: A modular framework for decoding imaging based spatial transcriptomics data.
Jenkin Tsui, Naila Adam, Woongcheol Choi, Luna Y Liu, Cristina Flores, Shadi Ansari, Esther Kong, Yukta Thapliyal,
Department of Molecular Oncology, BC Cancer Agency, 675 West 10th Avenue, Vancouver, BC, V5Z 1L3, Canada.
Key points
From the paper's conclusion- Here, we introduce Serval, a modular framework for developing and benchmarking decoding methods across diverse spatial transcriptomics platforms. Serval separates key decoding stages into independently configurable modules, enabling flexible integration of alternative algorithms. Using this framework, we develop CoSiD (Cosine Similarity Decoder), a novel method that improves transcript recovery by optimizing cosine similarity to known barcodes. We evaluate CoSiD and baseline methods on synthetic and real MERFISH datasets, showing that CoSiD achieves higher transcript recovery and superior correlation with expression references compared to existing methods. Furthermore, we demonstrate that the Serval framework generalizes beyond MERFISH. By extending to the DART-FISH platform, we show that CoSiD improves transcript recovery, clustering stability and supports more direct annotation of complex biological structures such as the human primary motor cortex. These results establish that modular decoding frameworks facilitate robust, platform-agnostic benchmarking, ultimately supporting more accurate spatial transcriptomics analysis across diverse biological samples.
Abstract
MOTIVATION: Imaging-based spatial transcriptomics technologies have opened new avenues for studying cellular organization and gene expression within intact tissues. However, the accuracy of downstream analyses depends critically on the decoding step that reconstructs barcodes from fluorescence patterns and maps them to gene identities. Despite a growing number of decoding methods, systematic benchmarking has been limited. RESULTS: Here, we introduce Serval, a modular framework for developing and benchmarking decoding methods across diverse spatial transcriptomics platforms. Serval separates key decoding stages into independently configurable modules, enabling flexible integration of alternative algorithms. Using this framework, we develop CoSiD (Cosine Similarity Decoder), a novel method that improves transcript recovery by optimizing cosine similarity to known barcodes. We evaluate CoSiD and baseline methods on synthetic and real MERFISH datasets, showing that CoSiD achieves higher transcript recovery and superior correlation with expression references compared to existing methods. Furthermore, we demonstrate that the Serval framework generalizes beyond MERFISH. By extending to the DART-FISH platform, we show that CoSiD improves transcript recovery, clustering stability and supports more direct annotation of complex biological structures such as the human primary motor cortex. These results establish that modular decoding frameworks facilitate robust, platform-agnostic benchmarking, ultimately supporting more accurate spatial transcriptomics analysis across diverse biological samples. AVAILABILITY: Serval and CoSiD are open source and publicly available at https://github.com/Roth-Lab/serval. Code for the simulation and analysis pipelines is available from the repositories described in the Data Availability section. SUPPLEMENTARY INFORMATION: Supplementary data are available at Bioinformatics online.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Platform-specific count-matrix preprocessing workflows for spatial transcriptomics data analysisbioRxiv · 2026
- Benchmarking segmentation methods for spatial transcriptomics.Nature methods · 2026
- Accurate and scalable decontamination of imaging-based spatial transcriptomics via optimal transportbioRxiv · 2026
- Navigating the rapidly evolving landscape of sequencing-based spatial transcriptomics technologies: a comprehensive multi-platform benchmarkbioRxiv · 2026
- Coordinated Enhancement of Molecular and Spatial Fidelity for Biological Inference in Spatial TranscriptomicsbioRxiv · 2026
- Unified cell segmentation for spatial transcriptomics via transcript reassignmentbioRxiv · 2026