However, this results in the following error:
Error in UseMethod(generic = “DefaultAssay”, object = object): no applicable method for ‘DefaultAssay’ applied to an object of class “c(‘anndata._core.anndata.AnnData’, ‘python.builtin.object’)”
Traceback:
I’m not really an expert for Seurat. However, from the error latent contains an AnnData object and not a matrix. Can you provide the data type of latent?
Thank you very much for your reply, and I apologize for the delay in getting back to you. You were correct, I checked the format of latent and adata, and the issue was indeed there. The error has been resolved, thank you so much.
However, I have encountered a new problem. When running
I get the error Error in irlba::irlba(L, nv = n, nu = 0, maxit = iters): function 'sexp_as_cholmod_sparse' not provided by package 'Matrix'.
My Matrix version is [1] ‘1.6.1.1’. Do you know which version of Matrix provides sexp_as_cholmod_sparse?
Thank you again for your reply!