Data Resources

Many of our projects generate computer code, experimental data or both. Below we show excerpts of the code and data we have available. If you would access to the full scripts or data files, please get in touch here.


Preventing intrusive memories following trauma using Tetris

Iyadurai L., S.E. Blackwell, R. Meiser-Stedman, P.C. Watson, M.B. Bonsall, J.R. Geddes, A.C. Nobre and E.A. Holmes (2017) Preventing intrusive memories after trauma via a brief intervention involving Tetris computer game play in the emergency department: a proof-of-concept randomized controlled trial. Molecular Psychiatry (advance online publication 28 March 2017; doi: 10.1038/mp.2017.23)

Materials, data, statistical plan and time series analysis details are available from


Optimal control of resistance to transgenic Bt crops

Hackett, S.C. and M.B. Bonsall (2016) Type of fitness cost influences the rate of evolution of resistance to transgenic Bt crops. Journal of Applied Ecology, 53, 1391-1401.

The R code (version 3.13) used in this study is available from the Dryad Digital Repository, see


Time Series Applications to Bipolar Disorder

Holmes, E. A., Bonsall, M. B., Hales, S. A., Mitchell, H., Renner, F., Blackwell, S., Watson, P., Goodwin, G. M. & Di Simplicio, M. (2016) Applications of time-series analysis to mood fluctuations in bipolar disorder to promote treatment innovation: a case series. Translational Psychiatry,  6, e720.

Data file and code book available from


Computer Game Play and Memory Reconsolidation

James, E. L., Bonsall, M. B., Hoppitt, L., Tunbridge, E. M., Geddes, J. R., Milton, A. L., & Holmes, E. A. (2015) Computer game-play reduces intrusive memories of experimental trauma via reconsolidation update mechanisms. Psychological Sciences, 26, 1201-1215.

Materials, data file and code book are available from


Population Dynamics 

Strevens, C.J.M. and M.B. Bonsall (2011) Density-dependent population dynamics and dispersal in heterogeneous metapopulations. Journal of Animal Ecology, 80, 282-293.

The R code (for OS X) and example data for fitting population models to a bruchid time series are available from