-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathset_up_AWS.instance.sh
32 lines (26 loc) · 1.19 KB
/
set_up_AWS.instance.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
### start a AWS EC2 instance with Debian system (at least 4CUP and 32GB mem)
### apt-get install packages
sudo apt-get update
### install
sudo apt-get install -y --no-install-recommends build-essential r-base r-cran-randomforest python3.6 python3-pip python3-setuptools python3-dev git time bash wget make bedtools vim
### install GSL
mkdir /home/admin/gsl
cd /home/admin/gsl/ && mkdir /home/admin/gsl/gsl && cd /home/admin/gsl/gsl && wget ftp://ftp.gnu.org/gnu/gsl/gsl-2.2.1.tar.gz && tar -zxvf gsl-2.2.1.tar.gz && cd /home/admin/gsl/gsl/gsl-2.2.1 && mkdir /home/admin/gsl/gsl/gsl && ./configure --prefix=/home/admin/gsl/gsl/gsl && make && make check && make install
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/admin/gsl/gsl/gsl/lib/
### install python lib
pip3 install numpy
pip3 install scipy
pip3 install multiprocess
### install R lib in R
# open R in termianl
install.packages('data.table')
install.packages('doParallel')
install.packages('foreach')
### git clone S3V2-IDEAS
mkdir /home/admin/app
mkdir /home/admin/app/git
cd /home/admin/app/git
git clone https://github.com/guanjue/S3V2_IDEAS_ESMP.git
### test run
cd /home/admin/app/git/S3V2_IDEAS_ESMP/test_data
time bash run_S3V2_IDEAS_ESMP_AWS.sh