CNPlot_events: Visualization of two copy-number profiles

View source: R/plotting.R

CNPlot_eventsR Documentation

Visualization of two copy-number profiles

Description

This function draws two copy-number profiles for visual comparison. Before to apply this function, please double-check that both profiles include the same chromosomes

Usage

CNPlot_events(events, events_2, method_diff, plot_diff = FALSE)

Arguments

events

segment table with absolute copy numbers of one sample

events_2

segment table with absolute copy numbers of the other sample

method_diff

method used for calculating difference. Options are "normalized" or "non-normalized" by ploidy status

plot_diff

logical indicating if only segments that are different in the second profile may be plotted. Default is FALSE

Value

A plot with copy-number profiles of two samples. The % genome difference between profiles is also reported.

Examples

exp_cell=cells_segcn[cells_segcn$sample=="22RV1",]
mod_cell=cells_segcn[cells_segcn$sample=="A172",]
CNPlot_events(exp_cell,mod_cell, method_diff="non-normalized")

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