-
Notifications
You must be signed in to change notification settings - Fork 5
/
alex_setPath.m
executable file
·40 lines (30 loc) · 1.12 KB
/
alex_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
function alex_setPath
warning off MATLAB:dispatcher:nameConflict
run(getLocalPath('/lab/users/alex/projects/mym/mymSetup'))
base = fileparts(mfilename('fullpath'));
addpath(base)
% user specific DJ connection parameters (uses Alex' credentials)
initDJ();
fprintf('Datajoint connection\n')
fprintf('--------------------\n')
fprintf('host: %s\n', getenv('DJ_HOST'))
fprintf('user: %s\n\n', getenv('DJ_USER'))
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'))
addpath(fullfile(base, 'sortgui'))
addpath(fullfile(base, 'sortgui/lib'))
% DataJoint library is assumed to be in the same directory as the base
% diretory
ndx = find(base == filesep, 1, 'last');
run(fullfile(base(1:ndx-1), 'datajoint/setPath.m'))
% HDF5 utils
run(fullfile(base(1:ndx-1), 'hdf5matlab/setPath.m'))
% spike detection
run(fullfile(base(1:ndx-1), 'ephys-preprocessing/setPath.m'))
% spike sorting
addpath(fullfile(base(1:ndx-1), 'moksm'))
warning on MATLAB:dispatcher:nameConflict