Single-cell transcriptomic profiling for inferring tumor origin and mechanisms of therapeutic resistance