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.

Note

Updated 2019-07-31.

Examples

data(cellTypeMarkersList, seuratAllMarkers) ## KnownMarkers ==== markers <- KnownMarkers( markers = seuratAllMarkers, known = cellTypeMarkersList[["homoSapiens"]] ) 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…