Skip to content

Commit

Permalink
Create Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kprus authored Oct 24, 2023
1 parent 6286414 commit 68f42b1
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions nanoplot/1.41.6/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM ubuntu:focal as app

# for easy upgrade later. ARG variables only persist during image build time.
ARG NANOPLOT_VER="1.41.6"

LABEL base.image="ubuntu:focal"
LABEL dockerfile.version="1"
LABEL software="nanoplot"
LABEL software.version="${NANOPLOT_VER}"
LABEL description="Plotting suite for Oxford Nanopore sequencing data and alignments"
LABEL website="https://github.com/wdecoster/NanoPlot"
LABEL license="https://github.com/wdecoster/NanoPlot/blob/master/LICENSE"
LABEL maintainer="Curtis Kapsak"
LABEL maintainer.email="[email protected]"

# install dependencies via apt; cleanup apt garbage; set locale to en_US.UTF-8
RUN apt-get update && apt-get install -y zlib1g-dev \
bzip2 \
libbz2-dev \
liblzma-dev \
libcurl4-gnutls-dev \
libncurses5-dev \
libssl-dev \
python3 \
python3-pip \
python3-setuptools \
locales && \
locale-gen en_US.UTF-8 && \
apt-get autoclean && rm -rf /var/lib/apt/lists/*

# for singularity compatibility
ENV LC_ALL=C

# install NanoPlot via pypi using pip3; make /data directory
RUN pip3 install matplotlib psutil requests NanoPlot==${NANOPLOT_VER} && \
mkdir /data

WORKDIR /data

# testing layer
FROM app as test

# print help options and version
RUN NanoPlot --help && NanoPlot --version

# install wget for downloading test data
RUN apt-get update && apt-get install -y wget

# download ONT data for a Salmonella isolate, run NanoPlot on the FASTQ file
# Go here for more info: https://www.ebi.ac.uk/ena/browser/view/SRR19787768?show=reads
RUN wget https://ftp.sra.ebi.ac.uk/vol1/fastq/SRR197/068/SRR19787768/SRR19787768_1.fastq.gz && \
NanoPlot --fastq SRR19787768_1.fastq.gz --log --N50 -o /data/nanoplot-test && \
ls -lh /data/nanoplot-test && \
cat /data/nanoplot-test/NanoStats.txt

0 comments on commit 68f42b1

Please sign in to comment.