-
Notifications
You must be signed in to change notification settings - Fork 20
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
Spatially informed bivariate metrics in tensor cell2cell and MOFA #123
Comments
Hi @Zach-Sten,
Not sure I understand the question. The bivariate scores result in a M x D (obs x interactions) matrix so I'm not sure what would be your 3rd/4rd dimensions for MOFA/Tensor-cell2cell. So, since it's just 2D, you can easily use it with NMF or archetypal analysis, etc. Maybe you could clarify?
From a quick read, it seems like the easiest/suggested way (by Squidpy/AnnData devs) is to essentially calculate spatial proximities for each slide and then concatenate all of them, filling the graph/proximities with 0 across slides (scverse/squidpy#318). |
Thanks for getting back to me so soon. We have used NMF for getting our factors but were interested if other methods such as tenosr cell2cell and MOFA would give different results. As for the spatial proximities, we scan tissue microarrays where each core is treated as an individual sample. Therefore, instead of using squidpy's suggested method we separate out each core by clustering the spatial coordinates (since there is empty space between the cores they separate out nicely) and run the spatial proximities and bivariate scores in a loop as you suggest. I haven't come across any tools that do this automatically (especially separating out each core from a slide). |
Hi @Zach-Sten,
Tensor-cell2cell uses a dimensionality reduction which is very similar to NMF, except it is extended to 4 dimensions (source cell, target cell, ligand-receptor interaction, and sample). MOFA+ is in short an extension of standard factor analysis to multi-views + some regularizations. So, for the NMF scores unless you have some additional dimensions (besides observations and interactions), you can try other standard matrix decomposition approaches meant to work for 2D, e.g. Factor analysis, PCA, or e.g. archetypal analysis (https://github.com/rockdeme/chrysalis).
I see. Yeah, then I would assume NMF or any other standard factorization should also be able to capture the clusters. Hope this helps. |
Hi all,
I've been testing the use of cell2cell and MOFA within Liana and was wondering if there was a way to use the ligand-receptor information from the spatial bivariate vignette instead of rank_aggregate? Also, I noticed that there isn't an option to use the .by_sample for li.mt.bivariate.
The text was updated successfully, but these errors were encountered: