Skip to contents

Expands 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.

Usage

fastqc_bin_expand(v)

Arguments

v

(character())
Vector of position/length bin tokens, open-bin markers already stripped (single value or lo-hi range).

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
#>