Skip to contents

Cell types per cluster

Usage

cellTypesPerCluster(object, ...)

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

Arguments

object

Object.

min, max

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

...

Additional arguments.

Value

DFrame.

Note

Updated 2023-04-27.

Examples

data(KnownMarkers, package = "AcidTest")

## KnownMarkers ====
object <- KnownMarkers
x <- cellTypesPerCluster(object)
print(x)
#> DataFrame with 2 rows and 6 columns
#>    cluster       cellType                   name                 geneId
#>   <factor>       <factor>            <character>            <character>
#> 1        1 Macrophage                       IL1B        ENSG00000125538
#> 2        2 Dendritic Cell HLA-DQB1, HLA-DRB1, .. ENSG00000179344, ENS..
#>                 geneName         n
#>              <character> <integer>
#> 1                   IL1B         1
#> 2 HLA-DQB1, HLA-DRB1, ..         4