getCNbins: Get copy-number per bins

View source: R/dataprocessing_functions.R

getCNbinsR Documentation

Get copy-number per bins

Description

This function transform segment tables to bin tables

Usage

getCNbins(posBins, data, samples)

Arguments

posBins

list with genomic positions of bins. Each list contains data from each chromosome. Obtained from getBinsStartsEnds

data

segment table of copy numbers of all samples

samples

vector with sample names

Value

bin table of copy numbers of all samples

Examples

posBins <- lapply(1,function(chr)
    getBinsStartsEnds(window=1000000, chr, lengthChr[chr]))
cells_bin <- getCNbins(posBins=posBins,
    data=cells_segcn[cells_segcn$sample=="22RV1",], samples="22RV1")

macintyrelab/CNpare documentation built on April 15, 2022, 4:46 a.m.