-
Notifications
You must be signed in to change notification settings - Fork 88
/
Dockerfile
49 lines (36 loc) · 1.67 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
# Zibra pipeline Docker container
FROM ubuntu:16.04
MAINTAINER Nick Loman <[email protected]>
# 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 clint
# Add Python3 for snakemake and plot_coverage.py for illumina run
RUN apt-get install -y python3 python3-pip
RUN pip3 install snakemake pandas
# create working directory
RUN mkdir /zibra
WORKDIR /zibra/
# BWA
RUN git clone --recursive https://github.com/lh3/bwa && cd bwa && make -j8
# samtools
RUN apt-get install -y libbz2-dev liblzma-dev && wget https://github.com/samtools/samtools/releases/download/1.4/samtools-1.4.tar.bz2 && tar xvjf samtools-1.4.tar.bz2 && cd samtools-1.4 && make
# Smith-Waterman library
RUN git clone https://github.com/mengyao/Complete-Striped-Smith-Waterman-Library.git && cd Complete-Striped-Smith-Waterman-Library/src && make
# Poretools
RUN pip install git+https://github.com/arq5x/poretools.git@basecaller-choice
# porechop branch
RUN pip3 install git+https://github.com/rrwick/Porechop.git
# version - cache bust
ADD HISTORY /zibra/HISTORY
# nanopolish
RUN git clone --recursive https://github.com/jts/nanopolish/ && cd nanopolish && git checkout tags/v0.8.4 && make -j4
# zibra pipeline
RUN git clone https://github.com/zibraproject/zika-pipeline
WORKDIR /zibra/zika-pipeline/
# environmental variables
ENV PATH $PATH:/zibra/nanopolish:/zibra/bwa:/zibra/samtools-1.4:/zibra/zika-pipeline/scripts
ENV PYTHONPATH /zibra/Complete-Striped-Smith-Waterman-Library/src
ENV LD_LIBRARY_PATH /zibra/Complete-Striped-Smith-Waterman-Library/src