is.valid.region: checks if region/index is valid

Description Usage Arguments Author(s) Examples

Description

checks if region/index is valid

Usage

1
2
3
4
5
6
7
is.valid.region(
	x,
	check.zero.based = TRUE,
	check.chr = TRUE,
	throw.error = FALSE,
	verbose = TRUE
	)

Arguments

x

The region index, bed file, or bed formatted object

check.zero.based

should basic test for zero based coordinates be checked

check.chr

should the algorithm check for the "chr" prefix

throw.error

should an error be thrown. The default is to report a logical vector of inconsistencies.

verbose

should diagnostic messages be printed

Author(s)

Daryl Waggott

Examples

1
2
3
4
5
index <- get.example.regions();

a <- index[[1]];
is.valid <- is.valid.region(a);
a.valid <- a[is.valid];

bedr documentation built on May 2, 2019, 11:36 a.m.

Related to is.valid.region in bedr...