-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.sh
35 lines (27 loc) · 1022 Bytes
/
setup.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
#!/usr/bin/env bash
#
set -euo pipefail
# Install Java
#sudo apt install openjdk-8-jdk
#echo export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64" >> ~/.profile
#. ~/.profile
# Install conda
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo export PATH="$HOME/miniconda/bin:\$PATH" >> ~/.profile
. ~/.profile
# Install R
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo apt update
sudo apt-get update
sudo apt-get -y install r-base-core
sudo apt-get -y install libxml2-dev libssl-dev libcurl4-openssl-dev
# Install parallel
sudo apt install parallel
# Install coloc - Need to open R as sudo and run these commands
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
# BiocManager::install("snpStats")
# install.packages('coloc')
echo COMPLETE