MEGIMA Differential temporal dynamics during visual imagery and perception Analysis scripts used for the paper https://elifesciences.org/articles/33904. Data can be found at http://hdl.handle.net/11633/di.dcc.DSC_2017.00072_245