compareCountMatrix: Check count matrix consistency

Description Usage Arguments Value Examples

View source: R/celda_functions.R

Description

Checks if the counts matrix is the same one used to generate the celda model object by comparing dimensions and MD5 checksum.

Usage

1
compareCountMatrix(counts, celda.mod, error.on.mismatch = TRUE)

Arguments

counts

Integer matrix. Rows represent features and columns represent cells.

celda.mod

Celda model object.

error.on.mismatch

Logical. Whether to throw an error in the event of a mismatch. Default TRUE.

Value

Returns TRUE if provided count matrix matches the one used in the celda object and/or 'error.on.mismatch=FALSE', FALSE otherwise.

Examples

1
2
 compareCountMatrix(celda.CG.sim$counts, celda.CG.mod, 
                    error.on.mismatch=FALSE)

compbiomed/celda documentation built on May 25, 2019, 3:58 a.m.