bioinformatics/dorado:2.1.2
Version sha256.08b0de473ae39b70e981235f2ce463b40dfc6a667e9d12abb51cc473bf32c05a
Image size: 3.3 GB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://bioinformatics/dorado:2.1.2
Shell into the container
singularity shell library://bioinformatics/dorado:2.1.2
Run the container
singularity run library://bioinformatics/dorado:2.1.2
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://bioinformatics/dorado:2.1.2
Shell into the container
apptainer shell library://bioinformatics/dorado:2.1.2
Run the container
apptainer run library://bioinformatics/dorado:2.1.2
Dorado 2.1.2 by Oxford Nanopore Technologies PLC (https://github.com/nanoporetech/dorado).
This image packages the unmodified upstream Linux x64 release. IDIA builds and maintains
the image only; report bugs in Dorado itself upstream at
https://github.com/nanoporetech/dorado/issues.
LICENCE: RESEARCH PURPOSES ONLY.
Dorado is distributed under the Oxford Nanopore Technologies PLC. Public License v1.0. It
grants use solely for Research Purposes: internal research not intended for or directed
towards commercial advantage or monetary compensation (grant-funded and sponsored research
is allowed). Any other use is not licensed. The full licence is in the image at
/opt/dorado/LICENCE.txt, and `dorado --licences` lists the bundled third-party licences.
The source code of this release is at https://github.com/nanoporetech/dorado/tree/v2.1.2.
Upstream asks for no specific citation; cite Dorado 2.1.2 and the repository above.
Requirements: an NVIDIA GPU (tested upstream on V100, A100 and H100; others from Pascal on
with 8 GB or more of VRAM are expected to work) and NVIDIA driver 525.105 or newer. The
image bundles the CUDA 12.8 runtime, cuDNN and libtorch. Run it with --nv so Singularity
binds the host driver in.
No models are included. Download them to a directory outside the image and bind it in:
singularity exec -B /path/to/models:/models -B "$PWD" dorado_2.1.2.sif \
dorado download --model hac --data pod5s/ --models-directory /models
singularity run --nv -B /path/to/models:/models -B "$PWD" dorado_2.1.2.sif \
basecaller hac --models-directory /models pod5s/ > calls.bam
A model complex such as `hac` needs --data so dorado can work out the chemistry from the
reads; `dorado download --list` gives full model names that download without it. Download
needs no GPU, so --nv is optional there.
Without --models-directory, `dorado basecaller` downloads the model it needs to a
temporary directory on each run.
Bootstrap: docker
From: debian:13-slim
# NOTE: a single stage on purpose. The upstream release is 3.5 GB and unpacks to 5.4 GB.
# A build stage plus a final stage would hold two 5.4 GB trees at once, then the SIF on top,
# which doesn't fit a GitHub runner's free disk. Here the tarball is checked, unpacked and
# deleted in one step, and curl (the only build tool) is purged at the end of %post.
# NOTE: the binaries aren't stripped. The image ships the upstream release unmodified.
%labels
Maintainer IDIA <support@ilifu.ac.za>
Version 2.1.2
Source https://github.com/nanoporetech/dorado
License Oxford Nanopore Technologies PLC. Public License v1.0 (research purposes only)
Authors Oxford Nanopore Technologies PLC
%help
Dorado 2.1.2 by Oxford Nanopore Technologies PLC (https://github.com/nanoporetech/dorado).
This image packages the unmodified upstream Linux x64 release. IDIA builds and maintains
the image only; report bugs in Dorado itself upstream at
https://github.com/nanoporetech/dorado/issues.
LICENCE: RESEARCH PURPOSES ONLY.
Dorado is distributed under the Oxford Nanopore Technologies PLC. Public License v1.0. It
grants use solely for Research Purposes: internal research not intended for or directed
towards commercial advantage or monetary compensation (grant-funded and sponsored research
is allowed). Any other use is not licensed. The full licence is in the image at
/opt/dorado/LICENCE.txt, and `dorado --licences` lists the bundled third-party licences.
The source code of this release is at https://github.com/nanoporetech/dorado/tree/v2.1.2.
Upstream asks for no specific citation; cite Dorado 2.1.2 and the repository above.
Requirements: an NVIDIA GPU (tested upstream on V100, A100 and H100; others from Pascal on
with 8 GB or more of VRAM are expected to work) and NVIDIA driver 525.105 or newer. The
image bundles the CUDA 12.8 runtime, cuDNN and libtorch. Run it with --nv so Singularity
binds the host driver in.
No models are included. Download them to a directory outside the image and bind it in:
singularity exec -B /path/to/models:/models -B "$PWD" dorado_2.1.2.sif \
dorado download --model hac --data pod5s/ --models-directory /models
singularity run --nv -B /path/to/models:/models -B "$PWD" dorado_2.1.2.sif \
basecaller hac --models-directory /models pod5s/ > calls.bam
A model complex such as `hac` needs --data so dorado can work out the chemistry from the
reads; `dorado download --list` gives full model names that download without it. Download
needs no GPU, so --nv is optional there.
Without --models-directory, `dorado basecaller` downloads the model it needs to a
temporary directory on each run.
%environment
export PATH=/opt/dorado/bin:${PATH}
%runscript
exec /opt/dorado/bin/dorado "$@"
%post
set -eu
DORADO_VERSION=2.1.2
DORADO_SHA256=f4ed83acfb75cf07ffe8a0fc78e26828fc911fcfc8177920be6104e1d0e02485
LICENCE_SHA256=802c641faac119489d698815722934d12de40f1b88f995d84c5a30162f99a2c8
export DEBIAN_FRONTEND=noninteractive
# ca-certificates stays, so `dorado download` can reach the model server. zlib1g is the
# one library the binary needs that the release doesn't bundle.
apt-get update
apt-get install -y --no-install-recommends ca-certificates curl zlib1g
mkdir -p /opt/dorado /opt/dorado-download
cd /opt/dorado-download || exit 1
# The binaries' RUNPATH is $ORIGIN/../lib, so they find the bundled libraries without
# LD_LIBRARY_PATH. That leaves Singularity's --nv LD_LIBRARY_PATH alone for libcuda.
curl -fsSL -o dorado.tar.gz \
"https://cdn.oxfordnanoportal.com/software/analysis/dorado-${DORADO_VERSION}-linux-x64.tar.gz"
echo "${DORADO_SHA256} dorado.tar.gz" | sha256sum -c -
tar -xzf dorado.tar.gz --no-same-owner --strip-components=1 -C /opt/dorado
rm -f dorado.tar.gz
# The release tarball has no licence file, so take it from the release tag.
curl -fsSL -o LICENCE.txt \
"https://raw.githubusercontent.com/nanoporetech/dorado/v${DORADO_VERSION}/LICENCE.txt"
echo "${LICENCE_SHA256} LICENCE.txt" | sha256sum -c -
mv LICENCE.txt /opt/dorado/LICENCE.txt
chmod 644 /opt/dorado/LICENCE.txt
cd / || exit 1
rm -rf /opt/dorado-download
apt-get purge -y --auto-remove curl
apt-get clean
rm -rf /var/lib/apt/lists/* /var/cache/apt/* /var/cache/debconf/*-old /var/log/apt /var/log/dpkg.log
%test
set -eu
# --version prints DORADO_VERSION (e.g. 2.1.2 or 2.1.2+<sha>) to stdout.
/opt/dorado/bin/dorado --version | grep -Eq '^2\.1\.2([+-]|$)'
test -s /opt/dorado/LICENCE.txt
Download bioinformatics-dorado_2.1.2.def
#!/bin/sh
exec /opt/dorado/bin/dorado "$@"
#!/bin/sh
set -eu
# --version prints DORADO_VERSION (e.g. 2.1.2 or 2.1.2+<sha>) to stdout.
/opt/dorado/bin/dorado --version | grep -Eq '^2\.1\.2([+-]|$)'
test -s /opt/dorado/LICENCE.txt
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# /.singularity.d/env/90-environment.sh
#!/bin/sh
# Custom environment shell code should follow
export PATH=/opt/dorado/bin:${PATH}