ck_Run.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. %% ck_Run
  2. % use this file to run subfunctions
  3. clc;
  4. homefld = pwd;
  5. cd ../../
  6. SHARED_ROOT_FLD = pwd;
  7. cd(homefld)
  8. addpath(genpath(fullfile(SHARED_ROOT_FLD,'Analysis_code')));
  9. %% SETTINGS ###############################################################
  10. Subj = {'M04','M03'};
  11. Sess = {'20181004_B1','20180807_B2'};
  12. for s=2:length(Subj)
  13. subj = Subj{s};
  14. sess = Sess{s};
  15. % MORE SETTINGS #######################################################
  16. Do.Load.Any = true;
  17. Do.Load.DigChan = true; % new files
  18. Do.Load.MUA = true; % new files
  19. Do.Load.LFP = true; % new files
  20. Do.Load.Behavior = true; % new files
  21. Do.Load.ProcMUA = false;
  22. Do.Load.ProcLFP = false;
  23. Do.Load.ProcBEH = false;
  24. Do.SyncTimes = true;
  25. Do.SaveUncut = true;
  26. Do.SaveMUA_perArray = true;
  27. Do.SaveLFP_perArray = true;
  28. %% load data ==========================================================
  29. %This preprocess the data so it can be used in fits.
  30. if Do.Load.Any
  31. ck_Load(subj, sess, Do)
  32. end
  33. end
  34. rmpath(genpath(fullfile(SHARED_ROOT_FLD,'Analysis_code')));