.rm_dupes {seqsetvis} | R Documentation

## Remove duplicate reads based on stranded start position. This is an over-simplification. For better duplicate handling, duplicates must be marked in bam and flag passed to fetchBam() ... for ScanBamParam

### Description

flag = scanBamFlag(isDuplicate = FALSE)

### Usage

    .rm_dupes(reads_dt, max_dupes)

### Arguments

`reads_dt` | data.table of reads as loaded by fetchBam
`max_dupes` | maximum allowed positional duplicates

### Value

reads_dt with duplicated reads over max_dupes removed

[Package seqsetvis version 1.14.4 Index]