Ensure Sparse Matrix is in a Format Compatible with AnnData
Source:R/ensure_csparse_matrix.R
ensure_csparse_matrix.Rd
This function checks if a sparse matrix is in a format compatible with AnnData (CsparseMatrix format, e.g., dgCMatrix) and converts it if necessary.