-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity
92 lines (78 loc) · 3.4 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
BootStrap: docker
From: ubuntu:16.04
%labels
AUTHOR Onur Yukselen <[email protected]>
Version v1.0
%environment
PATH=$PATH:/bin:/sbin
export PATH
%post
apt-get update
apt-get -y upgrade
apt-get dist-upgrade
apt-get -y install unzip libsqlite3-dev libbz2-dev libssl-dev python python-dev \
python-pip git libxml2-dev software-properties-common wget tree vim \
subversion g++ gcc gfortran libcurl4-openssl-dev curl
###################
## Python modules
###################
export LC_ALL=C
pip install --upgrade pip==9.0.3
pip install pysam
pip install numpy scipy biopython
###################
## JAVA
###################
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update && \
apt-get install -y oracle-java8-installer && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk8-installer
apt-get -y autoremove
###################
## NEXTFLOW
###################
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
mkdir /data && cd /data
curl -s https://get.nextflow.io | bash
mv /data/nextflow /usr/bin/.
mkdir /project /nl /share /.nextflow
#################
## R ##
#################
NPROCS=`awk '/^processor/ {s+=1}; END{print s}' /proc/cpuinfo`
cd /tmp
wget http://security.ubuntu.com/ubuntu/pool/main/i/icu/libicu52_52.1-3ubuntu0.8_amd64.deb
dpkg -i libicu52_52.1-3ubuntu0.8_amd64.deb
wget https://cran.rstudio.com/src/base/R-3/R-3.5.1.tar.gz
tar xvf R-3.5.1.tar.gz
cd /tmp/R-3.5.1
apt-get update
apt-get install -y libblas3 libblas-dev liblapack-dev liblapack3 ghostscript libicu52
apt-get install -y libgmp10 libgmp-dev
apt-get install -y fort77 aptitude
aptitude install -y xorg-dev
aptitude install -y libreadline-dev
apt install -y libpcre3-dev liblzma-dev
apt-get update
apt-get install -y bioperl
apt-get update
./configure --enable-R-static-lib --with-blas --with-lapack --enable-R-shlib=yes
echo "Will use make with $NPROCS cores."
make -j${NPROCS}
make install
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite()"
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('scran')"
echo install.packages\(\"devtools\"\, dependencies = TRUE, repos\=\'https://cloud.r-project.org\'\, Ncpus\=${NPROCS}\) | R --slave
yes | apt-get install libmariadb-client-lgpl-dev
R --slave -e "library(devtools); devtools::install_github('davismcc/scater', build_vignettes = TRUE)"
echo install.packages\(\"rmarkdown\"\, dependencies = TRUE, repos\=\'https://cloud.r-project.org\'\, Ncpus\=${NPROCS}\) | R --slave
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('scater')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('BiocStyle')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('destiny')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('mvoutlier')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); biocLite('mvoutlier')"
R --slave -e "library(devtools); install_github('garber-lab/SignallingSingleCell')"
R --slave -e "library('SignallingSingleCell')"
R --slave -e "library('SingleCellExperiment')"