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

Description Usage Arguments Examples

View source: R/seqminer.R

Description

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

Usage

1

Arguments

range

characer vector

Examples

1
2
3
4
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))

Example output



seqminer documentation built on Aug. 4, 2018, 5:05 p.m.