DOKK / manpages / debian 12 / sambamba / sambamba-markdup.1.en
SAMBAMBA-MARKDUP(1) SAMBAMBA-MARKDUP(1)

sambamba-markdup - finding duplicate reads in BAM file

sambamba markdup OPTIONS <input.bam> <output.bam>

Marks (by default) or removes duplicate reads. For determining whether a read is a duplicate or not, the same `sum of base qualities´ method is used as in Picard https://broadinstitute.github.io/picard/picard-metric-definitions.html.

remove duplicates instead of just marking them
number of threads to use
specify compression level of the resulting file (from 0 to 9)");
show progressbar in STDERR
specify directory for temporary files; default is /tmp
size of hash table for finding read pairs (default is 262144 reads); will be rounded down to the nearest power of two; should be > (average coverage) * (insert size) for good performance
size of the overflow list where reads, thrown away from the hash table, get a second chance to meet their pairs (default is 200000 reads); increasing the size reduces the number of temporary files created
controls sizes of two buffers of BUFFERSIZE megabytes each, used for reading and writing BAM during the second pass (default is 128)

Picard https://broadinstitute.github.io/picard/picard-metric-definitions.html metric definitions for removing duplicates.

External sort is not implemented. Thus, memory consumption grows by 2Gb per each 100M reads. Check that you have enough RAM before running the tool.

February 2015