binSegments: Split a segmented copy number profile into a set of...

Description Usage Arguments Examples

View source: R/binSegments.R View source: R/binSegments 2.R

Description

This function will not be called directly by the user. The function splits a segmented copy number profile into a set of predefined bins, defined by the binRegions function.

Usage

1
binSegments(seg, bin.regions)

Arguments

seg

a data frame containing the input copy number profile. Output from the continuousSegments function.

bin.regions

a data frame with predefinded bin regions. Output from the binRegions function.

Examples

1
2
3
4
segment <- test.data[[1]]
seg = continuousSegments(seg=segment,hg=hg19, exclude.x.chrom=F)
bin.reg <- binRegions(hg=hg19, bin.width=3*10^7, overlap=T)
bin.seg <- binSegments(seg=seg, bin.regions=bin.reg)

arnevpladsen/CARMA documentation built on Dec. 19, 2021, 4:39 a.m.