With Celleporter, we can simulate user-defined virtual cells in any location to uncover hidden spatial interactions within real patient tissues. Counterfactual simulations enable us to perturb environments—such as mimicking drug effects—and observe biological responses.