interval_spacing: Calculate interval spacing.

Description Usage Arguments Value See Also Examples

View source: R/spacing.r

Description

Spacing for the first interval of each chromosome is undefined (NA). The leading interval of an overlapping interval pair has a negative value.

Usage

1

Arguments

x

tbl_interval()

Value

tbl_interval() with .spacing column.

See Also

Other utilities: bed12_to_exons, bed_makewindows, bound_intervals, flip_strands

Examples

1
2
3
4
5
6
7
8
x <- trbl_interval(
  ~chrom, ~start, ~end,
  'chr1', 1,      100,
  'chr1', 150,    200,
  'chr2', 200,    300
)

interval_spacing(x)

rnabioco/valr documentation built on Jan. 6, 2019, 9:06 a.m.