A general and flexible method for signal extraction from single-cell RNA-seq data