cut_dendro | R Documentation |
This function is designed to cut dendrograms from heirarchical clustering at a certain height and returns the cluster containing the query biomolecule.
cut_dendro(dendro, h, target)
dendro |
A dendrogram from heirarchical clustering. |
h |
A numeric of height for cutting the dendrogram. |
target |
The target biomoleclue. |
A vector of the cluster containing the query biomolecule.
Jianhai Zhang jzhan067@ucr.edu
Dr. Thomas Girke thomas.girke@ucr.edu
Tal Galili (2015). dendextend: an R package for visualizing, adjusting, and comparing trees of hierarchical clustering. Bioinformatics. DOI: 10.1093/bioinformatics/btv428
blk.mus.pa <- system.file("extdata/shinyApp/data", "bulk_mouse_cocluster.rds", package="spatialHeatmap")
blk.mus <- readRDS(blk.mus.pa)
res.hc <- matrix_hm(ID=c('Actr3b'), data=blk.mus, angleCol=60, angleRow=60, cexRow=0.8, cexCol=0.8,
margin=c(10, 6), static=TRUE, arg.lis1=list(offsetRow=0.01, offsetCol=0.01))
cut_dendro(res.hc$rowDendrogram, h=1000, 'Actr3b')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.