-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #771 from kprus/master
Update NanoPlot to 1.41.6
- Loading branch information
Showing
3 changed files
with
77 additions
and
1 deletion.
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
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
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]" | ||
LABEL maintainer2="Kate Prussing" | ||
LABEL maintainer2.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 |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# NanoPlot container | ||
|
||
Main tool : [NanoPlot](https://github.com/wdecoster/NanoPlot) | ||
|
||
Additional tools: | ||
|
||
- nanomath 1.3.0 | ||
- nanoget 1.19.3 | ||
|
||
Full documentation: [https://github.com/wdecoster/NanoPlot](https://github.com/wdecoster/NanoPlot) | ||
|
||
Plotting tool for long read sequencing data and alignments. | ||
|
||
## Example Usage | ||
|
||
```bash | ||
# pass in the sequencing_summary.txt file produced by Guppy/Dorado basecaller | ||
NanoPlot --summary sequencing_summary.txt --N50 --loglength -t 4 -o nanoplot-out | ||
``` |