Filter data based on coverage

filter_coverage(dat, min_coverage = 2)

Arguments

dat

MIP data. The data must have the following variables:

  • Coverage : The total read coverage as numerics

min_coverage

Numeric for the minimum required coverage. Default = 2

Details

The MIP dataset is filtered to remove all loci that have less than the minimum required coverage.

Examples

dat <- dummy_data() dat <- filter_misc(dat) dat2 <- filter_coverage(dat, min_coverage = 5) dim(dat2)[1] < dim(dat)[1]
#> [1] TRUE