View source: R/compare_gene_sets.R
cmp_to_a_list | R Documentation |
Map a user list to a ClusterSet and display various metrics related to overlap with internaly stored clusters
cmp_to_a_list(
object = NULL,
user_list = NULL,
name_user_list = "user list",
background = NULL,
colors = c("#ED7931", "#3C78AE"),
module = c("clust_size", "overlap_size", "percent_overlap", "percent_covered",
"jacard_stat", "hypergeom"),
as.list = FALSE
)
object |
A ClusterSet object |
user_list |
A set of elements to be compared to clusters stored in the object. |
name_user_list |
A name for the user list. |
background |
A background(e.g. all the gene of the genome). |
colors |
A set of colors. |
module |
The analyses to be performed. |
as.list |
Whether a list of plot should be returned (default to a patchwork). |
A patchwork representing the various metrics (or a list of diagram).
set.seed(124)
load_example_dataset("7871581/files/pbmc3k_medium_clusters")
user_list <- sample(row_names(pbmc3k_medium_clusters), 100)
cmp_to_a_list(pbmc3k_medium_clusters, user_list, background=user_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.