-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixingGL8.m
74 lines (64 loc) · 2.09 KB
/
fixingGL8.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
%% fixing GL8 and rerunning some analysis on it
clear
clc
close all
if ispc
dirIn = 'Z:\adeeti\ecog\iso_awake_VEPs\GL8\';
dropboxLocation = 'C:\Users\adeeti\Dropbox\ProektLab_code\Adeeti_code\';
genPicsDir = 'Z:\adeeti\ecog\images\Iso_Awake_VEPs\GL8\';
elseif isunix
dirIn = '/synology/adeeti/ecog/iso_awake_VEPs/GL8/';
dropboxLocation = '/home/adeeti/Dropbox/ProektLab_code/Adeeti_code/'; %'C:\Users\adeeti\Dropbox\KelzLab\';
genPicsDir = '/synology/adeeti/ecog/images/Iso_Awake_VEPs/GL8/';
end
identifier = '2019*.mat';
dirWAVE = [dirIn, 'Wavelets/'];
dirFILT = [dirIn, 'FiltData/'];
dirCoh = [dirIn, 'wCoh/'];
dirIPSC = [dirIn, 'IPSC/'];
cd(dirIn)
allData = dir(identifier);
% for i = 1:length(allData)
% cd(dirIn)
% load(allData(i).name, 'info')
% disp(['Experiment info ', num2str(i)])
%
% %% saving info in the right places
% if i== 1
% disp('Saving IPSC')
% save([dirIPSC, allData(i).name(1:end-4), 'wave.mat'], 'info', '-append')
% else
% disp('Saving wavlet')
% save([dirWAVE, allData(i).name(1:end-4), 'wave.mat'], 'info', '-append')
% disp('Saving filtdata')
% save([dirFILT, allData(i).name(1:end-4), 'wave.mat'], 'info', '-append')
% disp('Saving IPSC')
% save([dirIPSC, allData(i).name(1:end-4), 'wave.mat'], 'info', '-append')
% end
%
%
%
% % disp('Saving wCoh')
% % save([dirCoh, allData(i).name(1:end-4), 'wave.mat'], 'info', '-append')
% %
% %
% end
stimIndex = [0, Inf];
START_AT = 1;
for fr = [5, 35]
if fr == 5
dirMovies = [genPicsDir, 'coher5MoviesOutlines/'];
interpBy = 100;
noiseBlack = 0;
moviesCoherenceSinglesOnly
elseif fr ==35
interpBy = 100;
noiseBlack = 0;
dirMovies = [genPicsDir, 'coher35MoviesOutlines/'];
moviesCoherenceSinglesOnly
dirMovies = [genPicsDir, 'coher35Movies_blkNoise_noInt/'];
interpBy = 1;
noiseBlack = 1;
moviesCoherenceSinglesOnly
end
end