View source: R/filter_gene_clusters.R
filter_cluster_size | R Documentation |
This function filters out gene clusters from a ClusterSet object based on their size.
filter_cluster_size(object = NULL, min_cluster_size = 5)
object |
A ClusterSet object. |
min_cluster_size |
An integer indicating the minimum size for a clusters to be kept. |
A ClusterSet object where clusters not passing the filter have been removed.
# Set verbosity to 1 to display info messages only.
set_verbosity(1)
# Load a dataset
load_example_dataset('7871581/files/pbmc3k_medium_clusters')
clust_size(pbmc3k_medium_clusters)
# Remove the cluster with less than 20 genes
clust_set <- filter_cluster_size(pbmc3k_medium_clusters,
min_cluster_size = 20)
clust_size(clust_set)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.