cluster_heterogeneity: cluster heterogeneity across the sample

View source: R/cluster_heterogeneity.R

cluster_heterogeneityR Documentation

cluster heterogeneity across the sample

Description

cluster heterogeneity across the sample

Usage

cluster_heterogeneity(cnr, by = NULL, cluster_column = NULL)

Arguments

cnr

a cnr bundle

by

a categorical variable used to stratify the cell population. If NULL i.e. no stratification, the representation will be done overall

cluster_column

column to use as cluster

Value

A 'data.frame' with a simple cluster heterogeneity summary. Table provides total counts of each clone (optionally be stratified by a group), clone representation, overal frequency per clone (also computed for stratified data), and Shannon's Diversity index for stratified data.

Examples


data(cnr)

cnr <- phylo_cnr(cnr)

cnr <- setBrayClusters(cnr, tree.height = 0.065)

cnr <- cluster_heterogeneity(cnr, cluster_column = "BrayC")


SingerLab/gac documentation built on March 23, 2024, 5:15 a.m.