Reconstructing cell cycle and disease progression using deep learning