grToSeg: Dump GRanges to segmented data data.frame

Description Usage Arguments Value See Also Examples

View source: R/grToSeg.R

Description

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

Usage

1
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

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

See Also

segToGr

Examples

1
2
3
4
  clock <- getClock(model="horvathshrunk", genome="hg38")
  gr <- clock$gr

  df <- grToSeg(gr = gr)

biscuiteer documentation built on Nov. 8, 2020, 8:28 p.m.