episcanpy.api.pp.sparse

episcanpy.api.pp.sparse(adata, sparse_format='csr', copy=False)

Transform adata.X from a matrix or array to a sparse matrix. sparse_format : accepted input are csr or csc if copy is True return a new AnnData object. Else overwrite the input object