forked from AllenInstitute/MicronsBinder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostBuild
63 lines (55 loc) · 2.53 KB
/
postBuild
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
59
60
61
62
63
home=$( pwd )
mkdir $HOME/.jupyter
echo "c.NotebookApp.iopub_data_rate_limit=1e22" >> $HOME/.jupyter/jupyter_notebook_config.py
jupyter nbextension install --py --sys-prefix itkwidgets
jupyter nbextension enable --py --sys-prefix itkwidgets
cd /tmp/
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build
jupyter labextension install jupyter-matplotlib jupyterlab-datawidgets jupyter-webrtc itkwidgets --no-build
jupyter labextension install jupyterlab-dash --no-build
jupyter lab build --minimize=False # minimize uses too much memory
cd $home
# intro
introdir="notebooks/intro/data"
mkdir -p ${introdir}
wget -q -O ${introdir}/pni_synapses_v185.csv "https://zenodo.org/record/3710459/files/pni_synapses_v185.csv?download=1"
wget -q -O ${introdir}/soma_valence_v185.csv "https://zenodo.org/record/3710459/files/soma_valence_v185.csv?download=1"
wget -q -O ${introdir}/soma_subgraph_synapses_spines_v185.csv "https://zenodo.org/record/3710459/files/soma_subgraph_synapses_spines_v185.csv?download=1"
# multiscale/data - common data used for multiscale manuscript analyses
datadir="notebooks/multiscale/data"
mkdir -p ${datadir}
cd ${datadir} \
&& gdown --id 1Tpa-p7rwOZ65rIwDPbm4famUFtqhbqOK -O smoothed_skeletons_v185.tgz \
&& tar -xzf smoothed_skeletons_v185.tgz
cd $home
# multiscale/function
funcdir="notebooks/multiscale/function/data"
mkdir -p ${funcdir}
cd ${funcdir} \
&& gdown --id 13gR7WiCZc3EZYQnm2ku9Quif1l2SQ4KT -O pyc_pyc_subgraph.csv \
&& gdown --id 1k4qIfgMRgBb3y_-I7XtmaJClgS7LfWTq -O pyc_all_synapse.csv \
&& gdown --id 1NIJWcGZCDrKRWIR_AxOyDe18YuZXnnsn -O function_data_tables.tgz \
&& tar -xzf function_data_tables.tgz
cd $home
# multiscale/mitochondria
mitodir="notebooks/multiscale/mitochondria/data"
mkdir -p ${mitodir}
cd ${mitodir} \
&& gdown --id 1Nhucb9SHVOtnPRAz27IYkjH0qjEctGOJ -O multiscale_mito_intermediate_data.tgz \
&& tar -xzf multiscale_mito_intermediate_data.tgz
cd $home
# multiscale/motifs
motifdir="notebooks/multiscale/motifs/"
cd ${motifdir} \
&& gdown --id 1l4XomQr7-T09VBYQasuTir66BnO9S7nw -O multiscale_motif_base_data.tgz \
&& tar -xzf multiscale_motif_base_data.tgz \
&& gdown --id 1SIRrG8KuobgjuByBHxRt11qkM_Fj7JSN -O multiscale_motif_intermediate_data.tgz \
&& tar -xzf multiscale_motif_intermediate_data.tgz
cd $home
# multiscale/resource_statistics
resourcedir="notebooks/multiscale/resource_statistics/data"
mkdir -p ${resourcedir}
cd ${resourcedir} \
&& gdown --id 1ySLt-oHT_r7YaVH34kYgCDQlDrBwawi7 -O multiscale_resource_intermediate_data.tgz \
&& tar -xzf multiscale_resource_intermediate_data.tgz
cd $home