Extended Data 1
Simulation code: our tissue-scale model of SD in brain slices is available on GitHub. We used the NEURON simulator reaction-diffusion framework to implement embed thousands of neurons (based on the model from Wei et al., 2014) in the extracellular space of a brain slice, which is itself embedded in an bath solution. We initiated SD in the slice by elevating extracellular K+ in a spherical region at the center of the slice. The effects of hypoxia and propionate on the slice were modeled by appropriate changes to the volume fraction and tortuosity of the extracellular space and oxygen/chloride concentrations. Users need to install NEURON, and we recommend using MPI to parallelize simulations. Download Extended Data 1, ZIP file.