-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obsm 'local_scores' needs to be of one specific type when running li.mt.bivariate #147
Comments
Hi @dertrotl, This looks like a versioning issue or perhaps a format issue with the input matrix. Also, providing some info on your session could help. Daniel |
Hi @dbdimitrov, thank you for your response. I checked the format of the input matrix,
Tried converting it like this Some session information:
Thanks! |
Seems to work if one is trying not add the results to the adata object, e.g. setting
Output |
Hi @dertrotl, Thanks a lot for raising this issue. I encountered it also myself, it seems like AnnData now enforces specific types in obsm, and one can no longer assign an AnnData object there. I will change it in next update. Best wishes, |
PS. tbh, I couldn't think of an elegant way to fix this such that one can save in place. Commonly, people would store a matrix in obsm, and then auxiliary information in uns, etc. I personally don't like that, rebuilding an AnnData object from this scattered data would be a pain. So, I will instead just drop the inplace parameter and would always return an AnnData with all the information in it - i.e. the one that is currently stored in obsm. If anyone has a better idea let me know :) |
Hey, first of all, thanks a lot for this great package!
However, I had some issues following your Bivariate Ligand-Receptor Relationships tutorial. When running the following code from your tutorial:
I get the following error:
Obsm 'local_scores' needs to be of one of np.ndarray, numpy.ma.core.MaskedArray, scipy.sparse.spmatrix, awkward.Array, h5py.Dataset, zarr.Array, zappy.base.ZappyArray, anndata.experimental.[CSC,CSR]Dataset, dask.array.Array, cupy.ndarray, or cupyx.scipy.sparse.spmatrix, not <class 'anndata._core.anndata.AnnData'>. ( see screeshot)
Thank you for your help!
The text was updated successfully, but these errors were encountered: