Learn R Programming

bedr (version 1.0.2)

is.valid.region: 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

Examples

Run this code
index <- get.example.regions();

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

Run the code above in your browser using DataLab