Lineage analysis of stem cells