compareCountMatrix.Rd
Ensures that the provided celda object was generated from a counts matrix with similar dimensions to the one provided.
compareCountMatrix(counts, celda.mod, error.on.mismatch = TRUE)
counts | Integer matrix. Rows represent features and columns represent cells. |
---|---|
celda.mod | Celda model. Options available in `celda::available.models`. |
error.on.mismatch | Logical. Whether to stop execution in the event of a count matrix mismatch. Default TRUE. |
TRUE if provided count matrix matches the one used in the celda run, FALSE otherwise. Error on FALSE if error.on.mismatch is TRUE.
Then, compare the MD5 checksum of a provided count.matrix to the count matrix checksum on a celda_list object, to see if they're the same.
celda.sim = simulateCells("celda_CG") celda.mod = celda_CG(celda.sim$counts, K=celda.sim$K, L=celda.sim$L, nchains=1, max.iter=1)#>#>#>#>#>#>#>#>#>#>#>#>#>compareCountMatrix(celda.sim$counts, celda.mod, error.on.mismatch=FALSE)#> [1] TRUE