-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathphyloSI-RakaiAgeGender-install.sh
executable file
·39 lines (33 loc) · 2.14 KB
/
phyloSI-RakaiAgeGender-install.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
#!/bin/bash
echo "=========================================\n\n
phyloSI-RakaiAgeGender: begin installation\n\n"
# Create new conda environment called "phyloSI-RakaiAgeGender"
if [ -d $HOME/anaconda3/envs/phyloSI-RakaiAgeGender ]; then
echo "###############################################"
echo -e "\nphyloSI-RakaiAgeGender conda environment is already present"
echo -e "\nIf you wish you re-install please remove the conda environment first with:"
echo -e "\tconda remove -n phyloSI-RakaiAgeGender --all -y"
echo -e "\n\n###############################################"
exit 1
else
echo -e "\nCreating Conda environment: phyloSI-RakaiAgeGender"
conda create -n phyloSI-RakaiAgeGender -y
source activate phyloSI-RakaiAgeGender
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib:$LD_LIBRARY_PATH
fi
# Install base R
echo "\n\n=========================================\n\n
Installing compilers and base R\n\n"
conda install -c conda-forge compilers r r-essentials r-devtools
# Note if the below fails with nonzero exit status and error message the libgfortran is not
# found at the Linker path, you may need to copy the libraries as follows
# cp $CONDA_PREFIX/lib/libgfortran.* $CONDA_PREFIX/lib/gcc/arm64-apple-darwin20.0.0/11.3.0/
# Install R dependencies
echo "\n\n=========================================\n\n
Installing R dependencies\n\n"
R -e 'options(unzip = "internal");install.packages(c("data.table","dplyr","ggplot2","rstan","stringi","extraDist","plyr","coda","LaplacesDemon","mvtnorm","R.utils","prodlim","ggpubr","broom","matrixStats","ggnewscale","doParallel","foreach","lognorm","ggExtra","Hmisc","knitr","Matrix","scales","gridgraphics","cowplot","abind","ggrepel","truncnorm","invgamma","sna","lubridate","tidyverse","MASS","gridExtra","GGally","ggnetwork","binom","igraph","bh","bayesplot","loo","hexbin","purrr","viridis","yaml","here", "patchwork", "ggplotify", "ggpattern"), repos = c("http://cran.us.r-project.org","http://cran.ma.imperial.ac.uk"))'
echo "=========================================\n\n
phyloSI-RakaiAgeGender: completed installation.\n
For next steps see\n
https://github.com/MLGlobalHealth/phyloSI-RakaiAgeGender
"