plotSeg {jointseg} | R Documentation |
Plot signal and breakpoints with segment-level signal estimates
Description
Plot signal and breakpoints with segment-level signal estimates
Usage
plotSeg(dat, breakpoints = NULL, regNames = NULL,
exclNames = c("genotype", "region", "bT", "bN", "cellularity"),
ylabs = colnames(dat), ylims = NULL, binExclPattern = "^b[N|T]*$",
col = "#33333333", pch = 19, cex = 0.3)
Arguments
dat |
A |
breakpoints |
A vector of breakpoints positions, or a |
regNames |
Region labels, a vector of length
|
exclNames |
A vector of column names corresponding to columns that should not be plotted. |
ylabs |
A vector of 'y' labels (column names or indices) that should be plotted. |
ylims |
An optional |
binExclPattern |
A vector of column names or indices in
|
col |
Color of plotting symbol, see |
pch |
Plotting symbol, see |
cex |
Magnification factor for plotting symbol, see |
Details
Argument 'binCols' is mainly used to avoid calculating mean levels for allelic ratios, which would not make sense as they are typically multimodal.
Author(s)
Morgane Pierre-Jean and Pierre Neuvial
Examples
affyDat <- acnr::loadCnRegionData(dataSet="GSE29172", tumorFraction=1)
sim <- getCopyNumberDataByResampling(1e4, 5, minLength=100, regData=affyDat)
dat <- sim$profile
res <- PSSeg(dat, method="RBS", stat=c("c", "d"), K=50)
bkpList <- list(true=sim$bkp, est=res$bestSeg)
plotSeg(dat, breakpoints=bkpList)