You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not very clear idea, but something along these lines: https://www.biorxiv.org/content/10.1101/2020.09.04.283812v1
Maybe a way to achieve similar results without explicit modelling and inference. It's essentially a smoothing of cluster assignments on spatial coordinates.
Are you working on a method that creates some kind of adjacency matrices for the seqfish data? So especially split by 'Field of View'? So actually like 6 or 7 adjacency matrices?
I'm still quite tempted to add this although only use case I see is when the spatial graph is not a grid (but has some interesting topology). also, this should probably be in scanpy (or muon ? ).
The idea was to include node feature information into the clustering, right? Then it could also be interesting for grid graphs, no? only question is whether people are interested in spatial pieces/clusters of homogeneous cell type patterns
mmh that could also be a way to do it but in scverse/scanpy#1818 the idea is to do multiplex partitioning with the knn from gexp and spatial graph jointly (without considering the node features). in case of features yes (could be image features?) and it would be interesting nonetheless (and even doable by doing joint partitioning of knn from gexp and image features).
What do you want to achieve by including spatial information in the clustering? I can think of two reasons to do this:
You want to separate cell types which are not near each other into separate categories
You want to make it more likely for nearby cells to be a part of cluster. E.g. loosen the similarity criteria for nearby cells.
I see a obvious use cases for 1, but I'm not sure you need a clustering for this. You should just be able to break up your non-spatial clustering results by finding connected components in the spatial graph. This would be like:
that's really cool @ivirshup ! it'd be a very handy function.
re 2. , I think it's still be useful and would be a purely "data driven" (not necessarily better) way to achieve 1. That'd be done with multi-graph partitioning (native in leidenalg) where the knngraph from gexp and the spatial graphs are inputted. This is particulary useful for non-visium data where the graph actually has an interesting topology.
re 2., I think it's still be useful and would be a purely "data driven" (not necessarily better) way to achieve 1.
Could this problem also be thought of as "expression driven segmentation"?
I'm just a little unsure of the case where you want an output like the second plot, but without knowing those were the same cell types. Unless there's a case where you'd find something that looks different?
Activity
SabrinaRichter commentedon Sep 14, 2020
Are you working on a method that creates some kind of adjacency matrices for the seqfish data? So especially split by 'Field of View'? So actually like 6 or 7 adjacency matrices?
giovp commentedon Sep 14, 2020
@Koncopd is working on them!
giovp commentedon Sep 16, 2020
@SabrinaRichter https://leidenalg.readthedocs.io/en/stable/reference.html#leidenalg.find_partition_multiplex
giovp commentedon Dec 5, 2020
Still mixed feelings about this, let's keep it open
giovp commentedon Jul 14, 2021
related to #246 and scverse/scanpy#1818
giovp commentedon Jan 7, 2022
I'm still quite tempted to add this although only use case I see is when the spatial graph is not a grid (but has some interesting topology). also, this should probably be in scanpy (or muon ? ).
SabrinaRichter commentedon Jan 7, 2022
The idea was to include node feature information into the clustering, right? Then it could also be interesting for grid graphs, no? only question is whether people are interested in spatial pieces/clusters of homogeneous cell type patterns
giovp commentedon Jan 7, 2022
mmh that could also be a way to do it but in scverse/scanpy#1818 the idea is to do multiplex partitioning with the knn from gexp and spatial graph jointly (without considering the node features). in case of features yes (could be image features?) and it would be interesting nonetheless (and even doable by doing joint partitioning of knn from gexp and image features).
ivirshup commentedon Jan 11, 2022
What do you want to achieve by including spatial information in the clustering? I can think of two reasons to do this:
I see a obvious use cases for 1, but I'm not sure you need a clustering for this. You should just be able to break up your non-spatial clustering results by finding connected components in the spatial graph. This would be like:
Example
setup
Just getting to an AnnData I can do stuff with
Subsetting clusters by spatial neighbor
One selected cluster, split by connected components on the spatial graph.
I'm not so sure how useful 2 is, but I could definitely be missing something.
giovp commentedon Jan 11, 2022
that's really cool @ivirshup ! it'd be a very handy function.
re 2. , I think it's still be useful and would be a purely "data driven" (not necessarily better) way to achieve 1. That'd be done with multi-graph partitioning (native in leidenalg) where the knngraph from gexp and the spatial graphs are inputted. This is particulary useful for non-visium data where the graph actually has an interesting topology.
ivirshup commentedon Jan 11, 2022
Could this problem also be thought of as "expression driven segmentation"?
I'm just a little unsure of the case where you want an output like the second plot, but without knowing those were the same cell types. Unless there's a case where you'd find something that looks different?
LLehner commentedon Jun 12, 2024
Some methods for spatial clustering are now being implemented in PR#831. Potential methods are discussed in Issue#789.