CNconvert: A helper function for CNPlot_events

View source: R/plotting.R

CNconvertR Documentation

A helper function for CNPlot_events

Description

This function prepare profiles for plotting

Usage

CNconvert(e, base)

Arguments

e

segment table with absolute copy numbers

base

sizes of chromosomes

Value

segment table prepared for plotting

Examples

exp_cell=cells_segcn[cells_segcn$sample=="22RV1",]
base=CNpare:::chr_sizes
base$length<-1e-6*base$length #Convert sizes to Mb
base$offset<-cumsum(base$length)-base$length #Calculate the interval range of each chr
events<-CNconvert(exp_cell,base)

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