-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update somalier and dependecies * update docs * fix security hotspot * restrict redirects * update docs * changelog
- Loading branch information
1 parent
ed830b1
commit 5e7bb88
Showing
6 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
- msisensorpro=1.2.0 | ||
- msisensorpro=1.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,75 @@ | ||
FROM alpine:3.11.5 | ||
|
||
LABEL base.image="alpine:3.11.5" | ||
LABEL about.home="https://github.com/Clinical-Genomics/BALSAMIC" | ||
LABEL about.documentation="https://balsamic.readthedocs.io/" | ||
LABEL about.license="MIT License (MIT)" | ||
LABEL about.description="Bioinformatic analysis pipeline for somatic mutations in cancer" | ||
|
||
ARG nim_version=1.6.6 | ||
LABEL base.image="alpine:3.11.5" \ | ||
maintainer="Clinical Genomics" \ | ||
about.contact="[email protected]" \ | ||
software="somalier" \ | ||
software.version="0.2.19" \ | ||
about.summary="Fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs" \ | ||
about.home="https://github.com/brentp/somalier" \ | ||
about.documentation="https://github.com/brentp/somalier/wiki" \ | ||
about.license="MIT License (MIT)" | ||
|
||
ARG nim_version=1.6.20 | ||
ENV CFLAGS="-fPIC -O3" | ||
ENV HTTPS_METHOD=noredirect | ||
|
||
RUN apk add --no-cache wget git autoconf tar xz xz-dev bzip2-dev curl curl-dev bash libzip-dev cmake openblas-dev build-base | ||
RUN apk upgrade && apk add --no-cache wget git xz bzip2-static musl m4 \ | ||
autoconf tar xz-dev bzip2-dev build-base libpthread-stubs libzip-dev gfortran \ | ||
openssl-libs-static openblas-static pcre-dev curl llvm-dev curl-static \ | ||
bash curl-dev clang-static nghttp2-static zlib-static cmake procps | ||
|
||
RUN mkdir -p /usr/local/include && \ | ||
git clone --depth 1 https://github.com/ebiggers/libdeflate.git && \ | ||
cd libdeflate && cmake -B build && cmake --build build && \ | ||
cp /libdeflate/build/libdeflate.a /usr/local/lib && cp /libdeflate/libdeflate.h /usr/local/include && \ | ||
git clone -b v1.18 --depth 1 https://github.com/ebiggers/libdeflate.git && \ | ||
cd libdeflate && cmake -B build && cmake --build build && cmake --install build && \ | ||
ln -s /usr/local/lib64/* /usr/local/lib && \ | ||
cd .. && rm -rf libdeflate | ||
|
||
RUN cd / && \ | ||
wget -q https://nim-lang.org/download/nim-${nim_version}-linux_x64.tar.xz && \ | ||
wget --max-redirect=0 -q https://nim-lang.org/download/nim-${nim_version}-linux_x64.tar.xz && \ | ||
tar xf nim-${nim_version}-linux_x64.tar.xz && \ | ||
echo 'PATH=/nim-${nim_version}/bin:$PATH' >> ~/.bashrc && \ | ||
echo 'PATH=/nim-${nim_version}/bin:$PATH' >> ~/.bash_profile && \ | ||
echo 'PATH=/nim-${nim_version}/bin:$PATH' >> /etc/environment && \ | ||
rm -f nim-${nim_version}-linux_x64.tar.xz | ||
|
||
ENV PATH=/nim-${nim_version}/bin/:$PATH | ||
RUN apk add --no-cache cmake openssl-dev && \ | ||
wget --max-redirect=0 -q https://libzip.org/download/libzip-1.6.1.tar.gz && \ | ||
tar xzvf libzip-1.6.1.tar.gz && \ | ||
cd libzip-1.6.1 && \ | ||
mkdir build && cd build && \ | ||
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=/usr/local/ ../ && \ | ||
make -j4 CFLAGS="-fPIC -O3" install && \ | ||
cd ../../ && rm -rf libzip-1.6.1* | ||
|
||
RUN cd / && \ | ||
git clone --depth 1 -b 1.15 --recursive https://github.com/samtools/htslib && \ | ||
ENV PATH=:/root/.nimble/bin:/nim-${nim_version}/bin/:$PATH | ||
|
||
RUN git clone --depth 1 -b 1.18 --recursive https://github.com/samtools/htslib && \ | ||
cd htslib && autoheader && autoconf && \ | ||
./configure --enable-s3 --enable-gcs --enable-libcurl --with-libdeflate && \ | ||
make -j4 CFLAGS="-fPIC -O3" install && \ | ||
cd ../ && \ | ||
git clone --depth 1 -b 1.15 --recursive https://github.com/samtools/bcftools && \ | ||
git clone --depth 1 -b 1.18 --recursive https://github.com/samtools/bcftools && \ | ||
cd bcftools && autoheader && autoconf && \ | ||
./configure --enable-s3 --enable-libcurl --with-libdeflate && \ | ||
make -j4 CFLAGS="-fPIC -O3" install && \ | ||
cd ../ && rm -rf htslib bcftools | ||
|
||
RUN cd / && \ | ||
git clone -b v0.2.16 --depth 1 https://github.com/brentp/somalier.git && \ | ||
cd somalier && \ | ||
nimble install -y nimble && \ | ||
/root/.nimble/bin/nimble install -d -y | ||
RUN cd / && git clone -b v0.2.19 --depth 5 https://github.com/brentp/somalier.git && \ | ||
nimble install -y [email protected] && \ | ||
cd somalier && nimble install -d -y | ||
|
||
RUN cd /somalier && \ | ||
RUN apk add --no-cache openblas && \ | ||
cd /somalier && \ | ||
nim c -d:danger -d:nsb_static -d:release -d:openmp -d:blas=openblas -d:lapack=openblas -o:/usr/bin/somalier src/somalier && \ | ||
cp scripts/ancestry-labels-1kg.tsv / && \ | ||
rm -rf /somalier && somalier --help | ||
|
||
ENV somalier_ancestry_labels /ancestry_labels-1kg.tsv | ||
ENV somalier_ancestry_labels=/ancestry_labels-1kg.tsv | ||
|
||
RUN rm -rf /var/cache/apk/* | ||
|
||
RUN adduser -D defaultuser | ||
|
||
USER defaultuser | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
- somalier=0.2.16 | ||
- somalier=0.2.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters