filter_coverage.Rd
Filter data based on coverage
filter_coverage(dat, min_coverage = 2)
dat | MIP data. The data must have the following variables:
|
---|---|
min_coverage | Numeric for the minimum required coverage. Default = 2 |
The MIP dataset is filtered to remove all loci that have less than the minimum required coverage.
dat <- dummy_data() dat <- filter_misc(dat) dat2 <- filter_coverage(dat, min_coverage = 5) dim(dat2)[1] < dim(dat)[1]#> [1] TRUE