Commit 32a97b06 authored by Kevin Kunzmann's avatar Kevin Kunzmann

...

parent ccb8b3be
Bootstrap: docker Bootstrap: docker
From: ubuntu:18.04 From: rocker/verse:3.6.2
%files
install.R /tmp/install.R
%post %post
# non-interactive debconf # non-interactive debconf
...@@ -22,11 +25,12 @@ From: ubuntu:18.04 ...@@ -22,11 +25,12 @@ From: ubuntu:18.04
pip3 install snakemake pip3 install snakemake
# install bcftools # install bcftools
export BCFVER=1.10.2
apt-get -y install \ apt-get -y install \
gcc wget make zlib1g zlib1g-dev libbz2-dev liblzma-dev libcurl4-openssl-dev gcc wget make zlib1g zlib1g-dev libbz2-dev liblzma-dev libcurl4-openssl-dev
wget https://github.com/samtools/bcftools/releases/download/1.9/bcftools-1.9.tar.bz2 wget https://github.com/samtools/bcftools/releases/download/1.9/bcftools-$BCFVER.tar.bz2
tar -xvjf bcftools-1.9.tar.bz2 tar -xvjf bcftools-$BCFVER.tar.bz2
cd bcftools-1.9 cd bcftools-$BCFVER
./configure --prefix=/usr/bcftools ./configure --prefix=/usr/bcftools
make make
make install make install
...@@ -42,22 +46,11 @@ From: ubuntu:18.04 ...@@ -42,22 +46,11 @@ From: ubuntu:18.04
# download, extract and store (brain) weights # download, extract and store (brain) weights
mkdir /usr/predixcan mkdir /usr/predixcan
wget https://s3.amazonaws.com/predictdb2/GTEx-V7_HapMap-2017-11-29.tar.gz -O /usr/predixcan/GTEx-V7_HapMap-2017-11-29.tar.gz wget https://zenodo.org/record/3518299/files/mashr_eqtl.tar?download=1 -O /usr/predixcan/mashr_eqtl.tar.gz
(cd /usr/predixcan; \
mkdir GTEx-V7_HapMap-2017-11-29; \
# we only need the brain tissue weights:
tar -xvz -f GTEx-V7_HapMap-2017-11-29.tar.gz -C GTEx-V7_HapMap-2017-11-29 --wildcards "*_Brain_*"; \
rm GTEx-V7_HapMap-2017-11-29.tar.gz \
)
# predixcan connects to the weights database with sql, needs write permission # predixcan connects to the weights database with sql, needs write permission
# even if the file system will be read only for the container # even if the file system will be read only for the container
chmod -R 777 /usr/predixcan chmod -R 777 /usr/predixcan
# install R and packages # install R packages
apt-get -y install r-base Rscript /tmp/install.R
Rscript -e "install.packages('dplyr')"
Rscript -e "install.packages('yaml')"
Rscript -e "install.packages('purrr')"
Rscript -e "install.packages('readr')"
Rscript -e "install.packages('tidyr')"
options(
repos = list(
"https://mran.revolutionanalytics.com/snapshot/2020-03-01/"
)
)
install.packages("tidyverse")
install.packages("pander")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment