View source: R/population_ranges.R
cnvOncoPrint | R Documentation |
Illustrates overlaps between CNV calls and genomic features across a sample population.
cnvOncoPrint(
calls,
features,
multi.calls = .largest,
top.features = 25,
top.samples = 100,
...
)
calls |
Either a |
features |
A |
multi.calls |
A function. Determines how to summarize the
CN state in a CNV region when there are multiple (potentially conflicting)
calls for one sample in that region. Defaults to |
top.features |
integer. Restricts the number of features for plotting to
features experiencing highest alteration frequency. Defaults to 25.
Use |
top.samples |
integer. Restricts the number of samples for plotting to
samples experiencing highest alteration frequency. Defaults to 100.
Use |
... |
Additional arguments passed on to |
None. Plots to a graphics device.
Ludwig Geistlinger
ComplexHeatmap::oncoPrint
# read in example CNV calls
data.dir <- system.file("extdata", package="CNVRanger")
call.file <- file.path(data.dir, "Silva16_PONE_CNV_calls.csv")
calls <- read.csv(call.file, as.is=TRUE)
# store in a GRangesList
calls <- makeGRangesListFromDataFrame(calls,
split.field="NE_id", keep.extra.columns=TRUE)
# three example genes
genes <- c( "chr1:140368053-140522639:-",
"chr2:97843887-97988140:+",
"chr2:135418586-135422028:-")
names(genes) <- c("ATP2C1", "MAP2", "ACTL8")
genes <- GRanges(genes)
# plot
cnvOncoPrint(calls, genes, top.samples = 25)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.