analysis scripts for neuroelectro ad paper