Cluster Enriched Terms
cluster_enriched_terms( enrichment_res, method = "hierarchical", plot_clusters_graph = TRUE, use_description = FALSE, use_active_snw_genes = FALSE, ... )
data frame of pathfindR enrichment results. Must-have
columns are "Term_Description" (if
boolean value indicate whether or not to plot the graph diagram of clustering results (default = TRUE)
Boolean argument to indicate whether term descriptions
(in the "Term_Description" column) should be used. (default =
boolean to indicate whether or not to use non-input active subnetwork genes in the calculation of kappa statistics (default = FALSE, i.e. only use affected genes)
a data frame of clustering results. For "hierarchical", the cluster assignments (Cluster) and whether the term is representative of its cluster (Status) is added as columns. For "fuzzy", terms that are in multiple clusters are provided for each cluster. The cluster assignments (Cluster) and whether the term is representative of its cluster (Status) is added as columns.
hierarchical_term_clustering for hierarchical
clustering of enriched terms.
fuzzy_term_clustering for fuzzy clustering of enriched terms.
cluster_graph_vis for graph visualization of clustering.
example_clustered <- cluster_enriched_terms(RA_output[1:3, ], plot_clusters_graph = FALSE) #> The maximum average silhouette width was 0.19 for k = 2 #> example_clustered <- cluster_enriched_terms(RA_output[1:3, ], method = "fuzzy", plot_clusters_graph = FALSE)