-
Notifications
You must be signed in to change notification settings - Fork 23
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
strange spatial_LDA -> spatial_cluster results #28
Comments
@yerahko can you post the commands you ran and also share a snippet of what your |
Hi @ajitjohnson, here is an example of code and what I am varying mostly Thank you!
79308 rows × 9 columns |
Hi @yerahko It all looks good to me. This issue has never occurred to me previously. I just want to confirm if your If that is what you did, not sure what else is going on and might need some example data from you to debug it. |
Hi @ajitjohnson yup, that is how I'm using Instead of spatial_LDA, I ran spatial_count -> spatial_cluster and that workflow did run successfully without similar artifacts, so for the time being we will work with the spatial_count results. Thank you for your work on creating and maintaining this package—it's been a great tool for us! |
Weird, if you would like me to debug, feel free to send me a subset of the data later on. Glad you are enjoying it :) |
Hello again!
When clustering (spatial_cluster) on spatial_LDA results, I am getting strange results, as below.
I always get reasonable spatial_cluster results when training on a single ROI. But with as few as 2 ROIs, I start to get this artifactual-seeming result, visible as clusters forming vertical stripes in one or more of the ROIs.
I have tried both 'knn' and 'radius' as spatial_LDA methods with varying values of motifs, knn, and radius.
Clustering method was always kmeans (leiden and phenograph were always giving me 99 clusters even with resolution set to 0.1—so I am actually not sure if it's spatial_LDA or instead the clustering that is contributing to this)
Conditions which promote the appearance of this "artifact":
Example of a "sensible" spatial clustering result:
when one additional ROI is trained together with it, with all the same spatial_LDA and spatial_cluster parameters, that ROI becomes:
Some real structure is retained in the lower left corner, while the right side no longer makes sense...
Any idea what could be causing this, or parameters to try which could mitigate?
Thank you again!!
The text was updated successfully, but these errors were encountered: