Docker image for mosdepth, fast BAM/CRAM depth calculation, in Fred Hutch OCDO's WILDS
594
This directory contains Docker images for mosdepth, a fast tool for calculating sequencing coverage depth from BAM or CRAM alignments at per-base, per-region, or per-window resolution.
latest ( Dockerfile | Vulnerability Report )0.3.14 ( Dockerfile | Vulnerability Report )These Docker images are built from Ubuntu 24.04 and include:
libcurl4, zlib1g, libbz2-1.0, liblzma5): required by the statically linked mosdepth binary for compressed and remote file I/O.The image installs the official pre-built Linux x86_64 binary from the upstream GitHub release, keeping the image small and focused on a single primary tool.
Platform note: The upstream project only distributes an x86_64 binary, so these images are built for
linux/amd64only. ARM64 builds are skipped viaamd64_only_tools.txt.
If you use mosdepth in your research, please cite the original authors:
Pedersen BS, Quinlan AR. Mosdepth: quick coverage calculation for genomes and
exomes. Bioinformatics. 2018 Mar 1;34(5):867-868.
doi:10.1093/bioinformatics/btx699
Tool homepage: https://github.com/brentp/mosdepth
Publication: https://doi.org/10.1093/bioinformatics/btx699
# Pull the latest version
docker pull getwilds/mosdepth:latest
# Or pull a specific version
docker pull getwilds/mosdepth:0.3.14
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/mosdepth:latest
# Pull the latest version
apptainer pull docker://getwilds/mosdepth:latest
# Or pull a specific version
apptainer pull docker://getwilds/mosdepth:0.3.14
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/mosdepth:latest
# Per-base coverage across the whole genome
docker run --rm -v /path/to/data:/data getwilds/mosdepth:latest \
mosdepth /data/sample sample.bam
# Per-region coverage using a BED of target intervals (e.g., exome capture)
docker run --rm -v /path/to/data:/data getwilds/mosdepth:latest \
mosdepth --by /data/targets.bed /data/sample_exome /data/sample.bam
# Fixed-size 500 bp windows with no per-base output, using 4 threads
docker run --rm -v /path/to/data:/data getwilds/mosdepth:latest \
mosdepth --no-per-base --by 500 --threads 4 /data/sample_windows /data/sample.bam
# CRAM input requires a reference FASTA
docker run --rm -v /path/to/data:/data getwilds/mosdepth:latest \
mosdepth --fasta /data/reference.fa /data/sample_cram /data/sample.cram
# Alternatively using Apptainer
apptainer run --bind /path/to/data:/data docker://getwilds/mosdepth:latest \
mosdepth --by /data/targets.bed /data/sample_exome /data/sample.bam
# ... or a local SIF file via Apptainer
apptainer run --bind /path/to/data:/data mosdepth_latest.sif \
mosdepth /data/sample /data/sample.bam
The Dockerfile follows these main steps:
mosdepth binary from the upstream GitHub release and installs it to /usr/local/bin/data as the default working directory for analysesmosdepth --version as a smoke test to verify the installThese images are regularly scanned for vulnerabilities using Docker Scout. However, due to the nature of bioinformatics software and their dependencies, some Docker images may contain components with known vulnerabilities (CVEs).
Use at your own risk: While we strive to minimize security issues, these images are primarily designed for research and analytical workflows in controlled environments.
For the latest security information about this image, please check the CVEs_*.md files in this directory, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an issue in the GitHub repo citing which CVE you would like to be addressed.
These Dockerfiles are maintained in the WILDS Docker Library repository.
Content type
Image
Digest
sha256:831f20b7d…
Size
41.4 MB
Last updated
4 months ago
docker pull getwilds/mosdepth