samtools rmdup description
Samtools rmdup removes potential PCR duplicates: if multiple read pairs have identical external coordinates, only retain the pair with highest mapping quality. In the paired-end mode, this command ONLY works with FR orientation and requires ISIZE is correctly set. It does not work for unpaired reads (e.g. two ends mapped to different chromosomes or orphan reads).
Parent program: samtools
SAMTools provide various utilities for manipulating alignments in the SAM format, including sorting, merging, indexing and generating alignments in a per-position format. It is very convinient for handling reads mapped to reference genome. Normally SAMtools is used in intermediate step between raw read mapping and SNP or variants callingm, because it allows to effeciently store mapped reads.