dot-overlaps: Join two tables by overlapping rows

Description Usage Arguments Value

Description

Join two tables by overlapping rows

Usage

1
2
.overlaps(x, xid, xa, xb, y, yid = xid, ya = xa, yb = xb,
  add_id = TRUE)

Arguments

x

data.frame: table with interval info in each row (with arbitrary additional columns).

xid

character: name of the scaffold column in x

xa

character: name of the start position column in x

xb

character: name of the stop position column in x

y

data.frame: like x, but for a second set of intervals

yid

character: name of the scaffold column in y

ya

character: name of the start position column in y

yb

character: name of the stop position column in y

add_id

logical: whether to add a column of indices holding the column orders of the original tables (named "xid" and "yid", respectively)

Value

data.frame with columns corresponding to those of x and y and rows being cases where intervals overlap between the two.


arendsee/synder documentation built on May 10, 2019, 1:26 p.m.