-
Notifications
You must be signed in to change notification settings - Fork 5
/
james_setPath.m
65 lines (52 loc) · 1.84 KB
/
james_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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
function setPath
warning off MATLAB:dispatcher:nameConflict
% user specific DJ connection parameters
local = false
if local
host = '127.0.0.1:8889' % port is for MAMP server
else
host = 'at-database.ad.bcm.edu';
end
user = 'jcotton';
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'))
addpath(fullfile(base, 'sortgui'))
addpath(fullfile(base, 'sortgui/lib'))
addpath(fullfile(base, 'aodgui'))
addpath(fullfile(base, 'lib/two_photon'))
% DataJoint library is assumed to be in the same directory as the base
% diretory
addpath(fullfile(base, '../DataJoint/matlab'));
%addpath('z:\users\alex\projects\datajoint\')
%addpath('Z:\users\alex\projects\mym\distribution\mexw64')
addpath(fullfile(base, '../moksm'));
if isequal(computer, 'PCWIN64')
addpath(fullfile(base, '../mym/win64'));
else
addpath(fullfile(base, '../mym/distribution/mexmaci64/'));
end
if exist(getLocalPath('/lab/'), 'dir')
% TEMP until updated on /lab/libraries
run(getLocalPath('/lab/libraries/hdf5matlab/setPath'))
% LFP
addpath(getLocalPath('/lab/libraries/lfp'));
% spike sorting
addpath(getLocalPath('/lab/users/james/Matlab/VariationalClustering'));
% spike detection
%run(getLocalPath('/lab/users/james/Matlab/spikesorting/detection/setPath'));
run C:\Users\jcotton\Documents\MATLAB\spikedetection\setPath.m
warning on MATLAB:dispatcher:nameConflict
else
warning('at-lab not mounded. File access tools not added to path');
end