ranges-disjoin: Disjoin then aggregate a Ranges object

Description Usage Arguments Value Examples

Description

Disjoin then aggregate a Ranges object

Usage

1
2
3

Arguments

.data

a Ranges object to disjoin

...

Name-value pairs of summary functions.

Value

a Ranges object that is now disjoint (no bases overlap).

Examples

1
2
3
4
5
6
df <- data.frame(start = 1:10, width = 5,  seqnames = "seq1",
strand = sample(c("+", "-", "*"), 10, replace = TRUE), gc = runif(10))
rng <- as_granges(df)
rng %>% disjoin_ranges()
rng %>% disjoin_ranges(gc = mean(gc))
rng %>% disjoin_ranges_directed(gc = mean(gc))

plyranges documentation built on Nov. 8, 2020, 7:36 p.m.