grToSeg {biscuiteer} | R 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)

[Package biscuiteer version 1.0.0 Index]