-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
39 lines (35 loc) · 2.18 KB
/
Dockerfile
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
FROM continuumio/miniconda3:latest
LABEL \
maintainer="Shixiang Wang" \
email="[email protected]" \
description="Docker Image for GCAP (Gene-level Circular Amplicon Prediction)" \
org.label-schema.license="Non-Commercial Academic License (c) Shixiang Wang, Qi Zhao; All commercial use is strictly prohibited and requires a commercial use licence." \
org.label-schema.vcs-url="https://github.com/ShixiangWang/gcap" \
org.opencontainers.image.source="https://github.com/ShixiangWang/gcap" \
org.opencontainers.image.description="Docker Image for GCAP (Gene-level Circular Amplicon Prediction)"
RUN apt update && apt install -y build-essential zip cmake libcairo2-dev &&\
apt autoremove -y && apt clean -y && apt purge -y && rm -rf /tmp/* /var/tmp/* &&\
conda install mamba -n base -c conda-forge &&\
mamba create -n cancerit -c bioconda -c conda-forge cancerit-allelecount &&\
mamba clean -yaf
# Install GCAP & deploy it
# XGBOOST should be <1.6
# The default path for conda in the container is /opt/conda
RUN mamba install -y -c conda-forge -c bioconda r-base=4.3 python=3.10 r-remotes r-biocmanager r-tidyverse r-sigminer sequenza-utils samtools tabix &&\
mamba clean -yaf &&\
R -e 'install.packages("https://cran.r-project.org/src/contrib/Archive/xgboost/xgboost_1.5.2.1.tar.gz", repos = NULL)' &&\
R -e 'BiocManager::install("jokergoo/GetoptLong", update = FALSE, force = TRUE)' &&\
R -e 'BiocManager::install("ShixiangWang/copynumber", update = FALSE, force = TRUE)' &&\
R -e 'BiocManager::install("ShixiangWang/facets", update = FALSE, force = TRUE)' &&\
R -e 'BiocManager::install("VanLoo-lab/ascat", subdir = "ASCAT", dependencies = TRUE, update = FALSE)' &&\
R -e 'BiocManager::install("ShixiangWang/gcap", dependencies = TRUE, update = FALSE)' &&\
cd /opt/conda/lib/R/library/facets/extcode/ &&\
g++ -std=c++11 -I/opt/conda/include snp-pileup.cpp -L/opt/conda/lib -lhts -Wl,-rpath=/opt/conda/lib -o snp-pileup &&\
ls -alh &&\
R -e 'gcap::deploy()' &&\
rm -rf /tmp/downloaded_packages &&\
ls -alh ~ &&\
echo "Deploy success!"
# Deploy
ENTRYPOINT [ "gcap" ]
CMD [ "--help" ]