dupBam | R Documentation |
Mark or remove the duplicates in bam file.
dupBam(inBam, outBam, operation=c("mark", "remove"))
inBam |
|
outBam |
|
operation |
|
It use “sambamba” to mark and remove the duplicates, as the same criteria of “picard”.
Other alternatives are “samtools” with ‘fixmate’ and ‘markdup’, “picard”'s ‘MarkDuplicates’.
invisible outBam
file.
Ge Tan
bamFile <- system.file("extdata", "ex1.bam", package="Rsamtools",
mustWork=TRUE)
outBam <- tempfile(pattern="test-", fileext=".bam")
dupBam(inBam=bamFile, outBam=outBam, operation="mark")
dupBam(inBam=bamFile, outBam=outBam, operation="remove")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.