Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
impute-gene-expression
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Kevin Kunzmann
impute-gene-expression
Commits
32a97b06
Commit
32a97b06
authored
Mar 05, 2020
by
Kevin Kunzmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
ccb8b3be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
18 deletions
+19
-18
scripts/container.def
scripts/container.def
+11
-18
scripts/install.R
scripts/install.R
+8
-0
No files found.
scripts/container.def
View file @
32a97b06
Bootstrap: docker
From: ubuntu:18.04
From: rocker/verse:3.6.2
%files
install.R /tmp/install.R
%post
# non-interactive debconf
...
...
@@ -22,11 +25,12 @@ From: ubuntu:18.04
pip3 install snakemake
# install bcftools
export BCFVER=1.10.2
apt-get -y install \
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
tar -xvjf bcftools-
1.9
.tar.bz2
cd bcftools-
1.9
wget https://github.com/samtools/bcftools/releases/download/1.9/bcftools-
$BCFVER
.tar.bz2
tar -xvjf bcftools-
$BCFVER
.tar.bz2
cd bcftools-
$BCFVER
./configure --prefix=/usr/bcftools
make
make install
...
...
@@ -42,22 +46,11 @@ From: ubuntu:18.04
# download, extract and store (brain) weights
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
(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 \
)
wget https://zenodo.org/record/3518299/files/mashr_eqtl.tar?download=1 -O /usr/predixcan/mashr_eqtl.tar.gz
# predixcan connects to the weights database with sql, needs write permission
# even if the file system will be read only for the container
chmod -R 777 /usr/predixcan
# install R and packages
apt-get -y install r-base
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')"
# install R packages
Rscript /tmp/install.R
scripts/install.R
0 → 100644
View file @
32a97b06
options
(
repos
=
list
(
"https://mran.revolutionanalytics.com/snapshot/2020-03-01/"
)
)
install.packages
(
"tidyverse"
)
install.packages
(
"pander"
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment