-
Notifications
You must be signed in to change notification settings - Fork 0
/
HRdelay.m
58 lines (43 loc) · 1.63 KB
/
HRdelay.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
%% Info
% This script reproduces figures from S. Proulx et al., Neuroimage, in
% preperation.
clear all
close all
%% Initiation
initAnalysis; % where to define paths, analysis parameters and some other general configurations
%% Get data (preprocessed BOLD volumes, only V1 ROI voxels, one .mat file per subject)
downloadData;
%% Extract sinusoidal and model-free responses from timeseries
extractResponses(p);
%% Define the retinotopic representation of the stimulus field of view (data-driven with priors from a probabilistic retinotopic atlas)
doWhat = 'download';
% 'run' -> run it yourself (several minutes; uses some more Matlab proprietary toolboxes, see initAnalysis.m)
% 'download' -> download precomputed data from repository
% 'run_forced' -> same as above, but forces to rerun instead of loading locally saved data
% 'download_forced' -> same as above, but forces to redownload instead of loading locally saved data
processFov(p,doWhat);
%% Feature selection
processFeatSel(p);
%% Decoding
runAllDecoding(p);
%% Visualize and print stats on BOLD responses
visualizeResponses(p)
%% Visualize and print stats on decoding
plotAllDecoding(p);
statsAllDecoding(p);
%% Run permutation test (will take long time)
runPermDecoding(p)
plotAllDecoding(p);
return
%% Old code that will not run
chan = processChanHr(p,resBShr,info);
f = plotChanHr(p,chan);
statsChanHr(p,chan);
groupAna(p,figOption,verbose)
% runFit(verbose,figOption)
runFit2(verbose,figOption)
runWave2(verbose,figOption)
preprocAndShowMasks(p,figOption,verbose)
inspectSubjAndExclude(figOption,verbose)
runGroupAnalysis_sin(figOption,verbose)
runGroupAnalysis_hr(figOption,verbose)