-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmani_setPath.m
47 lines (37 loc) · 1.31 KB
/
mani_setPath.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
40
41
42
43
44
45
46
47
function mani_setPath
warning off MATLAB:dispatcher:nameConflict
if isequal(computer, 'PCWIN64')
addpath(getLocalPath('/lab/libraries/mym/win64'))
else
addpath(getLocalPath('/lab/libraries/mym'))
end
% user specific DJ connection parameters (uses Alex' credentials)
host = 'at-storage.neusc.bcm.tmc.edu';
user = 'mani';
setenv('DJ_HOST', host)
setenv('DJ_USER', user)
fprintf('Datajoint connection\n')
fprintf('--------------------\n')
fprintf('host: %s\n', host)
fprintf('user: %s\n\n', user)
base = fileparts(mfilename('fullpath'));
addpath(fullfile(base, 'processing'))
addpath(fullfile(base, 'processing/sync'))
addpath(fullfile(base, 'processing/utils'))
addpath(fullfile(base, 'recovery'))
addpath(fullfile(base, 'schemas'))
addpath(fullfile(base, 'migration'))
% DataJoint library is assumed to be in the same directory as the base
% diretory
ndx = find(base == filesep, 1, 'last');
addpath(fullfile(base(1:ndx-1), 'datajoint/matlab'))
% TEMP until updated on /lab/libraries
run(fullfile(base(1:ndx-1), 'hdf5matlab/setPath.m'))
% spike detection
run(fullfile(base(1:ndx-1), 'detection/setPath.m'))
% LFP
addpath(fullfile(base(1:ndx-1), 'lfp'))
% spike sorting
% addpath(fullfile(base(1:ndx-1),'clustering'))
% run(getLocalPath('/lab/libraries/various/spider/use_spider'))
warning on MATLAB:dispatcher:nameConflict