size.region: Get region size

Description Usage Arguments Value Author(s) See Also Examples

Description

Get region size

Usage

1
2
3
4
5
6
7
8
size.region(
	x, 
	zero.based = TRUE, 
	check.zero.based = TRUE, 
	check.chr = TRUE, 
	check.valid = TRUE, 
	verbose = TRUE
	)

Arguments

x

region in vector, matrix or dataframe format

zero.based

whether the coordinates are zero-based or 1

check.zero.based

should 0 based coordinates be checked

check.chr

should chr prefix be checked

check.valid

should the region be checked for integerity

verbose

messages and checks

Value

size/length of the region

Author(s)

Daryl Waggott

See Also

convert2bed

Examples

1
2
3
4
5
6
7
8
if (check.binary("bedtools")) {

index <- get.example.regions();

a <- index[[1]];

a.sizes <- bedr:::size.region(a);
}

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

Related to size.region in bedr...