Cluster cell counts per sample

clusterCellCountsPerSample(object, ...)

# S4 method for SingleCellExperiment
clusterCellCountsPerSample(object)

# S4 method for Seurat
clusterCellCountsPerSample(object)

# S4 method for cell_data_set
clusterCellCountsPerSample(object)

Arguments

object

Object.

...

Additional arguments.

Value

grouped_df. Grouped by sampleName column, arranged by abundance.

Note

Updated 2019-07-31.

Examples

data( Seurat, cell_data_set, package = "acidtest" ) ## Seurat ==== object <- Seurat x <- clusterCellCountsPerSample(object) print(x)
#> # A tibble: 3 x 4 #> # Groups: sampleName [1] #> sampleName ident n ratio #> <fct> <fct> <int> <dbl> #> 1 unknown 0 36 0.45 #> 2 unknown 1 25 0.312 #> 3 unknown 2 19 0.238
## cell_data_set ==== object <- cell_data_set x <- clusterCellCountsPerSample(object) print(x)
#> # A tibble: 4 x 4 #> # Groups: sampleName [1] #> sampleName ident n ratio #> <fct> <fct> <int> <dbl> #> 1 unknown 1 81 0.405 #> 2 unknown 2 57 0.285 #> 3 unknown 3 35 0.175 #> 4 unknown 4 27 0.135