Native implementation of SeuratObjects CheckMatrix but with modified warning messages.
CheckMatrix_scCustom(
object,
checks = c("infinite", "logical", "integer", "na")
)
A matrix
Type of checks to perform, choose one or more from:
“infinite
”: Emit a warning if any value is infinite
“logical
”: Emit a warning if any value is a logical
“integer
”: Emit a warning if any value is not
an integer
“na
”: Emit a warning if any value is an NA
or NaN
Emits warnings for each test and invisibly returns NULL
Re-implementing CheckMatrix
only for sparse matrices with modified warning messages. Original function from SeuratObject https://github.com/satijalab/seurat-object/blob/9c0eda946e162d8595696e5280a6ecda6284db39/R/utils.R#L625-L650 (License: MIT).
if (FALSE) {
mat <- Read10X(...)
CheckMatrix_scCustom(object = mat)
}