Most features of a cell are determined by gene programs — sets of co-expressed genes that execute a specific function. By incorporating existing knowledge about gene programs and cell types, the Spectra factor analysis method improves how we decode single-cell transcriptomic data and offers insights into challenging tumor immune contexts.