Code for 2014 almond-analysis