Cell types per cluster

cellTypesPerCluster(object, ...)

# S4 method for KnownMarkers
cellTypesPerCluster(object, min = 1L,
  max = Inf)

Arguments

object

Object.

min

integer(1). Minimum number of marker genes per cluster.

max

integer(1). Maximum number of marker genes per cluster.

...

Additional arguments.

Value

grouped_df. Grouped by cluster column, containing the count (n) of significant known makers per cell type.

Examples

data(seurat_all_markers, cell_type_markers) markers <- KnownMarkers( markers = seurat_all_markers, known = cell_type_markers$homoSapiens )
#> Grouping by cluster.
#> Grouping by cellType.
x <- cellTypesPerCluster(markers) print(x)
#> # A tibble: 2 x 6 #> # Groups: cluster [2] #> cluster cellType n name geneID geneName #> <fct> <fct> <int> <chr> <chr> <chr> #> 1 1 Macrophage 1 IL1B ENSG00000125538 IL1B #> 2 2 Dendritic… 7 HLA-DPB1, HLA-… ENSG00000215048, … HLA-DPB1, HLA-DQB…