script for MEG analysis of the readiness project