grToSeg: Dump GRanges to segmented data data.frame

View source: R/grToSeg.R

grToSegR Documentation

Dump GRanges to segmented data data.frame

Description

Output data.frame can be written to a .seg file if supplied with filename input argument

Usage

grToSeg(gr, filename = NULL, minAbs = NULL)

Arguments

gr

A GRanges or GRangesList to dump to .seg file

filename

Where to save the result - unsaved if NULL (DEFAULT: NULL)

minAbs

Minimum absolute gain/loss cutoff (DEFAULT: NULL)

Value

     A data.frame with columns:
               (ID, chrom, loc.start, loc.end, num.mark, seg.mean)

See Also

segToGr

Examples


  clock <- getClock(model="horvathshrunk", genome="hg38")
  gr <- clock$gr

  df <- grToSeg(gr = gr)


trichelab/biscuiteer documentation built on March 4, 2024, 12:22 a.m.