getGRangesFormat: Get segments on the GRanges format

Description Usage Arguments Details Value Author(s) Examples

View source: R/getGRangesFormat.r

Description

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

Usage

1

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

1
2
3
4
5
6
#load lymphoma data
data(lymphoma)
#Run pcf
seg <- pcf(data=lymphoma,gamma=12)
#Obtain the GRanges format
gr <- getGRangesFormat(seg)

copynumber documentation built on Nov. 8, 2020, 6:10 p.m.