-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSet_Path.m
77 lines (76 loc) · 3.43 KB
/
Set_Path.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
66
67
68
69
70
71
72
73
74
75
76
77
%% Set Path % set this alias! so that copying and syncing could work
if ~strcmp(getenv('COMPUTERNAME'), "DESKTOP-MENSD6S")
system('subst N: \\research.files.med.harvard.edu\Neurobio\PonceLab')
system("subst S: F:\Network_Data_Sync")
% system('subst N: \\storage1.ris.wustl.edu\crponce\Active')
end
if strcmp(getenv('COMPUTERNAME'), 'LAPTOP-U8TSR4RE')
system('subst O: "D:\OneDrive - Washington University in St. Louis"')
system("subst S: D:\Network_Data_Sync") % set this alias! so that copying and syncing could work
else
system('subst O: "E:\OneDrive - Washington University in St. Louis"')
system("subst S: F:\Network_Data_Sync") % set this alias! so that copying and syncing could work
end
%result_dir = "C:\\Users\\ponce\\OneDrive - Washington University in St. Louis\\PC_space_tuning";
% it will load the newest version of ExpSpecTable and compute pref_chan_arr
% and norm_arr from it!
if strcmp(getenv('COMPUTERNAME'), "DESKTOP-MENSD6S") % At home
fprintf("At home, check the date and version of your experiment Record table.(The one in folder may be the most recent. Loading from it)\n")
keyboard;
ExpSpecTable_Aug = readtable("ExpSpecTable_Augment.xlsx");
ExpSpecTable_Aug_alfa = readtable("Exp_Record_Alfa.xlsx");
system("subst N: E:\Network_Data_Sync")
% copyfile("E:\Monkey_Data\ExpSpecTable_Augment.xlsx", ".\ExpSpecTable_Augment.xlsx")
% copyfile("E:\Monkey_Data\Exp_Record_Alfa.xlsx", ".\Exp_Record_Alfa.xlsx")
elseif strcmp(getenv('COMPUTERNAME'), 'LAPTOP-U8TSR4RE') % new BInxu laptop
% keyboard;
ExpSpecTable_Aug = readtable("ExpSpecTable_Augment.xlsx");
ExpSpecTable_Aug_alfa = readtable("Exp_Record_Alfa.xlsx");
system("subst N: D:\Network_Data_Sync")
copyfile(".\ExpSpecTable_Augment.xlsx", "S:\ExpSpecTable_Augment.xlsx")
copyfile(".\Exp_Record_Alfa.xlsx", "S:\Exp_Record_Alfa.xlsx")
elseif exist("S:\",'dir') % Currently I set up S:\ at home as well, so everything should match
ExpSpecTable_Aug = readtable("S:\ExpSpecTable_Augment.xlsx",'Format','auto');
ExpSpecTable_Aug_alfa = readtable("S:\Exp_Record_Alfa.xlsx",'Format','auto');
ExpSpecTable_Aug_caos = readtable("S:\Exp_Record_Caos.xlsx",'Format','auto');
copyfile("S:\ExpSpecTable_Augment.xlsx", ".\ExpSpecTable_Augment.xlsx")
copyfile("S:\Exp_Record_Alfa.xlsx", ".\Exp_Record_Alfa.xlsx")
copyfile("S:\Exp_Record_Caos.xlsx", ".\Exp_Record_Caos.xlsx")
writetable(ExpSpecTable_Aug, ".\Exp_Record_Beto.csv")
writetable(ExpSpecTable_Aug_alfa, ".\Exp_Record_Alfa.csv")
writetable(ExpSpecTable_Aug_caos, ".\Exp_Record_Caos.csv")
else
fprintf("load local exprecord in folder %s instead\n", pwd)
keyboard;
ExpSpecTable_Aug = readtable("ExpSpecTable_Augment.xlsx");
ExpSpecTable_Aug_alfa = readtable("Exp_Record_Alfa.xlsx");
end
%winopen("S:\ExpSpecTable_Augment.xlsx")
%winopen("S:\Exp_Record_Alfa.xlsx")
matdir = "O:\Mat_Statistics";
mat_dir = "O:\Mat_Statistics";
addpath(".\utils")
addpath(".\DNN")
addpath(".\NMF")
addpath(".\VisGUI")
addpath(".\vis_demo")
addpath(".\stats_plot")
addpath(".\CorrFeatTsr")
addpath(".\CosineEvol")
addpath("D:\Github\Fit_Spherical_Tuning")
% Depends on
% - brewermap
% - shadedErrorBar
if ~ (exist('Animal','var') == 1)
Animal = "Both";
end
switch Animal
case "Alfa"
ExpRecord = ExpSpecTable_Aug_alfa;
case "Beto"
ExpRecord = ExpSpecTable_Aug;
case "Caos"
ExpRecord = ExpSpecTable_Aug_caos;
case "Both"
ExpRecord = [ExpSpecTable_Aug; ExpSpecTable_Aug_alfa];
end