-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathplaceandview_sic_transfer_in.m
46 lines (35 loc) · 1.89 KB
/
placeandview_sic_transfer_in.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
function [output] = placeandview_sic_transfer_in(current_path)
cd(current_path);
disp(current_path);
split_path = strsplit(current_path, '/');
partial_path = strjoin(split_path(end-4:end),'/'); % 20181102/session01/array01/channel019/cell01
command = 'scp -P 8398 hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
command = strcat(command, partial_path);
command = strcat(command, '/vmsv.mat .');
unix(command);
partial_path = strjoin(split_path(end-4:end),'/'); % 20181102/session01/array01/channel019/cell01
command = 'scp -P 8398 hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
command = strcat(command, partial_path);
command = strcat(command, '/spiketrain.mat .');
unix(command);
partial_path = strjoin(split_path(end-4:end-3),'/'); % 20181102/session01
command = 'scp -P 8398 hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
command = strcat(command, partial_path);
command = strcat(command, '/umaze.mat .');
unix(command);
partial_path = strjoin(split_path(end-4:end-3),'/'); % 20181102/session01
command = 'scp -P 8398 hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
command = strcat(command, partial_path);
command = strcat(command, '/rplparallel.mat .');
unix(command);
command = 'scp -P 8398 hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
command = strcat(command, 'pillars.mat .');
unix(command);
% placeandview_shuffle(1000,100);
%
% partial_path = strjoin(split_path(end-4:end),'/'); % 20181102/session01/array01/channel019/cell01
% command = 'scp -P 8398 pnv_shuffle.mat hippocampus@cortex.nus.edu.sg:/volume1/Hippocampus/Data/picasso-misc/';
% command = strcat(command, partial_path);
% unix(command);
% unix('rm *.mat');
end