# 使用 Homebrew, Nix, apt 安装 mosdepth

查看 mosdepth 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mosdepth
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mosdepth
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mosdepth
```

  证据: nixpkgs package indexes: pkgs/by-name/mo/mosdepth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Ubuntu apt (92%):

```sh
sudo apt install mosdepth
```

  证据: Ubuntu 24.04 LTS package indexes: mosdepth from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

## 软件包事实

- **软件包键:** brew:mosdepth
- **软件包管理器:** Homebrew
- **版本:** 0.3.14
- **来源摘要:** Fast BAM/CRAM depth calculation for WGS, exome, or targeted sequencing
- **主页:** <https://github.com/brentp/mosdepth>
- **仓库:** <https://github.com/brentp/mosdepth>
- **最后更新:** 2026-07-13T04:04:09Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mosdepth (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3.14
## 项目历史与用法

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.

### 时间线

- 2017: Bioinformatics article published online introducing mosdepth.
- 2018: Article appears in Bioinformatics volume 34 issue 5.
- 2025: GitHub wiki FAQ updated.
- 2026: GitHub releases list a latest release dated April 24, 2026.

### Related projects

- samtools depth, BEDTools genomecov, and sambamba are related depth/coverage tools compared in the official paper and README.
- HTSlib and hts-nim are implementation dependencies named in the README and paper.

### 来源

- <https://academic.oup.com/bioinformatics/article/34/5/867/4583630>
- <https://github.com/brentp/mosdepth>
- <https://github.com/brentp/mosdepth/wiki>
- <https://pmc.ncbi.nlm.nih.gov/articles/PMC6030888/>
- input.source_facts.package-manager


## 安全说明

没有找到 mosdepth 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Nix - mosdepth: normalized package name match | nixpkgs package indexes: pkgs/by-name/mo/mosdepth/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - mosdepth - 0.3.6+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mosdepth from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | BAM/CRAM depth calculation biological sequencing | https://github.com/brentp/mosdepth
- Ubuntu apt - mosdepth-examples - 0.3.6+ds-1: normalized package name match | Ubuntu 24.04 LTS package indexes: mosdepth-examples from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Test data for mosdepth | https://github.com/brentp/mosdepth


## Combined YAML source

View the package source record on GitHub. [combined/mosdepth.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mosdepth.yml)


## 来源

- pkg.so package database
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
