is.valid.region {bedr}R Documentation

checks if region/index is valid

Description

checks if region/index is valid

Usage

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

index <- get.example.regions();

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


[Package bedr version 1.0.7 Index]