-
Notifications
You must be signed in to change notification settings - Fork 1
/
main_script.sh
41 lines (31 loc) · 961 Bytes
/
main_script.sh
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
#!/bin/bash
# This script will call the other scripts
# create the environments
cd environments
source create_envs.sh
cd ../
# Download the data
conda activate NIH_env
cd 0.download_data
jupyter nbconvert --to=script --FilesWriter.build_directory=scripts/ notebooks/*.ipynb
cd scripts
python 0.download_data.py
# Clean the data
cd ../../1.clean_data
jupyter nbconvert --to=script --FilesWriter.build_directory=scripts/ notebooks/*.ipynb
cd scripts
python 0.clean_data.py
cd ../../
# Deploy the RShiny app
cd 2.deploy_RShiny
jupyter nbconvert --to=script --FilesWriter.build_directory=scripts/ notebooks/*.ipynb
conda deactivate
conda activate NIH_R_env
cd scripts
# make sure to input key and secret in the script before running
# do not commit the key and secret to the repository
# the key and secret if committed will be public and can be used by anyone
Rscript 1.deploy_shiny_app.r
cd ../../
conda deactivate
echo "All scripts have been executed"