Graph Visualization of Pathway Clustering
cluster_graph_vis(clu_obj, kappa_mat, enrichment_res,
kappa_threshold = 0.35, use_names = FALSE)
clustering result (either a matrix obtained via `fuzzy_pw_clustering` or a vector obtained via `hierarchical_pw_clustering`)
matrix of kappa statistics (output of `create_kappa_matrix`)
data frame of pathway enrichment results
threshold for kappa statistics, defining strong relation (default = 0.35)
boolean to indicate whether to use pathway names instead of IDs (default = FALSE, i.e. use IDs)
Plots a graph diagram of clustering results. Each node is a term from `enrichment_res`. Size of node corresponds to -log(lowest_p). Thickness of the edges between nodes correspond to the kappa statistic between the two terms. Color of each node corresponds to distinct clusters. For fuzzy clustering, if a term is in multiple clusters, multiple colors are utilized.
# NOT RUN {
cluster_graph_vis(clu_obj, kappa_mat, enrichment_res)
# }
Run the code above in your browser using DataLab