Code used for the analysis of electrophysiology data