compareCountMatrix {celda} | R Documentation |
Checks if the counts matrix is the same one used to generate the celda model object by comparing dimensions and MD5 checksum.
compareCountMatrix(counts, celdaMod, errorOnMismatch = TRUE)
counts |
Integer matrix. Rows represent features and columns represent cells. |
celdaMod |
Celda model object. |
errorOnMismatch |
Logical. Whether to throw an error in the event of a mismatch. Default TRUE. |
Returns TRUE if provided count matrix matches the one used in the celda object and/or 'errorOnMismatch = FALSE', FALSE otherwise.
data(celdaCGSim, celdaCGMod) compareCountMatrix(celdaCGSim$counts, celdaCGMod, errorOnMismatch = FALSE)