-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.m
executable file
·35 lines (30 loc) · 1.23 KB
/
install.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
% Run this script for the first time to retrieve necessary data
clc, clear, close all
filepath = fileparts(mfilename('fullpath'));
if ~exist(fullfile(filepath, 'output'), 'dir')
mkdir(fullfile(filepath, 'output'));
end
% Add path
addpath(genpath(filepath));
savepath;
% Download atlas data
fprintf('%s', '## Download atlas data ...');
outfilename = websave(fullfile(filepath, 'src', 'atlas.zip'), ...
'https://www.dropbox.com/s/a3ov1ztgaen5u2m/atlas.zip?dl=1');
unzip(outfilename, fullfile(filepath, 'src'));
delete(outfilename);
fprintf('%s\n', 'finished');
% Download examples
fprintf('%s', '## Download examples ...');
outfilename = websave(fullfile(filepath, 'src', 'examples.zip'), ...
'https://www.dropbox.com/s/3iteb4btcbvi39p/examples.zip?dl=1');
unzip(outfilename, fullfile(filepath, 'src'));
delete(outfilename);
fprintf('%s\n', 'finished');
% Download data for the null-spatial model
fprintf('%s', '## Download expression data for the null-spatial model (~1.5G) ...');
outfilename = websave(fullfile(filepath, 'src', 'gene_expression_spin.zip'), ...
'https://www.dropbox.com/s/nwmtqro3dkma3u1/gene_expression_spin.zip?dl=1');
unzip(outfilename, fullfile(filepath, 'src'));
delete(outfilename);
fprintf('%s\n', 'finished');