Commit c4836fb5 authored by Kevin Kunzmann's avatar Kevin Kunzmann

...

parent 32a97b06
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
output output
logs logs
nohup.out nohup.out
container.sif
*.sif
*.html
.DS_Store .DS_Store
.Rproj.user .Rproj.user
...@@ -20,15 +20,14 @@ From: rocker/verse:3.6.2 ...@@ -20,15 +20,14 @@ From: rocker/verse:3.6.2
apt-get update && apt-get -y install google-cloud-sdk apt-get update && apt-get -y install google-cloud-sdk
# install python3 and snakemake # install python3 and snakemake
apt-get -y install \ apt-get -y install python3 python3-pip
python3 python3-pip pip3 install snakemake==5.10.0
pip3 install snakemake
# install bcftools # install bcftools
export BCFVER=1.10.2 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-$BCFVER.tar.bz2 wget https://github.com/samtools/bcftools/releases/download/$BCFVER/bcftools-$BCFVER.tar.bz2
tar -xvjf bcftools-$BCFVER.tar.bz2 tar -xvjf bcftools-$BCFVER.tar.bz2
cd bcftools-$BCFVER cd bcftools-$BCFVER
./configure --prefix=/usr/bcftools ./configure --prefix=/usr/bcftools
...@@ -36,21 +35,21 @@ From: rocker/verse:3.6.2 ...@@ -36,21 +35,21 @@ From: rocker/verse:3.6.2
make install make install
(cd /usr/bin; ln -s /usr/bcftools/bin/bcftools bcftools) (cd /usr/bin; ln -s /usr/bcftools/bin/bcftools bcftools)
# install PrediXcan and python dependencies (uses python 2.7) # download metaxcan/predixcan at exact hash and make executable
apt-get -y install \ (cd /usr; git clone https://github.com/hakyimlab/MetaXcan; cd MetaXcan; git checkout 72e8c94edf31a4b261d29a7acf9a659804510e46)
wget python-pip ln -s /usr/MetaXcan/software/PrediXcan.py /usr/bin/predixcan
wget https://raw.githubusercontent.com/hakyimlab/PrediXcan/master/Software/PrediXcan.py -O /usr/bin/predixcan
chmod +x /usr/bin/predixcan chmod +x /usr/bin/predixcan
pip install \ # install dependencies
argparse datetime numpy pip3 install numpy==1.18.1 scipy==1.4.1 pandas==1.0.1 sqlalchemy==1.3.13
# download, extract and store (brain) weights # download, extract and store weights
mkdir /usr/predixcan mkdir -p /usr/MetaXcan/weights
wget https://zenodo.org/record/3518299/files/mashr_eqtl.tar?download=1 -O /usr/predixcan/mashr_eqtl.tar.gz wget https://zenodo.org/record/3518299/files/mashr_eqtl.tar?download=1 -O /usr/MetaXcan/weights/mashr_eqtl.tar
tar -C /usr/MetaXcan/weights/ -xvf /usr/MetaXcan/weights/mashr_eqtl.tar
rm /usr/MetaXcan/weights/mashr_eqtl.tar
# 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/MetaXcan
# install R packages # install R packages
Rscript /tmp/install.R Rscript /tmp/install.R
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