filter_cluster_sd: Filter out gene clusters with small standard deviation.

View source: R/filter_gene_clusters.R

filter_cluster_sdR Documentation

Filter out gene clusters with small standard deviation.

Description

Filter out gene clusters with small standard deviation.

Usage

filter_cluster_sd(object = NULL, min_sd = 0.2)

Arguments

object

A ClusterSet object.

min_sd

An integer indicating the minimum standard deviation for a clusters to be kept.

Value

A ClusterSet object where clusters not passing the filter have been removed.

Examples

load_example_dataset("7871581/files/pbmc3k_medium_clusters")
df <- cluster_stats(pbmc3k_medium_clusters)  
plot_cluster_stats(df)
plot_cluster_stats(df, highlight=df$sd_total > 0.3) 
pbmc3k_medium_clusters_sub <- filter_cluster_sd(pbmc3k_medium_clusters, min_sd=0.3)
plot_cluster_stats(cluster_stats(pbmc3k_medium_clusters_sub))

dputhier/scigenex documentation built on May 31, 2024, 8:59 a.m.