README file for state-dependent detection scripts updated 20181213 - A.J.S. Unzip 'code_files' Within 'code_files', find the 'analysis_results' directory. Unzip the following data files and move to analysis_results csd_dimReduce lfp_dimReduce lfp_cont_l4channels You should this directory structure: analysis_results/csd_dimReduce analysis_results/lfp_dimReduce analysis_results/lfp_cont_l4channels To run analyses, start from 'scripts/manuscript_analysis_and_figures_ploscb.m' Start from the top of this script and work down. Figure generating scripts are at the bottom. It will write results to subdirectories of 'analysis_results/' We assume that the preliminary data quality has been assessed, and there is a file "prelim_channelSD_screen" in the "analysis_results" from which the indices of good channels can be loaded using the function loadGoodChannelList. must also be on the path. Other functions called are in the 'functions' folder. Plot outputs are saved to 'plots'.