-
Notifications
You must be signed in to change notification settings - Fork 1
/
BpodImager_moveDataset.m
30 lines (22 loc) · 1.06 KB
/
BpodImager_moveDataset.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
sPath = 'U:\space_managed_data\BpodImager\Animals\'; %sourcepath
tPath = 'F:\WidefieldData\Animals\'; %target path
dataOverview = delayDecRecordings;
for iAnimals = 1 : size(dataOverview,1)
fPath = [sPath dataOverview{iAnimals,1} filesep 'SpatialDisc' filesep dataOverview{iAnimals,3} filesep]; %current source datapath
tfPath = [tPath dataOverview{iAnimals,1} filesep 'SpatialDisc' filesep dataOverview{iAnimals,3} filesep]; %current target datapath
if ~exist(tfPath,'dir')
mkdir(tfPath);
end
bhvFile = strsplit(fPath,filesep);
bhvFile = dir([fPath bhvFile{end-3} '*' bhvFile{end-2} '*.mat']);
%copy some data
copyfile([fPath 'Snapshot_1.mat'],[tfPath 'Snapshot_1.mat']);
copyfile([fPath 'mask.mat'],[tfPath 'mask.mat']);
copyfile([fPath 'opts2.mat'],[tfPath 'opts2.mat']);
copyfile([fPath 'Vc.mat'],[tfPath 'Vc.mat']);
copyfile([fPath bhvFile.name],[tfPath bhvFile.name]);
disp('Finished copying data')
disp(['Source: ' fPath]);
disp(['Target: ' fPath]);
disp('=====================');
end