Scripts for the article under review by Pestilli et al.