Quantitative definition of cell identity from single-cell multi-omic, spatial, and perturbation data