Decoding stem cell hierarchies and cellular ecosystems in cancer