Skip to contents

Per sample reader for runChromTFR

Usage

makeInsertionReader(
  dsa,
  sampleIds,
  regions = NULL,
  shift = c(4L, -5L),
  normalize = TRUE
)

Arguments

dsa

A DsATAC object.

sampleIds

A character vector of sample identifiers.

regions

Optional GRanges restricting the insertions.

shift

Offsets applied to the forward and reverse fragment ends.

normalize

If TRUE, counts are scaled to insertions per million.

Value

A function of a single sample index.

Examples

if (FALSE) { # \dontrun{
reader <- makeInsertionReader(dsa, getAccSamples(dsa))
} # }