1- Aux_functions: Functions used for statistics or visualizing 2- Data: raw_data: Endtime: end time of recording in seconds recording_id: animal id for each unit timestamps_seconds: spike times in seconds for each unit unit_id: id for each single unit waveform_type: cell type (narrow/wide) for each unit LFPs: cell array containing a structure with LFP waveform (wf) and its corresponding time LFP_ids: id of the animal the LFP corresponds to Unit_location: location of each unit on electrode 3- Results: The exact results used for the paper, pre saved for reproduction. If you want to start from scratch, just remove them 4- Toolboxes: Toolboxes necessary for the main routines, do remember to unzip it in the same directory as other folders before running the codes 5- Main: the .m files can be executed at any order given the results of the paper are already saved However, if you do not want to use the pre-saved results, , it is explained in the header of each file what the routine does and what dependencies it has. You should start with Ensemble_decetion.m Good luck