Code for reproducing figures in Ecker et al. 2014, Neuron 82(1), 235-248