Estimating intratumoral heterogeneity from spatiotemporal data