pkgdown/header.html

Skip to contents

Extract heatmap-like CTSS data for regions of fixed width with optional sparse matrix output.

Usage

heatmapData(
  regions,
  data,
  column = "score",
  transform_fn = identity,
  sparse = FALSE,
  ...
)

Arguments

regions

GRanges with regions to extract data for (must be of the same size).

data

GRanges with value to consider in specified column (score).

column

column in mcols(data) to consider.

transform_fn

function applied on data for each region (e.g. to reduce dimension, defaults to identity).

sparse

Logical indicating whether the output should be in sparse matrix format. Default is FALSE.

...

additional arguments to pass to transform_fn.

Value

list of matrices with data for each strand.