samtools-rmdup(1)
π NAME π
samtools rmdup β removes duplicate reads (obsolete) π«Ά
β¨ SYNOPSIS β¨
samtools rmdup [-sS] input.srt.bam out.bam
πΈ DESCRIPTION πΈ
okay so first thing first, bestie: this command is obsolete. like, retired. it's giving flip phone in 2026. use markdup instead, fr fr. π΅
but for the history girlies, here's the lore: rmdup removes potential PCR duplicates. the way it works is that if multiple read pairs have identical external coordinates, it only keeps the pair with the highest mapping quality. one winner, everyone else goes home. π
now the fine print, and this is important:
- In paired-end mode, this command ONLY works with FR orientation and it requires ISIZE to be correctly set. no ISIZE, no service. π«
- It does not work for unpaired reads β think two ends mapped to different chromosomes, or orphan reads. they just get left out of the whole situation. π
π OPTIONS π
-sβ remove duplicates for single-end reads. by default the command works for paired-end reads only, so this is your little toggle to switch it up. π-Sβ treat paired-end reads and single-end reads. both. together. iconic. β¨
π LIMITATIONS π
- Samtools paired-end
rmdupdoes not work for unpaired reads (e.g. orphan reads or ends mapped to different chromosomes). π« if this is a concern, please use Picard'sMarkDuplicates, which correctly handles these cases β although it's a little slower. (slower but emotionally available, we love that for us π)
π AUTHOR π
Written by Heng Li from the Sanger Institute. legend behaviour, no cap. π
π¦ SEE ALSO π¦
samtools(1)- Samtools website: <http://www.htslib.org/>
and that's the whole page, bestie β this one came from samtools-1.24, dated 9 July 2026 π
. now go use markdup like a main character ππ§β¨
π¦ where this page comes from
- epel 10: samtools 1.24-2.el10_3 Β· MIT
- nixpkgs unstable: samtools 1.24
- Copyright (C) 2008-2011, 2013-2018 Genome Research Ltd
- copyright (C) 2010, 2011 Broad Institute
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms