Split dendrogram at each node and keep the leave (label) information.
giotto object
spatial unit
feature type
expression values to use
name of column to use for clusters
correlation score to calculate distance
distance method to use for hierarchical clustering
height of horizontal lines to plot
color of horizontal lines
show dendrogram
be verbose
data.table object
Creates a data.table with three columns and each row represents a node in the dendrogram. For each node the height of the node is given together with the two subdendrograms. This information can be used to determine in a hierarchical manner differentially expressed marker genes at each node.
g <- GiottoData::loadGiottoMini("visium")
#> 1. read Giotto object
#> 2. read Giotto feature information
#> 3. read Giotto spatial information
#> 3.1 read Giotto spatial shape information
#> 3.2 read Giotto spatial centroid information
#> 3.3 read Giotto spatial overlap information
#> 4. read Giotto image information
#> python already initialized in this session
#> active environment : '/usr/bin/python3'
#> python version : 3.10
#> checking default envname 'giotto_env'
#> a system default python environment was found
#> Using python path:
#> "/usr/bin/python3"
getDendrogramSplits(g, cluster_column = "leiden_clus")
#> Error: package 'dendextend' is not yet installed
#>
#> To install:
#> install.packages(c("dendextend"))