hierarchClust | R Documentation |
Performs hierarchical clustering across sections in a SummarizedExperiment
object.
hierarchClust( object, matrix = "normalized", measure = "euclidean", p = 2, agglomeration = "complete" )
object |
A |
matrix |
Character, must be one of |
measure |
Character, must be one of |
p |
Numeric, the power of the Minkowski distance. |
agglomeration |
Character, must be one of |
A hclust
object.
dist
for measuring distance and hclust
for performing hierarchical clustering on a matrix.
data(zh.data) zh <- createTomo(zh.data) hclust_zh <- hierarchClust(zh) plot(hclust_zh) # Use other agglomeration method hclust_zh <- hierarchClust(zh, agglomeration="average") # (Not recommended) Use scaled read counts to calculate distance zh <- scaleTomo(zh) hclust_zh <- hierarchClust(zh, matrix="scaled")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.