MOSDEPTH(1)
β¨ NAME β¨
mosdepth β the manual page for mosdepth 0.3.11, bestie π (you'll also see it filed under MOSDEPTH(1))
πΈ DESCRIPTION πΈ
okay so, we're on mosdepth 0.3.11 and here's literally how you run it:
Usage: mosdepth [options] <prefix> <BAM-or-CRAM>
that's the whole vibe. two positional things, a pile of options, and a bunch of very cute output files. let's get into it π«Ά
π Arguments π
<prefix>β this is your output name stem, and the way it's giving main character energy... every single file below gets built off it:{prefix}.mosdepth.global.dist.txt{prefix}.mosdepth.summary.txt{prefix}.per-base.bed.gzβ (unless-n/--no-per-baseis specified){prefix}.regions.bed.gzβ (if--byis specified){prefix}.quantized.bed.gzβ (if--quantizeis specified){prefix}.thresholds.bed.gzβ (if--thresholdsis specified)
<BAM-or-CRAM>β the alignment file for which to calculate depth. yes, exactly that. hand it over π₯
π§ Common Options π§
-t,--threads<threads> β number of BAM decompression threads [default:0]-c,--chrom<chrom> β restrict the depth calculation to this one chromosome. just the one, we're being picky π-b,--by<bed|window> β optional BED file, or an (integer) window-sizes. your call bestie-n,--no-per-baseβ dont output per-base depth. skipping this output will speed execution substantially. prefer quantized or thresholded values if possible.
ngl, if you can live without per-base, do it β it's the single biggest speed glow-up on this list β¨
-f,--fasta<fasta> β fasta file for use with CRAM files [default: ]. CRAM girlies, this one's for you π§¬
π Other options π
-F,--flag<FLAG> β exclude reads with any of the bits in FLAG set [default:1796]-i,--include-flag<FLAG> β only include reads with any of the bits in FLAG set. default is unset. [default:0]-x,--fast-modeβ dont look at internal cigar operations or correct mate overlaps (recommended for most use-cases). lowkey the default move for most people, fr fr-a,--fragment-modeβ count the coverage of the full fragment including the full insert (proper pairs only). full send, not just the read π«Ά-q,--quantize<segments> β write quantized output see docs for description. iykyk-Q,--mapq<mapq> β mapping quality threshold. reads with a quality less than this value are ignored [default:0]-l,--min-frag-len<min-frag-len> β minimum insert size. reads with a smaller insert size than this are ignored [default:-1]-u,--max-frag-len<max-frag-len> β maximum insert size. reads with a larger insert size than this are ignored. [default:-1]-T,--thresholds<thresholds> β for each interval in--by, write number of bases covered by at least threshold bases. Specify multiple integer values separated by,. yes, comma-separated, no spaces, we don't make the rules π-m,--use-medianβ output median of each region (in--by) instead of mean. median supremacy π-R,--read-groups<string> β only calculate depth for these comma-separated read groups IDs.-h,--helpβ show help. the classic. the icon. when in doubt, hit it π
heads up bestie:--byis doing a lot of heavy lifting here βregions.bed.gz,thresholds.bed.gzanduse-medianall hinge on it, so if something's not showing up, check whether you actually passed--byπ¦
and that's the whole page!! this was mosdepth 0.3.11, dated September 2025, living in section MOSDEPTH(1) of your friendly neighbourhood manual πΈ go calculate some depth, you've got this, mwah π
π
π¦ where this page comes from
- ubuntu questing: mosdepth 0.3.11+ds-2
- ubuntu resolute: mosdepth 0.3.11+ds-3 Β· MIT
- ubuntu stonking: mosdepth 0.3.11+ds-3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms