gr.spreduce: reduce based on a field(s) to split by in elementMetadata of...

gr.spreduceR Documentation

reduce based on a field(s) to split by in elementMetadata of GRanges, or given vector

Description

split and reduce GRanges by field(s) if providing a variable not already within the GRanges, may need to use dynget(variable_name)

Usage

gr.spreduce(
  gr,
  ...,
  ignore.strand = FALSE,
  pad = 0,
  return.grl = FALSE,
  sep = paste0(" ", rand.string(length = 8), " ")
)

Value

GRanges

Author(s)

Kevin Hadi


kevinmhadi/khtools documentation built on Jan. 16, 2025, 4:18 p.m.