
Split DRAGEN coverage-bin metric names into numeric bounds
Source:R/utils.R
dragen_cov_bin_split.RdParses DRAGEN coverage-bin names (PCT of <region> with coverage [lo: hi))
into their depth bounds. Open bins ([Nx: inf)) get an NA upper bound.
Arguments
- v
(
character())
Vector of raw coverage-bin metric names.
Examples
dragen_cov_bin_split(c(
"PCT of genome with coverage [ 100x: inf)",
"PCT of QC coverage region with coverage [ 20x: 50x)"
))
#> # A tibble: 2 × 2
#> cov_lo cov_hi
#> <int> <int>
#> 1 100 NA
#> 2 20 50