Description Usage Arguments Value
Clustering and plotting cells based on cnv score matrix using ComplexHeatmap package.
Args:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | visualCNV(
data,
assay = NULL,
ref_lab = "ref",
obs_lab = "obs",
distance_method = "euclidean",
clustering_method = "ward.D2",
cutree_k = NULL,
colors = colorRampPalette(rev(brewer.pal(n = 11, name = "RdBu")))(11),
border = TRUE,
plot_dend = FALSE,
out_file = "plot_cnv.png",
out_path = "output_dir"
)
|
data |
an 'infercnv' object as produced by inferCNV. |
assay |
assay which assigned to use for plotting. |
ref_lab |
label for reference cells. |
obs_lab |
label for observations. |
clustering_method |
clustering method used. Accepts the same values as stats::hclust. |
cutree_k |
an integer scalar or vector with the desired number of groups. |
colors |
vector of colors used in heatmap. |
border |
whether draw border. The value can be logical or a string of color. |
plot_dend |
whether to plot dendrogram or not. The value should be logical. |
out_file |
filename to save plot. |
out_path |
output directory. |
dist_method |
distance measure used in clustering cells, possible values are 'correlation' for Pearson correlation and all the distances supported by stats::dist. |
Returns an 'infercnv' object including: 1. Clustering result. 2. Dendlist of 'cutree'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.