Quantification of cell identity from single-cell gene expression profiles