generated from Bioconductor/BuildABiocWorkshop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 1.38 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
FROM bioconductor/bioconductor_docker:devel AS IntroductionToGenomicsWorkshop
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
gawk \
samtools \
bcftools \
bwa \
wget \
less \
&& rm -rf /var/lib/apt/lists/*
RUN wget https://github.com/Illumina/strelka/releases/download/v2.9.10/strelka-2.9.10.centos6_x86_64.tar.bz2 \
&& tar xvf strelka-2.9.10.centos6_x86_64.tar.bz2 \
&& cd strelka-2.9.10.centos6_x86_64 \
&& cp -r * /usr/ \
&& cd .. \
&& rm -r strelka-2.9.10.centos6_x86_64*
# Create reference genome
WORKDIR /home/rstudio/colo829
RUN wget http://hgdownload.cse.ucsc.edu/goldenpath/hg19/chromosomes/chr7.fa.gz \
&& gunzip chr7.fa.gz \
&& samtools faidx chr7.fa \
&& bwa index chr7.fa
# Get rfPred reference data
WORKDIR /home/rstudio/rfPred
RUN wget http://www.sbim.fr/rfPred/all_chr_rfPred.txtz && \
wget http://www.sbim.fr/rfPred/all_chr_rfPred.txtz.tbi
WORKDIR /home/rstudio
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); BiocManager::install(c('TxDb.Hsapiens.UCSC.hg19.knownGene', 'BSgenome.Hsapiens.UCSC.hg19', 'PolyPhen.Hsapiens.dbSNP131', 'VariantAnnotation', 'BioBase', 'tidyverse', 'rfPred'), ask=FALSE)"
COPY --chown=rstudio:rstudio . /home/rstudio/
RUN Rscript -e "options(repos = c(CRAN = 'https://cran.r-project.org')); devtools::install('.', dependencies=TRUE, build_vignettes=TRUE, repos = BiocManager::repositories())"