plot_binary_cut | R Documentation |
Cluster functional terms by recursively binary cutting the similarity matrix
plot_binary_cut(
mat,
value_fun = area_above_ecdf,
cutoff = 0.85,
partition_fun = partition_by_pam,
dend = NULL,
dend_width = unit(3, "cm"),
depth = NULL,
show_heatmap_legend = TRUE,
...
)
binary_cut(
mat,
value_fun = area_above_ecdf,
partition_fun = partition_by_hclust,
cutoff = 0.85,
try_all_partition_fun = TRUE,
partial = nrow(mat) > 1500
)
mat |
A similarity matrix. |
value_fun |
A function that calculates the scores for the four submatrices on a node. |
cutoff |
The cutoff for splitting the dendrogram. |
partition_fun |
A function to split each node into two groups. Pre-defined functions
in this package are |
dend |
A dendrogram object, used internally. |
dend_width |
Width of the dendrogram on the plot. |
depth |
Depth of the recursive binary cut process. |
show_heatmap_legend |
Whether to show the heatmap legend. |
... |
Other arguments. |
try_all_partition_fun |
Different |
partial |
Whether to generate the complete clustering or the clustering stops when sub-matrices cannot be split anymore. |
After the functions which perform clustering are executed, such as simplifyGO()
or
binary_cut()
, the dendrogram is temporarily saved and plot_binary_cut()
directly
uses this dendrogram.
binary_cut()
returns a vector of numeric cluster labels.
mat = readRDS(system.file("extdata", "random_GO_BP_sim_mat.rds",
package = "simplifyEnrichment"))
plot_binary_cut(mat, depth = 1)
plot_binary_cut(mat, depth = 2)
plot_binary_cut(mat)
mat = readRDS(system.file("extdata", "random_GO_BP_sim_mat.rds",
package = "simplifyEnrichment"))
binary_cut(mat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.