collapse_mem_clusters | R Documentation |
Collapse Multienrichment clusters
collapse_mem_clusters(
mem,
clusters,
choose = NULL,
per_cluster = Inf,
byCols = c("composite_rank", "minp_rank", "gene_count_rank"),
return_type = c("cnet", "mem"),
max_labels = 4,
max_nchar_labels = 25,
include_cluster_title = TRUE,
cluster_color_min_fraction = 0.5,
verbose = FALSE,
...
)
cluster_color_min_fraction |
|
This function is similar to rank_mem_clusters()
in that it
starts with mem
results from multiEnrichMap()
and a list
of clusters
of pathways/sets. Instead of ranking and choosing
exemplars from each clusters, it simply collapses each cluster
into one super-set that contains union of all genes.
It does also run rank_mem_clusters()
in the event one would
want to collapse only the top per_cluster
entries for each
cluster, but the default is to include them all.
By default return_type="cnet"
and this function returns
an augmented Cnet plot. The labels of each cluster are defined
by the input names(clusters)
, however an igraph
attribute
"set_labels"
includes an abbreviated label of the top ranked
sets for each cluster. This label is probably the closest thing
to summarizing the composition of each cluster.
Other jam utility functions:
avg_angles()
,
avg_colors_by_list()
,
call_fn_ellipsis_deprecated()
,
cell_fun_bivariate()
,
colorRamp2D()
,
deconcat_df2()
,
display_colorRamp2D()
,
enrichList2geneHitList()
,
filter_mem_genes()
,
filter_mem_sets()
,
find_colname()
,
get_hull_data()
,
get_igraph_layout()
,
gsubs_remove()
,
handle_igraph_param_list()
,
isColorBlank()
,
make_legend_bivariate()
,
make_point_hull()
,
mem_find_overlap()
,
order_colors()
,
rank_mem_clusters()
,
rotate_coordinates()
,
subgraph_jam()
,
subset_mem()
,
summarize_node_spacing()
,
xyAngle()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.