-
Notifications
You must be signed in to change notification settings - Fork 0
/
prepSR.m
39 lines (29 loc) · 1.58 KB
/
prepSR.m
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
function sr_dirs = prepSR
% Setup for working on States_rats i.e. spec-state-trans
% For non-Proekt Lab users: modify/rewrite as necessary so that sr_dirs points to the
% appropriate places and the library paths are correct.
synology_dir = get_synology_dir; % our lab server
% parent folder to all data
sr_dirs.project = fullfile(synology_dir, 'brenna', 'States_rats');
% contains raw data LFP matfiles (before artifact removal/mean subtraction) - probably not used
sr_dirs.raw = fullfile(sr_dirs.project, 'RawData');
% contains matfiles with continuous preprocessed LFP
sr_dirs.processed_lfp = fullfile(sr_dirs.project, 'meanSubtracted_fullTrace');
% contains matfiles with preprocessed LFP broken into stim trials. Used for CSD.
sr_dirs.snippits = fullfile(sr_dirs.project, 'Snippits');
% place to save results and figures - currently the same as script dir but could be different
sr_dirs.results = fullfile(sr_dirs.project, 'forEthan', 'spec-state-trans');
% root folder of the spec-state-trans repository
sr_dirs.script = sr_dirs.results;
addpath(sr_dirs.script);
addpath(fullfile(sr_dirs.script, 'pipeline'));
% other dependencies
% https://github.com/proektlab/SpectralAnalysis
addpath(fullfile(synology_dir, 'code', 'SpectralAnalysis'));
% https://github.com/proektlab/NonNegativeMatrixFactorization
addpath(fullfile(synology_dir, 'code', 'NonNegativeMatrixFactorization'));
% https://github.com/bastibe/Violinplot-Matlab
addpath(fullfile(synology_dir, 'code', 'Plotting', 'Violinplot-Matlab'));
% https://github.com/raacampbell/sigstar
addpath(fullfile(synology_dir, 'code', 'Plotting', 'sigstar'));
end