Get the MLE cell type estimates for each cell

celltypes(x)

# S3 method for cellassign
celltypes(x)

Arguments

x

An object of class cellassign returned by a call to cellassign(...)

Value

A character vector with the MLE cell type for each cell

Examples

data(example_cellassign_fit) celltypes(example_cellassign_fit)
#> [1] "Group1" "Group2" "Group2" "Group1" "Group1" "Group1" "Group1" "Group2" #> [9] "Group1" "Group1" "Group2" "Group1" "Group2" "Group1" "Group1" "Group1" #> [17] "Group2" "Group1" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" #> [25] "Group1" "Group2" "Group1" "Group2" "Group1" "Group2" "Group2" "Group2" #> [33] "Group1" "Group1" "Group2" "Group2" "Group1" "Group2" "Group2" "Group2" #> [41] "Group1" "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" #> [49] "Group2" "Group2" "Group1" "Group1" "Group2" "Group1" "Group1" "Group1" #> [57] "Group2" "Group2" "Group1" "Group1" "Group2" "Group1" "Group2" "Group2" #> [65] "Group1" "Group2" "Group1" "Group1" "Group2" "Group1" "Group1" "Group1" #> [73] "Group2" "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" #> [81] "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" #> [89] "Group2" "Group2" "Group2" "Group2" "Group1" "Group1" "Group2" "Group2" #> [97] "Group1" "Group2" "Group1" "Group2" "Group1" "Group2" "Group2" "Group2" #> [105] "Group2" "Group1" "Group1" "Group2" "Group1" "Group1" "Group1" "Group1" #> [113] "Group2" "Group2" "Group2" "Group1" "Group1" "Group2" "Group2" "Group1" #> [121] "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" "Group1" #> [129] "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" "Group1" #> [137] "Group1" "Group2" "Group1" "Group1" "Group1" "Group1" "Group2" "Group2" #> [145] "Group1" "Group2" "Group1" "Group1" "Group2" "Group1" "Group1" "Group1" #> [153] "Group1" "Group2" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" #> [161] "Group2" "Group1" "Group1" "Group2" "Group2" "Group1" "Group1" "Group1" #> [169] "Group1" "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" "Group2" #> [177] "Group1" "Group1" "Group2" "Group2" "Group2" "Group2" "Group2" "Group2" #> [185] "Group2" "Group1" "Group1" "Group2" "Group2" "Group2" "Group2" "Group1" #> [193] "Group1" "Group1" "Group1" "Group1" "Group2" "Group1" "Group1" "Group2" #> [201] "Group2" "Group2" "Group2" "Group1" "Group2" "Group2" "Group2" "Group2" #> [209] "Group1" "Group1" "Group1" "Group2" "Group1" "Group1" "Group2" "Group1" #> [217] "Group2" "Group1" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" #> [225] "Group2" "Group2" "Group1" "Group2" "Group1" "Group2" "Group1" "Group1" #> [233] "Group2" "Group1" "Group1" "Group2" "Group2" "Group2" "Group1" "Group2" #> [241] "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" "Group2" #> [249] "Group1" "Group2" "Group1" "Group1" "Group2" "Group1" "Group2" "Group2" #> [257] "Group1" "Group1" "Group2" "Group1" "Group2" "Group2" "Group2" "Group2" #> [265] "Group2" "Group1" "Group2" "Group1" "Group2" "Group1" "Group1" "Group1" #> [273] "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" "Group1" "Group2" #> [281] "Group1" "Group1" "Group2" "Group2" "Group1" "Group2" "Group2" "Group2" #> [289] "Group1" "Group1" "Group2" "Group1" "Group2" "Group1" "Group1" "Group1" #> [297] "Group2" "Group1" "Group2" "Group1" "Group2" "Group2" "Group1" "Group1" #> [305] "Group1" "Group2" "Group2" "Group2" "Group2" "Group1" "Group1" "Group2" #> [313] "Group2" "Group1" "Group2" "Group2" "Group2" "Group2" "Group2" "Group2" #> [321] "Group2" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" "Group2" #> [329] "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" "Group1" #> [337] "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" #> [345] "Group1" "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" "Group1" #> [353] "Group1" "Group1" "Group1" "Group1" "Group2" "Group2" "Group2" "Group1" #> [361] "Group2" "Group1" "Group2" "Group2" "Group1" "Group2" "Group1" "Group1" #> [369] "Group2" "Group1" "Group2" "Group1" "Group1" "Group1" "Group1" "Group1" #> [377] "Group2" "Group2" "Group2" "Group2" "Group1" "Group1" "Group2" "Group2" #> [385] "Group1" "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" #> [393] "Group1" "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" "Group2" #> [401] "Group2" "Group2" "Group1" "Group2" "Group1" "Group2" "Group2" "Group2" #> [409] "Group2" "Group2" "Group2" "Group2" "Group1" "Group1" "Group1" "Group1" #> [417] "Group2" "Group2" "Group2" "Group2" "Group2" "Group1" "Group2" "Group1" #> [425] "Group2" "Group1" "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" #> [433] "Group1" "Group2" "Group1" "Group2" "Group2" "Group2" "Group2" "Group1" #> [441] "Group1" "Group1" "Group1" "Group1" "Group1" "Group1" "Group1" "Group2" #> [449] "Group2" "Group2" "Group2" "Group1" "Group1" "Group1" "Group2" "Group1" #> [457] "Group2" "Group1" "Group2" "Group2" "Group1" "Group1" "Group1" "Group1" #> [465] "Group2" "Group1" "Group1" "Group2" "Group2" "Group2" "Group2" "Group2" #> [473] "Group2" "Group1" "Group2" "Group1" "Group1" "Group2" "Group2" "Group1" #> [481] "Group2" "Group2" "Group2" "Group1" "Group1" "Group2" "Group1" "Group1" #> [489] "Group2" "Group2" "Group1" "Group2" "Group2" "Group1" "Group1" "Group2" #> [497] "Group1" "Group2" "Group2" "Group1"