intersect_data_with_segment: Finds overlaps between target segments and data. Calculates...

Description Usage Arguments Value

Description

Finds overlaps between target segments and data. Calculates result of a function across overlaps.

Usage

1
2
intersect_data_with_segment(seg, gr, dat.column, func = median,
  na.value = NA, do_parallel = F, ...)

Arguments

seg

GRanges object to calculate data over

gr

GRanges object with a data column

dat.column

which mcols name to find data in gr

func

what function to use (e.g.: median, mean, length)

na.value

value to use if segment has no overlaps with gr

...

extra arguments passed to func

Value

a vector with one value per segment


cancerdatasci/ceres documentation built on May 20, 2019, 6:44 p.m.