isTabixRange: Check if the inputs are valid tabix range such as chr1:2-300

View source: R/seqminer.R

isTabixRangeR Documentation

Check if the inputs are valid tabix range such as chr1:2-300

Description

Check if the inputs are valid tabix range such as chr1:2-300

Usage

isTabixRange(range)

Arguments

range

characer vector

Examples

valid <- isTabixRange(c("chr1:1-200", "X:1", "1:100-100", "chr1", "1:1-20,1:30-40"))
stopifnot(all(valid))
invalid <- isTabixRange(c(":1", "chr1::", ":-"))
stopifnot(all(!invalid))

seqminer documentation built on Oct. 7, 2024, 1:15 a.m.