Translate multilevel segmentation into a dendrogram, with the lowest level of the dendrogram listing the cells
multi2dend(cl, counts, deep = FALSE, dist = "cor")
resulting dendrogram
igraph communities object, returned from igraph community detection functions
dgCmatrix of counts
boolean If TRUE, take (cl$memberships[1,]). Otherwise, uses as.integer(membership(cl)) (default=FALSE)
Distance metric used (default='cor'). Eiether 'cor' for the correlation distance in log10 space, or 'JS' for the Jensen–Shannon distance metric (i.e. the square root of the Jensen–Shannon divergence)