In this Tools of the Trade article, Erin Brown describes the development of CytoSPACE, a computational tool that aligns single-cell transcriptomes and spatial transcriptomic data, and highlights its use in identifying spatially resolved cell states in the tumour microenvironment.