File: Dockerfile

package info (click to toggle)
sga 0.10.15-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 63,048 kB
  • sloc: cpp: 48,538; ansic: 2,035; python: 1,036; perl: 744; makefile: 349; sh: 185
file content (74 lines) | stat: -rw-r--r-- 2,268 bytes parent folder | download | duplicates (4)
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
64
65
66
67
68
69
70
71
72
73
74
# SGA docker
# Version 0.1
# Runs SGA ( http://github.com/jts/sga ) 
#
# Creates SGA-in-a-docker, such that you can run the dockerized SGA
# much as you would run the local SGA executable.
# 
# To build:
#    docker build -t sga-docker [path containing DOCKERFILE]
# if the Dockerfile is local, otherwise:
#    docker build -t sga-docker github.com/jts/sga
#    
# Once built, you can invoke sga-docker as you would sga, eg:
#    docker run -v /path/to/local/data/data/:/data/ \
#       sga-docker somatic-variant-filters --annotate-only --threads=2 \
#        --tumor-bam=/data/tumor.bam --normal-bam=/data/normal.bam \
#        --reference=/data/reference.fa /data/input.vcf
#
# You can also invoke other sga scripts, such as sga-preqc-report:
#   docker run -v /path/of/sga/repo:/data/ \
#       --entrypoint /src/sga-0.10.14/src/bin/sga-preqc-report.py \
#       sga-docker /data/src/examples/preqc/{bird,fish,human,oyster,snake,yeast}.preqc
#
FROM ubuntu:14.04
MAINTAINER Jonathan Dursi <Jonathan.Dursi@oicr.on.ca> 
LABEL Description="Runs SGA variant annotation on candidate indels against tumour and normal bams" Vendor="OICR" Version="0.1"
VOLUME /data
WORKDIR /data

# get ubuntu packages
# incl python matplotlib for preqc
RUN apt-get update && \
    apt-get install -y \
        automake \
        autotools-dev \
        build-essential \
        cmake \
        libhts-dev \
        libhts0 \
        libjemalloc-dev \
        libsparsehash-dev \
        libz-dev \
        python-matplotlib \
        wget \
        zlib1g-dev 

# build remaining dependencies:
# bamtools
RUN mkdir -p /deps && \
    cd /deps && \
    wget https://github.com/pezmaster31/bamtools/archive/v2.4.0.tar.gz && \
    tar -xzvf v2.4.0.tar.gz && \
    rm v2.4.0.tar.gz && \
    cd bamtools-2.4.0 && \
    mkdir build && \
    cd build && \
    cmake .. && \
    make

# build SGA
RUN mkdir -p /src && \
    cd /src && \
    wget https://github.com/jts/sga/archive/v0.10.14.tar.gz && \
    tar -xzvf v0.10.14.tar.gz && \
    rm v0.10.14.tar.gz && \
    cd sga-0.10.14/src && \
    ./autogen.sh && \
    ./configure --with-bamtools=/deps/bamtools-2.4.0 --with-jemalloc=/usr --prefix=/usr/local && \
    make && \
    make install


ENTRYPOINT ["/usr/local/bin/sga"]
CMD ["--help"]