macOS
brew install mosdepthlocal Homebrew formula metadata
brew / rank 12854
Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing. Version 0.3.14 via Homebrew; verified 2026-07-13. Also installable with nix: nix profile install nixpkgs#mosdepth.
install
brew install mosdepthlocal Homebrew formula metadata
nix profile install nixpkgs#mosdepthnixpkgs package indexes · pkgs/by-name/mo/mosdepth/package.nix · source: api.github.com
sudo apt install mosdepthUbuntu 24.04 LTS package indexes · mosdepth · source: archive.ubuntu.com
overview
Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing
history
mosdepth is a command-line tool for fast BAM/CRAM depth and coverage calculation across whole-genome, exome, or targeted sequencing datasets.
mosdepth was introduced by Brent S. Pedersen and Aaron R. Quinlan in a Bioinformatics paper published online in October 2017 and appearing in the March 2018 issue. The paper presented it as a quick coverage calculator for genome and exome sequencing data.
The implementation is written in Nim and uses HTSlib via hts-nim. Its algorithm tracks alignment chunk starts and ends in chromosome-sized arrays rather than using a pileup engine for every read base.
mosdepth gained adoption because sequencing coverage summaries are a routine need for variant calling QC, copy-number workflows, targeted panels, exomes, and whole genomes. The paper compared mosdepth with samtools, bedtools, and sambamba and showed faster runtime on a 30x genome benchmark.
The official README documents binary releases, Bioconda, Homebrew, and Docker usage, making it straightforward to package in bioinformatics environments and reproducible workflow containers.
The CLI consumes position-sorted BAM or CRAM input and can report per-base depth, region summaries from BED files, fixed windows, quantized coverage, coverage thresholds, and distributions.
Users choose mosdepth when they need fast genome-wide or region-based coverage calculation and can accept the memory profile of chromosome-sized arrays.
mosdepth is notable to package maintainers because it is a compact compiled bioinformatics binary whose value comes from speed, HTSlib integration, and predictable command-line output files rather than from daemon-style services or configuration.
It is also a representative Nim-based scientific CLI in package-manager ecosystems that otherwise contain many C/C++, Python, and Perl genomics tools.
security posture
No matching local secret-handling manifest was found for mosdepth. Package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
mosdepth | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/brentp/mosdepth
install metadata
| Package key | brew:mosdepth |
|---|---|
| Version | 0.3.14 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/mosdepth |
| Homepage | https://github.com/brentp/mosdepth |
| Repository | https://github.com/brentp/mosdepth |
| License | MIT |
| Source archive | https://github.com/brentp/mosdepth/archive/refs/tags/v0.3.14.tar.gz |
| Last updated | 2026-07-13T04:04:09Z |
| Pulse | updated |
| Dependencies | htslib |
| Build dependencies | nim |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | mosdepth |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
mosdepth
nix profile install nixpkgs#mosdepthmosdepth 0.3.6+ds-1
BAM/CRAM depth calculation biological sequencing
https://github.com/brentp/mosdepth
sudo apt install mosdepthmosdepth-examples 0.3.6+ds-1
Test data for mosdepth
https://github.com/brentp/mosdepth
sudo apt install mosdepth-examplessource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.