cluster_id {ccfindR} | R Documentation |
Use factorization results in an object to assign cells into clusters.
cluster_id(object, rank = 2)
object |
Object of class |
rank |
Rank value whose factor matrices are to be used for assignment. |
Vector of length equal to the number of cells containing cluster ID numbers of each cell.
set.seed(1) x <- simulate_whx(nrow=50,ncol=100,rank=5) s <- scNMFSet(count=x$x) s <- vb_factorize(s,ranks=seq(2,8),nrun=5) cid <- cluster_id(s, rank=5) table(cid)