remyd1/ubuntu-r-base:src-bioconductor
$ singularity pull shub://remyd1/ubuntu-r-base:src-bioconductor
Singularity Recipe
Bootstrap: docker
From: ubuntu:16.04
Registry: index.docker.io
Namespace: library
IncludeCmd: yes
%environment
R_VERSION=3.4.3
export R_VERSION
R_CONFIG_DIR=/etc/R/
export R_CONFIG_DIR
%labels
Author Jimmy Lopez
Update Remy Dernat
Version v0.0.2
R_Version 3.4.3
build_date 2018 Feb 09
R_bioconductor True
%apprun R
exec R "$@"
%apprun Rscript
exec Rscript "$@"
%runscript
exec R "$@"
%post
NPROCS=`awk '/^processor/ {s+=1}; END{print s}' /proc/cpuinfo`
apt-get update --fix-missing
apt-get install -y wget
cd $HOME
wget https://cran.rstudio.com/src/base/R-3/R-3.4.3.tar.gz
tar xvf R-3.4.3.tar.gz
cd R-3.4.3
apt-get install -y libblas3 libblas-dev liblapack-dev liblapack3 curl
apt-get install -y gcc fort77 aptitude
aptitude install -y g++
aptitude install -y xorg-dev
aptitude install -y libreadline-dev
aptitude install -y gfortran
gfortran --version
apt install -y libssl-dev libxml2-dev libpcre3-dev liblzma-dev libbz2-dev libcurl4-openssl-dev
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 --version
ln -s /usr/local/bin/R /usr/bin/R
ln -s /usr/local/bin/Rscript /usr/bin/Rscript
# installing some packages
echo install.packages\(\"devtools\"\, repos\=\'https://cloud.r-project.org\'\, Ncpus\=${NPROCS}\) | R --slave
echo install.packages\(\"ade4\"\, repos\=\'https://cloud.r-project.org\'\, Ncpus\=${NPROCS}\) | R --slave
echo install.packages\(\"ape\"\, repos\=\'https://cloud.r-project.org/\'\, Ncpus\=${NPROCS}\) | R --slave
echo install.packages\(\"FD\"\, repos\=\'https://cloud.r-project.org/\'\, Ncpus\=${NPROCS}\) | R --slave
R --slave "devtools::install_github('igraph/rigraph')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); \
biocLite()"
R --slave -e "source('https://bioconductor.org/biocLite.R'); \
biocLite('dada2')"
R --slave -e "source('https://bioconductor.org/biocLite.R'); \
biocLite('phyloseq')"
Collection
- Name: remyd1/ubuntu-r-base
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/remyd1-ubuntu-r-base-src-bioconductor |
collection name | remyd1/ubuntu-r-base |
branch | master |
tag | src-bioconductor |
commit | 775c858beb7dd85749e23c838a835a01bdb6b0a8 |
version (container hash) | 73e5d4b959522469bda3b4b15788fe44 |
build date | 2018-04-13T04:44:03.678Z |
size (MB) | 1315 |
size (bytes) | 479879199 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.