This is the final version of the code used for data analysis (including basic documentation) in the following paper:
Ecker AS, Berens P, Cotton RJ, Subramaniyan M, Denfield G, Cadwell CR, Smirnakis SM, Bethge M, Tolias AS (2014) State dependence of noise correlations in macaque primary visual cortex. Neuron 82:235–248.