Skip to content

How to do Hierarchical Clustering in R like use web results? #10

@yubau1112

Description

@yubau1112

Hi, I used

morpheus
https://software.broadinstitute.org/morpheus/

It's a good tool to make heatmap!

but I need to automatically generate pictures.

So, I used

Morpheus.js-based heat map widget in R.
https://github.com/cmap/morpheus.R

but how to do "Hierarchical Clustering" in R

I want to use
Hierarchical Clustering

1. Metric One minus spearman rank correlation 
2. Linkage method Complete 
3. Cluster Columns and Rows

My command:

myfun <- function(x) hclust(as.dist(1-cor(t(as.matrix(x)),
                                          method = "spearman")), method = "complete")

morpheus(x, colorScheme=list(scalingMode="relative", colors=c('blue','White','red')),
         dendrogram = 'both',
         rowSize = 6,
         columnSize = 6,
         hclustfun = myfun),
         #tools=list(list(name='Hierarchical Clustering',
         #               params=list(group_rows_by=list('annotation2'), cluster='Rows and columns'))),
         columnAnnotations =columnAnnotations , overrideRowDefaults=FALSE,
         rows=list(list(field=list('annotation1'), highlightMatchingValues=FALSE, display=list('color'))))

But heatmap different with web results

how to do Hierarchical Clustering in R like use web model results?

thanks!

yubau

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions