SAMBAMBA-MARKDUP(1)
π SAMBAMBA-MARKDUP β the tea β
okay bestie, welcome to sambamba-markdup, a lil legend from the sambamba fam of manual pages. she's got ONE job and she does it gorgeously: finding duplicate reads in a BAM file and dealing with them. no cap. π§
β¨ SYNOPSIS β¨
sambamba markdup OPTIONS <input.bam> <output.bam>
πΈ DESCRIPTION πΈ
so basically she marks duplicate reads β that's the default, she's polite like that β or, if you ask her nicely, she straight up removes them. gone. deleted. blocked. π«
and how does she decide if a read is a duplicate or not?? the same "sum of base qualities" method that Picard uses. iconic behaviour, honestly. you can read all about the method at the Picard metric definitions page:
https://broadinstitute.github.io/picard/picard-metric-definitions.html
π OPTIONS π
-r,--remove-duplicatesβ ok so instead of just marking the duplicates, she actually removes them. like, physically. from the output. the audacity, the power π-t,--nthreads=NTHREADSβ how many threads you wanna give her to play with. she'll use 'em. all of 'em.-l,--compression-level=Nβ set the compression level of the resulting file, and it's gotta be from0to9. pick your vibe. β¨-p,--show-progressβ shows you a lil progress bar inSTDERRso you can watch her work and feel something π«Ά--tmpdir=TMPDIRβ tell her where to stash her temporary files. default is/tmp, which is fine, but if you've got opinions, this is where you share them.--hash-table-size=HASHTABLESIZEβ the size of the hash table she uses for finding read pairs. default is262144reads. heads up: it gets rounded down to the nearest power of two, so don't get cute with weird numbers. for good performance it should be>(average coverage) * (insert size). do the math bestie π₯--overflow-list-size=OVERFLOWLISTSIZEβ this is the overflow list, aka the second-chance lounge π where reads that got thrown out of the hash table get another opportunity to meet their pairs. default is200000reads. bumping the size up means she creates fewer temporary files. slay.--io-buffer-size=BUFFERSIZEβ controls the sizes of two buffers, each oneBUFFERSIZEmegabytes, used for reading and writing BAM during the second pass. default is128. yes, two. she's generous. π
π¦ SEE ALSO π¦
Picard, and specifically the metric definitions for removing duplicates:
https://broadinstitute.github.io/picard/picard-metric-definitions.html
go read it, it's giving educational. π
π BUGS π
bestie. listen. external sort is not implemented. so memory consumption grows by2Gbper each100Mreads. that is not a drill. check that you actually have enough RAM before you run this tool, or your machine will simply pass away. π
ok that's the whole page, no notes. this one's from sambamba-markdup(1), the SAMBAMBA-MARKDUP(1) manual β dated February 2015 π stay hydrated, check your RAM, and go mark some dups. periodt. π β¨
π¦ where this page comes from
- debian bookworm: sambamba 1.0+dfsg-1 Β· GPL-2.0-or-later
- debian trixie: sambamba 1.0.1+dfsg-2+b1 Β· GPL-2.0-or-later
- ubuntu jammy: sambamba 0.8.2+dfsg-2 Β· GPL-2.0-or-later
- ubuntu noble: sambamba 1.0.1+dfsg-1build3 Β· GPL-2.0-or-later
- ubuntu questing: sambamba 1.0.1+dfsg-2build1
- ubuntu resolute: sambamba 1.0.1+dfsg-3ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: sambamba 1.0.1+dfsg-3ubuntu3 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms