getGRangesFormat {copynumber} | R Documentation

## Get segments on the GRanges format

### Description

The segments data frame obtained e.g. by `pcf`, `multipcf` or `aspcf` is converted to the GRanges format.

### Usage

    getGRangesFormat(segments)

### Arguments

`segments` | a data frame containing segmentation results found by e.g. `pcf`, `multipcf` or `aspcf`.

### Details

GRanges, in the GenomicRanges package, is the standard BioConductor containers for range data. For some applications it may therefore be useful to convert segmentation results to this format.

### Value

The segments converted to the GRanges container class.

### Author(s)

Gro Nilsen

### Examples

    #load lymphoma data
    data(lymphoma)
    #Run pcf
    seg <- pcf(data=lymphoma,gamma=12)
    #Obtain the GRanges format
    gr <- getGRangesFormat(seg)

[Package copynumber version 1.22.0 Index]