
Expand DRAGEN FASTQC position/length bin tokens to integer grains
Source:R/utils.R
fastqc_bin_expand.RdExpands each position/length token to the integers it covers ("137-140" ->
137:140), for tidyr::unnest_longer(). Not tidyr::separate_longer_delim(),
which keeps only the endpoints. Run fastqc_bin_open() first.
Arguments
- v
(
character())
Vector of position/length bin tokens, open-bin markers already stripped (single value orlo-hirange).
Value
(list()) One integer vector per input token.
Examples
fastqc_bin_expand(c("150", "2-3", "137-140"))
#> [[1]]
#> [1] 150
#>
#> [[2]]
#> [1] 2 3
#>
#> [[3]]
#> [1] 137 138 139 140
#>