I'd like to use Rsamtools to remove duplicate reads from a bam file. I'm looking for a solution similar to samtools markdup -r -s in.bam out.bam
. Can anyone tell me how to do this in R, preferably with Rsamtools? But other solutions are also fine :)
bash, nextflow, snakemake