-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
63 lines (49 loc) · 2.45 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Zika-seq Docker container adapted from Nick Loman's <[email protected]> zibra/zibra
FROM ubuntu:16.04
MAINTAINER Trevor Bedford
# base software
RUN apt-get update
RUN apt-get install -y git build-essential wget zlib1g-dev vim libncurses5-dev
# python and python dependencies
RUN apt-get install -y python python-pip
RUN pip install pysam pyvcf biopython
# Add Python3 for snakemake and plot_coverage.py for illumina run
RUN apt-get install -y python3 python3-pip
RUN pip3 install snakemake
RUN pip3 install pandas
# create working directory
RUN mkdir /zibra
WORKDIR /zibra/
# nanopolish
RUN git clone --recursive https://github.com/jts/nanopolish.git && cd nanopolish && make -j8
# BWA
RUN git clone --recursive https://github.com/lh3/bwa && cd bwa && make -j8
# samtools
RUN wget https://github.com/samtools/samtools/releases/download/1.3.1/samtools-1.3.1.tar.bz2 && tar xvjf samtools-1.3.1.tar.bz2 && cd samtools-1.3.1 && make
# R9.4 models for nanopolish
RUN mkdir models && cd models && wget http://s3.climb.ac.uk/nanopore/nanopolish_r94models.tar && tar xvf nanopolish_r94models.tar
# Smith-Waterman library
RUN git clone https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library.git && cd Complete-Striped-Smith-Waterman-Library/src && make
# basecalling setup
RUN wget -O- https://mirror.oxfordnanoportal.com/apt/ont-repo.pub | apt-key add -
RUN echo "deb http://mirror.oxfordnanoportal.com/apt trusty-stable non-free" | tee /etc/apt/sources.list.d/nanoporetech.sources.list
RUN apt-get install apt-transport-https
RUN apt-get update
COPY basecall/python3-ont-albacore_1.0.4-1-xenial_all.deb /tmp/
RUN dpkg -i /tmp/python3-ont-albacore_1.0.4-1-xenial_all.deb || true
RUN apt-get -y -f install
RUN dpkg -i /tmp/python3-ont-albacore_1.0.4-1-xenial_all.deb
# R
RUN apt-get install -y r-base --fix-missing
RUN su - -c "R -e \"install.packages('argparse', repos = 'http://cran.rstudio.com/')\""
RUN su - -c "R -e \"install.packages('reshape', repos = 'http://cran.rstudio.com/')\""
# zibra pipeline
RUN git clone https://github.com/blab/zika-seq
WORKDIR /zibra/zika-seq/pipeline/
# update
ADD https://script.google.com/macros/s/AKfycbyd5AcbAnWi2Yn0xhFRbyzS4qMq1VucMVgVvhul5XqS9HkAyJY/exec /tmp/bustcache
RUN git pull
# environmental variables
ENV PATH $PATH:/zibra/nanopolish:/zibra/bwa:/zibra/samtools-1.3.1:/zibra/zika-pipeline/scripts
ENV PYTHONPATH /zibra/Complete-Striped-Smith-Waterman-Library/src
ENV LD_LIBRARY_PATH /zibra/Complete-Striped-Smith-Waterman-Library/src