-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMS_initialize.m~
More file actions
79 lines (63 loc) · 3.84 KB
/
Copy pathMS_initialize.m~
File metadata and controls
79 lines (63 loc) · 3.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%% MS_initialize: initialize the default parameters and
% clear all;
close all
restoredefaultpath
global PARAMS
if isunix && ~strcmp(computer, 'GLNXA64')
PARAMS.data_dir = '/Volumes/Fenrir/MS_2022/'; % where to find the raw data
PARAMS.inter_dir = '/Volumes/Fenrir/MS_2022/'; % where to put intermediate files
% PARAMS.stats_dir = '/Users/jericcarmichael/Documents/Multisite/Stats/'; % where to put the statistical output .txt
PARAMS.stats_dir = '/Volumes/Fenrir/MS_2022/Stats/'; % where to put the statistical output .txt
PARAMS.code_base_dir = '/Users/jericcarmichael/Documents/GitHub/vandermeerlab/code-matlab/shared'; % where the codebase repo can be found
PARAMS.code_MS_dir = '/Users/jericcarmichael/Documents/GitHub/EC_Multisite'; % where the multisite repo can be found
PARAMS.Chronux_dir = '/Users/jericcarmichael/Documents/chronux_2_11';
elseif strcmp(computer, 'GLNXA64')
PARAMS.data_dir = '/media/ecarmichael/Fenrir/Multisite/'; % where to find the raw data
PARAMS.inter_dir = '/media/ecarmichael/Fenrir/Multisite/inter/'; % where to put intermediate files
% PARAMS.stats_dir = '/Users/jericcarmichael/Documents/Multisite/Stats/'; % where to put the statistical output .txt
PARAMS.stats_dir = '/media/ecarmichael/Fenrir/Multisite/inter/Stats2/'; % where to put the statistical output .txt
PARAMS.code_base_dir = '/home/ecarmichael/Documents/GitHub/vandermeerlab/code-matlab/shared'; % where the codebase repo can be found
PARAMS.code_MS_dir = '/home/ecarmichael/Documents/GitHub/EC_Multisite'; % where the multisite repo can be found
else
PARAMS.data_dir = 'G:\Multisite\'; % where to find the raw data
PARAMS.inter_dir = 'G:\Multisite\temp\'; % where to put intermediate files
PARAMS.stats_dir = 'G:\Multisite\temp\Stats\'; % where to put the statistical output .txt
PARAMS.code_base_dir = 'D:\Users\mvdmlab\My_Documents\GitHub\vandermeerlab\code-matlab\shared'; % where the codebase repo can be found
PARAMS.code_MS_dir = 'D:\Users\mvdmlab\My_Documents\GitHub\EC_Multisite'; % where the multisite repo can be found
end
% log the progress
PARAMS.log = fopen([PARAMS.data_dir 'MS_log.txt'], 'w');
% define subjects, phases,
PARAMS.Phases = {'pre', 'ipsi', 'contra', 'post'}; % recording phases within each session
PARAMS.Subjects = {'R102', 'R104','R107', 'R108', 'R112', 'R122', 'R123'}; %list of subjects
PARAMS.Sub_xpiri = {'R108', 'R112', 'R122', 'R123'}; % subjects with electrodes spanning the piriform cortex
PARAMS.all_sites = {'PL', 'IL', 'OFC', 'PiriO', 'NAc', 'PiriN', 'CG'};
rng(10,'twister') % for reproducibility
% make the inter and stats folders if they don't already exist
if exist(PARAMS.inter_dir, 'dir'); mkdir(PARAMS.inter_dir); end
if exist(PARAMS.stats_dir, 'dir'); mkdir(PARAMS.stats_dir); end
% add the required code
addpath(genpath(PARAMS.code_base_dir));
addpath(genpath(PARAMS.code_MS_dir));
cd(PARAMS.data_dir) % move to the data folder
% Set of colours for consistency between plots
PARAMS.all_pairs = {'IL_PL' 'IL_OFC', 'IL_NAc', 'IL_CG', 'IL_PiriO', 'IL_PiriN',...
'PL_OFC', 'PL_NAc', 'PL_CG', 'PL_PiriO', 'PL_PiriN', ...
'OFC_NAc', 'OFC_CG', 'OFC_PiriO', 'OFC_PiriN',...
'NAc_CG', 'NAc_PiriO', 'NAc_PiriN',...
'CG_PiriO', 'CG_PiriN',...
'PiriO_PiriN',...
'OTO_PL', 'OTO_IL', 'OTO_OFC', 'OTO_NAc', 'OTO_CG', 'OTO_PiriN',...
'OTN_PL', 'OTN_IL', 'OTN_OFC', 'OTN_NAc', 'OTN_CG', 'OTN_PiriO'}; % updated to reflect OT.
PARAMS.pair_c_ord = linspecer(length(PARAMS.all_pairs)+4);
PARAMS.pair_c_ord(14:18,:) = [];
PARAMS.fig_blue = [0,173,216]./255;
PARAMS.fig_green = [123,225,160]./255;
PARAMS.fig_pink = [255,168,213]./255;
% formatting
set(groot, 'DefaultAxesTickLabelInterpreter', 'none')
set(groot, 'DefaultLegendInterpreter', 'none')
set(groot,'defaulttextinterpreter','none');
%MS_amp_xcorr_session
Master_Multisite_preprocess;
% Master_Multisite_postprocess;