Analysis code for our 2013 eLife paper