-
Notifications
You must be signed in to change notification settings - Fork 1
/
BpodImagerHPC_runTestRegs.m
38 lines (31 loc) · 1.09 KB
/
BpodImagerHPC_runTestRegs.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
function BpodImagerHPC_runTestRegs
% code to run the 'Widefield_testRegs' command over all animals in the
% current dataset. Execute from bnbdev1.
% Needs updated 'delayDecRecordings' to get all
% recordings.
for iMod = 3
if iMod == 1
% GFP data
dataOverview = delayDecRecordings_GFP;
dataOverview = dataOverview(ismember(dataOverview(:,4), 'GFP'), :);
elseif iMod == 2
% camK data
dataOverview = delayDecRecordings_GFP;
dataOverview = dataOverview(ismember(dataOverview(:,4), 'gcamp'), :);
elseif iMod == 3
% ai93 data
dataOverview = delayDecRecordings;
end
% dataOverview = delayDecRecordings;
animals = dataOverview(:,1);
recs = dataOverview(:,3);
for iAnimals = 1 : length(animals)
disp([animals{iAnimals} ' -- ' recs{iAnimals}]);
cLine = ['qsub -l m_mem_free=4G -pe threads 8 -binding linear:8 modelVariance.sh ' ...
animals{iAnimals} ' ' recs{iAnimals} ' false'];
system(cLine);
cLine = ['qsub -l m_mem_free=4G -pe threads 8 -binding linear:8 modelVariance.sh ' ...
animals{iAnimals} ' ' recs{iAnimals} ' true'];
system(cLine);
end
end