{'fraction_non_alphanumeric': 0.02227342549923195, 'fraction_numerical': 0.0, 'mean_word_length': 5.716494845360825, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
BANKSY: A Spatial Omics Algorithm that Unifies Cell Type Clustering and Tissue Domain Segmentation

Each cell type in a solid tissue has a characteristic transcriptome and spatial arrangement, both of which are observable using modern spatial omics assays. However, the common practice is still to ignore spatial information when clustering cells to identify cell types. In fact, spatial location is typically considered only when solving the related, but distinct, problem of demarcating tissue domains (which could include multiple cell types). We present BANKSY, an algorithm that unifies cell type clustering and domain segmentation by constructing a product space of cell and neighbourhood transcriptomes, representing cell state and microenvironment, respectively. BANKSY’s spatial kernel-based feature augmentation strategy improves per-formance and scalability on both tasks when tested on FISH-based and sequencing-based spatial omics data. Uniquely, BANKSY identified hitherto undetected niche-dependent cell states in two mouse brain regions. Lastly, we show that quality control of spatial omics data can be formulated as a domain identification problem and solved using BANKSY. BANKSY represents a biologically motivated, scalable, and versatile framework for analyzing spatial omics data.