-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSingularity
64 lines (54 loc) · 1.95 KB
/
Singularity
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
64
BootStrap: docker
From: ubuntu:16.04
%help
This container runs R.
%labels
Maintainer Kwangbom (KB) Choi, Ph.D.
%apprun R
exec R "${@}"
%apprun Rscript
exec Rscript "${@}"
%runscript
exec R "${@}"
%post
mkdir -p /scratch/global /scratch/local /rcc/stor1/refdata /rcc/stor1/projects /rcc/stor1/depts /extR/library1 /extR/library2
apt-get update
apt-get -y install \
wget \
build-essential \
software-properties-common \
apt-transport-https \
locales \
libv8-dev \
libhdf5-serial-dev
echo "LC_ALL=en_US.UTF-8" >> /etc/environment
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
locale-gen en_US.UTF-8
echo 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/' >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 51716619E084DAB9
add-apt-repository -y "ppa:marutter/rrutter3.5"
add-apt-repository -y "ppa:marutter/c2d4u3.5"
apt-get update
apt-get -y install --no-install-recommends --allow-unauthenticated\
r-base \
r-base-core \
r-base-dev \
r-recommended \
r-base-html \
r-doc-html \
r-cran-devtools \
r-cran-rcpp \
r-cran-rcppparallel \
r-cran-bh
apt-get clean
mkdir -p $HOME/.R/
echo "CXX14FLAGS=-O3 -march=native -mtune=native -fPIC\n" >> $HOME/.R/Makevars
Rscript -e "install.packages('rstan')"
Rscript -e "install.packages('rstanarm')"
Rscript -e "install.packages('brms')"
Rscript -e "install.packages('hdf5r')"
Rscript -e "devtools::install_github('mojaveazure/loomR', ref='develop')"
Rscript -e "devtools::install_github('churchill-lab/scRATE', dep=FALSE, build_vignettes=TRUE)"
rm -rf /var/lib/apt/lists/*
echo "options(repos = c(CRAN = 'https://cloud.r-project.org/'), download.file.method = 'libcurl')" >> /usr/lib/R/etc/Rprofile.site