Another visualization method for copy number profile like show_cn_profile.
a CopyNumber object or a data.frame
containing at least 'chromosome', 'start',
'end', 'segVal' these columns.
default is NULL
, can be a chracter vector representing multiple samples or
number of samples to show.
If data argument is a data.frame
, a column called sample must exist.
if TRUE
(default), show title with sample ID.
chromosomes start with 'chr'.
genome build version, used when data
is a data.frame
, should be 'hg19' or 'hg38'.
colors for the heatmaps. If it is NULL
, set to
circlize::colorRamp2(c(1, 2, 4), c("blue", "black", "red"))
.
side of the heatmaps.
other parameters passing to circlize::circos.genomicHeatmap.
a circos plot
load(system.file("extdata", "toy_copynumber.RData",
package = "sigminer", mustWork = TRUE
))
# \donttest{
show_cn_circos(cn, samples = 1)
show_cn_circos(cn, samples = "TCGA-99-7458-01A-11D-2035-01")
## Remove title
show_cn_circos(cn, samples = 1, show_title = FALSE)
## Subset chromosomes
show_cn_circos(cn, samples = 1, chrs = c("chr1", "chr2", "chr3"))
## Arrange plots
layout(matrix(1:4, 2, 2))
show_cn_circos(cn, samples = 4)
layout(1) # reset layout
# }