-
Notifications
You must be signed in to change notification settings - Fork 85
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
clustering function for features #246
Comments
good point. The problem is that there are many parameters that shouldbe exposed, since if true it's a simple function, it wraps quite complex processing steps (where it's key that the user might have to change paramters). I would see a better option a function that takes a This is btw very related to the biggest problem of having multi modal data in anndata 😅 and we would not be the only ones facing this... |
Yes, I agree that this wraps quite complicated processing steps. Maybe they should be explicitly visible for the user. Ok, sure so you are proposing a function moving
and then you can use To deal with features efficiently though, I need some sort of mechanism to select which rows of |
yes, something like that.
yes indeed, in that case youd' have to copy over also
this features are what is moved in |
I usually extract all features at once because this is more efficient. In some of the tutorial though I am showing the clustering for only a subset of the features (e.g. only segmentation features or only texture features). For this we need to have a way to filter the pandas table. I can also do that manually, but at this point there is no need to me to use such an extraction function at all. My point is that I'd like to keep the example notebooks as short as possible, and was wondering if we could make some utility functions that do these steps for us. |
ok yes, then making an extractor similar to what we alredy have I think might makes sense. Maybe teh extractor we have can me modified? also understand now about selecting specific features |
Yeah, it would be nice to use the extractor for this, but currently |
I like this idea! |
I htink this is now done with |
Is it? Does extract now also extract |
it would be cool to have a multiplex partition based on layers/obsm |
When writing tutorials, I find myself defining the same clustering function in several notebooks.
This essentially does scaling+PCA+neighbors+leiden on a set of features.
I was wondering if we should include this in squidpy as a convenience function (maybe made a bit more general)? Or should we rather leave these sort of functions outside of squidpy? Is there a solution that I can avoid defining the same function in several notebooks? @giovp
The text was updated successfully, but these errors were encountered: