gm_clust | R Documentation |
Takes the output of gm_filter or a data frame that with the results of GSEA analysis and returns and hclust object that can be plotted using the gm_dendplot function.
gm_clust(df)
df |
Data frame that contains at least three columns: an ID column for the gene set names, a NES column with the normalized enrichment score and a core_enrichment column containing the genes in the leading edge of each gene set separated by '/'. |
An object of class hclust that contains the clustering of the gene sets by the core enriched genes.First a distance matrix is calculated using the 'binary' method and then a cluster with the 'complete' method is created.
data(genesets_sel)
gs.cl <- gm_clust(genesets_sel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.