Check Matrix Validity — CheckMatrix_scCustom (original) (raw)
Native implementation of SeuratObjects CheckMatrix but with modified warning messages.
CheckMatrix_scCustom(
object,
checks = c("infinite", "logical", "integer", "na")
)
Arguments
object
A matrix
checks
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 anNA
orNaN
Value
Emits warnings for each test and invisibly returns NULL
Examples
if (FALSE) {
mat <- Read10X(...)
CheckMatrix_scCustom(object = mat)
}