in.region2: checks if regions in object a are found in object b

Description Usage Arguments Details Value Author(s) Examples

Description

checks if regions in object a are found in object b

Usage

1
x %in.region% y

Arguments

x

first region index in the form chr:start-stop. regions in this index will be checked for intersection in the values of the second index.

y

second region index.

Details

The function can also be called using syntax similar to the %in% operator, for example "region1 %in.region% region2"

Value

Returns a logical vector the length of x.

Author(s)

Daryl Waggott

Examples

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

index <- get.example.regions();

a <- index[[1]];
b <- index[[2]];
a <- bedr.sort.region(a);
b <- bedr.sort.region(b);

d <- a %in.region% b

}

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

Related to in.region2 in bedr...