|
| 1 | +## build env ## |
| 2 | +FROM ubuntu:24.04 AS build |
| 3 | + |
| 4 | +# get necessary libs |
| 5 | +RUN apt-get update && \ |
| 6 | + apt install -y make wget gcc bzip2 libz-dev libbz2-dev liblzma-dev libcurl4-openssl-dev build-essential python3-dev pip libtool cmake git zlib1g-dev openjdk-11-jdk bash |
| 7 | + |
| 8 | +# samtools |
| 9 | +RUN wget -O- "https://github.com/samtools/samtools/releases/download/1.21/samtools-1.21.tar.bz2" | tar -xj && \ |
| 10 | + cd samtools-* && \ |
| 11 | + ./configure --without-curses && \ |
| 12 | + make && \ |
| 13 | + make install |
| 14 | + |
| 15 | +# htslib |
| 16 | +RUN wget -O- "https://github.com/samtools/htslib/releases/download/1.20/htslib-1.20.tar.bz2" | tar -xj && \ |
| 17 | + cd htslib-* && \ |
| 18 | + ./configure && \ |
| 19 | + make && \ |
| 20 | + make install |
| 21 | + |
| 22 | +# minimap2 |
| 23 | +RUN wget -O- "https://github.com/lh3/minimap2/archive/refs/tags/v2.28.tar.gz" | tar -zx && \ |
| 24 | + cd minimap2-* && \ |
| 25 | + make && \ |
| 26 | + chmod a+x minimap2 && \ |
| 27 | + mv minimap2 /usr/local/bin/ |
| 28 | + |
| 29 | +# mosdepth |
| 30 | +RUN wget "https://github.com/brentp/mosdepth/releases/download/v0.3.9/mosdepth" && \ |
| 31 | + chmod a+x mosdepth && \ |
| 32 | + mv mosdepth /usr/local/bin/ |
| 33 | + |
| 34 | +# bcftools |
| 35 | +RUN wget -O- "https://github.com/samtools/bcftools/releases/download/1.21/bcftools-1.21.tar.bz2" | tar -xj && \ |
| 36 | + cd bcftools-* && \ |
| 37 | + make && \ |
| 38 | + make install && \ |
| 39 | + mkdir -p /usr/local/libexec/bcftools/ && \ |
| 40 | + mv /bcftools-1.21/plugins/* /usr/local/libexec/bcftools/ |
| 41 | + |
| 42 | +# whatshap |
| 43 | +RUN pip install whatshap==2.3 --break-system-packages |
| 44 | + |
| 45 | +# minimod |
| 46 | +RUN wget -O- "https://github.com/warp9seq/minimod/releases/download/v0.3.0/minimod-v0.3.0-release.tar.gz" | tar -xz && \ |
| 47 | + cd minimod-* && \ |
| 48 | + ./scripts/install-hts.sh && \ |
| 49 | + make && \ |
| 50 | + mv minimod /usr/local/bin/ |
| 51 | + |
| 52 | +# kentutils (bedGraphToBigWig only) |
| 53 | +RUN wget "http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/bedGraphToBigWig" && \ |
| 54 | + chmod a+x bedGraphToBigWig && \ |
| 55 | + mv bedGraphToBigWig /usr/local/bin/ |
| 56 | + |
| 57 | +# cutesv |
| 58 | +RUN pip install cuteSV==2.1.1 --break-system-packages |
| 59 | + |
| 60 | +# sniffles |
| 61 | +RUN pip install sniffles==2.6.0 --break-system-packages |
| 62 | + |
| 63 | +# somalier |
| 64 | +RUN wget "https://github.com/brentp/somalier/releases/download/v0.2.19/somalier" && \ |
| 65 | + chmod a+x somalier && \ |
| 66 | + mv somalier /usr/local/bin/ |
| 67 | + |
| 68 | +# spectre |
| 69 | +RUN pip install spectre-cnv==0.2.1 --break-system-packages |
| 70 | + |
| 71 | +# snf2json |
| 72 | +RUN pip install snf2json==0.1.0 --break-system-packages |
| 73 | + |
| 74 | +# bedtools |
| 75 | +RUN wget "https://github.com/arq5x/bedtools2/releases/download/v2.31.0/bedtools.static" && \ |
| 76 | + chmod a+x bedtools.static && \ |
| 77 | + mv bedtools.static /usr/local/bin/bedtools |
| 78 | + |
| 79 | +# racon |
| 80 | +RUN git clone --recursive https://github.com/lbcb-sci/racon.git racon && \ |
| 81 | + cd racon && \ |
| 82 | + git checkout tags/1.4.3 && \ |
| 83 | + git submodule update --init --recursive && \ |
| 84 | + mkdir build && \ |
| 85 | + cd build && \ |
| 86 | + cmake -DCMAKE_BUILD_TYPE=Release .. && \ |
| 87 | + make |
| 88 | + |
| 89 | +# jasmine |
| 90 | +RUN git clone --recurse-submodules https://github.com/bioinfomethods/Jasmine.git && \ |
| 91 | + cd Jasmine && \ |
| 92 | + git checkout tags/1.1.5-r1 && \ |
| 93 | + ./build_jar.sh && \ |
| 94 | + sed -i '1s|^.*$|#!/bin/bash|' jasmine |
| 95 | + |
| 96 | +## deploy env ## |
| 97 | +FROM ubuntu:24.04 AS deploy |
| 98 | +LABEL name="pipeface" |
| 99 | +LABEL description="docker image containing most software required for pipeface" |
| 100 | +LABEL version="0.0.1" |
| 101 | +LABEL maintainer.name="Leah Kemp" |
| 102 | +LABEL maintainer.email="leahmhkemp@gmail.com" |
| 103 | + |
| 104 | +# get necessary libs |
| 105 | +RUN apt-get update && \ |
| 106 | + apt install -y python3-dev libcurl4-openssl-dev openjdk-11-jdk |
| 107 | + |
| 108 | +# copy required compiled tools |
| 109 | +COPY --from=build \ |
| 110 | + /usr/local/bin/samtools \ |
| 111 | + /usr/local/bin/bgzip \ |
| 112 | + /usr/local/bin/tabix \ |
| 113 | + /usr/local/bin/minimap2 \ |
| 114 | + /usr/local/bin/mosdepth \ |
| 115 | + /usr/local/bin/bcftools \ |
| 116 | + /usr/local/bin/whatshap \ |
| 117 | + /usr/local/bin/minimod \ |
| 118 | + /usr/local/bin/bedGraphToBigWig \ |
| 119 | + /usr/local/bin/cuteSV \ |
| 120 | + /usr/local/bin/sniffles \ |
| 121 | + /usr/local/bin/somalier \ |
| 122 | + /usr/local/bin/spectre \ |
| 123 | + /usr/local/bin/snf2json \ |
| 124 | + /usr/local/bin/bedtools \ |
| 125 | + /racon/build/bin/racon \ |
| 126 | + /Jasmine/jasmine \ |
| 127 | + /Jasmine/jasmine.jar \ |
| 128 | + /Jasmine/jasmine_iris.jar \ |
| 129 | + /usr/local/bin/ |
| 130 | + |
| 131 | +COPY --from=build \ |
| 132 | + /usr/local/libexec/bcftools/* \ |
| 133 | + /usr/local/libexec/bcftools/ |
| 134 | + |
| 135 | +COPY --from=build \ |
| 136 | + /usr/local/lib/ \ |
| 137 | + /usr/local/lib/ |
| 138 | + |
0 commit comments