-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathmake_figs.m
50 lines (35 loc) · 1.25 KB
/
make_figs.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
% where data is stored (that you download from figshare)
dataroot = '/media/carsen/DATA2/grive/10krecordings/imgResp/';
% where processed data and results are saved
matroot = '/media/carsen/DATA2/grive/10krecordings/stimResults/';
addpath(genpath('.'));
%% makes fig1
fig1(dataroot, matroot);
%% makes fig2
fig2(matroot);
%% makes fig3
fig3(dataroot, matroot);
%% makes fig4 (relies on saved structure from fig3 (matroot/alphas.mat)!)
fig4(matroot);
%% p-value and stim-related variance figure
suppfig_stimvar(matroot);
%% controls (z-scoring responses, subtracting spont PCs)
suppfig_controls_spontPCs(matroot);
%% low-rank receptive field figure
suppfig_RFs(matroot);
%% simulated data powerlaws
suppfig_sim_gain_deconv(matroot);
%% increasing neurons and stimuli
suppfig_incrNeuStim(dataroot,matroot);
%% increasing neurons by concatenating recordings
suppfig_concatenate_recordings(matroot);
%% statistics from gabor fits
suppfig_gabors(matroot);
%% makes ephys powerlaw figure
% script works because I've added the processed powerlaws to the repository
% (raw data not yet online, sorry!)
suppfig_ephys_powerlaw(matroot);
%% make sorted 2D figure
% add path to rastermap
addpath('/media/carsen/DATA2/Github/rastermap/matlab')
suppfig_sort2d(matroot);