| 1 |
################################################################# |
| 2 |
# Dockerfile |
| 3 |
# |
| 4 |
# Software: bedops, SRA tools |
| 5 |
# Software Version: 2.4.26, 2.8.2 |
| 6 |
# Description: Phusion image with tools to support the Atropos paper workflow |
| 7 |
# Website: https://bedops.readthedocs.io/en/latest/ |
| 8 |
# https://github.com/ncbi/sra-tools |
| 9 |
# Provides: bedops|/opt/fastq-dump/fastq-dump-wrapper.sh |
| 10 |
# Base Image: phusion/baseimage:latest |
| 11 |
# Build Cmd: docker build -t jdidion/atropos_paper_analysis:latest . |
| 12 |
# Pull Cmd: docker pull jdidion/atropos_paper_analysis |
| 13 |
# Run Cmd: docker run --rm jdidion/atropos_paper_analysis <cmd> |
| 14 |
################################################################# |
| 15 |
FROM phusion/baseimage:latest |
| 16 |
WORKDIR /tmp |
| 17 |
RUN mkdir /annotations |
| 18 |
RUN mkdir /data |
| 19 |
|
| 20 |
ENV GENCODE_VERSION '26' |
| 21 |
ENV GENCODE_37_FILE "gencode.v${GENCODE_VERSION}lift37.annotation.gtf.gz" |
| 22 |
ENV GENCODE_38_FILE "gencode.v${GENCODE_VERSION}.annotation.gtf.gz" |
| 23 |
ENV BEDOPS_VERSION 2.4.26 |
| 24 |
ENV BEDOPS_URL "https://github.com/bedops/bedops/archive/v${BEDOPS_VERSION}.tar.gz" |
| 25 |
ENV SAMTOOLS_VERSION 1.7 |
| 26 |
ENV SAMTOOLS_URL "https://github.com/samtools/samtools/releases/download/${SAMTOOLS_VERSION}/samtools-${SAMTOOLS_VERSION}.tar.bz2" |
| 27 |
ENV SRA_VERSION 2.8.2-1 |
| 28 |
ENV SRA_URL "https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/${SRA_VERSION}/sratoolkit.${SRA_VERSION}-ubuntu64.tar.gz" |
| 29 |
ENV BUILD_PACKAGES \ |
| 30 |
libc6-dev \ |
| 31 |
build-essential \ |
| 32 |
libbz2-dev \ |
| 33 |
zlib1g-dev \ |
| 34 |
liblzma-dev \ |
| 35 |
tcsh \ |
| 36 |
devscripts \ |
| 37 |
debhelper \ |
| 38 |
git \ |
| 39 |
wget \ |
| 40 |
ca-certificates \ |
| 41 |
openssl |
| 42 |
ENV RUNTIME_PACKAGES \ |
| 43 |
time |
| 44 |
|
| 45 |
RUN apt-get update \ |
| 46 |
&& DEBIAN_FRONTEND=noninteractive apt-get -y upgrade \ |
| 47 |
&& DEBIAN_FRONTEND=noninteractive apt-get install -y -qq \ |
| 48 |
$BUILD_PACKAGES \ |
| 49 |
$RUNTIME_PACKAGES \ |
| 50 |
&& update-ca-certificates \ |
| 51 |
&& wget -o /annotations/${GENCODE_37_FILE} "ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_${GENCODE_VERSION}/GRCh37_mapping/${GENCODE_37_FILE}" \ |
| 52 |
&& wget -o /annotations/${GENCODE_38_FILE} "ftp://ftp.sanger.ac.uk/pub/gencode/Gencode_human/release_${GENCODE_VERSION}/${GENCODE_38_FILE}" \ |
| 53 |
&& wget -q -O - $BEDOPS_URL | tar -zxv \ |
| 54 |
&& cd bedops-${BEDOPS_VERSION} \ |
| 55 |
&& make \ |
| 56 |
&& make install \ |
| 57 |
&& cp bin/* /usr/local/bin \ |
| 58 |
&& cd .. \ |
| 59 |
&& wget -q -O - $SAMTOOLS_URL | tar -jxv \ |
| 60 |
&& cd samtools-${SAMTOOLS_VERSION} \ |
| 61 |
&& ./configure --prefix=/usr/local/ --without-curses \ |
| 62 |
&& make \ |
| 63 |
&& make install \ |
| 64 |
&& cd .. \ |
| 65 |
&& rm -Rf /tmp/samtools-${SAMTOOLS_VERSION} \ |
| 66 |
&& wget -q -O - $SRA_URL | tar -zxv \ |
| 67 |
&& mkdir /opt/fastq-dump/ \ |
| 68 |
&& mv sratoolkit.${SRA_VERSION}-ubuntu64 /opt/fastq-dump/ \ |
| 69 |
&& apt-get remove --purge -y $BUILD_PACKAGES \ |
| 70 |
&& apt-get autoremove -y \ |
| 71 |
&& rm -rf /var/lib/apt/lists/* /tmp/* \ |
| 72 |
&& locale-gen en_US.UTF-8 \ |
| 73 |
&& update-locale LANG=en_US.UTF-8 |
| 74 |
|
| 75 |
ADD fastq-dump-wrapper.sh /opt/fastq-dump/ |
| 76 |
WORKDIR /data |