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
I would be keen to see densmap added to scanpy. I can maybe help with a PR but not sure whether it's better/prefered to add a new sc.tl.densmap() function or add arguments to the existing sc.tl.umap()?
I can maybe help with a PR but not sure whether it's better/prefered to add a new sc.tl.densmap()
Good question. In UMAP, I believe it's just a key word argument.
My instinct would be separate function, since it takes a few new arguments and has a few new values associated. Also, could potentially add a different key in obsm, since I don't think you can transform data into the existing space and this may conflict with ingest (any thoughts @Koncopd?).
I would also be interested in any thoughts you had on the applicability/ usefulness of the method in general. One question that comes up for me, is PCA space a reasonable original space to be using here?
I think being able to see density could be really useful but I've only tried it a couple of times so not sure how it goes in practice. A lot of the motivation for wanting it in scanpy is to make it easier to try out 😸. The umap developers adding it to the main package seems like a good argument that it's useful though.
I hadn't thought about inputs but first guess is that PCA (or equivalent) should capture density relatively well? The function would let the user choose the input though right (with some sensible default)?
A lot of the motivation for wanting it in scanpy is to make it easier to try out 😸.
We've definitely ended up with a number of features this way, but more so when we had fewer users... I think this would be a good candidate for an experimental module.
The umap developers adding it to the main package seems like a good argument that it's useful though.
I should look through the paper on this more carefully, but from my initial skimming I wasn't particularly convinced the relative density was meaningful.
I hadn't thought about inputs but first guess is that PCA (or equivalent) should capture density relatively well?
I'm suspicious it could be dependent on dataset make-up, e.g. what the components represent and whether they are likely to be shared.
Activity
lazappi commentedon Apr 27, 2021
I would be keen to see densmap added to scanpy. I can maybe help with a PR but not sure whether it's better/prefered to add a new
sc.tl.densmap()function or add arguments to the existingsc.tl.umap()?ivirshup commentedon Apr 27, 2021
Good question. In UMAP, I believe it's just a key word argument.
My instinct would be separate function, since it takes a few new arguments and has a few new values associated. Also, could potentially add a different key in
obsm, since I don't think you can transform data into the existing space and this may conflict withingest(any thoughts @Koncopd?).I would also be interested in any thoughts you had on the applicability/ usefulness of the method in general. One question that comes up for me, is PCA space a reasonable original space to be using here?
lazappi commentedon Apr 27, 2021
I think being able to see density could be really useful but I've only tried it a couple of times so not sure how it goes in practice. A lot of the motivation for wanting it in scanpy is to make it easier to try out 😸. The umap developers adding it to the main package seems like a good argument that it's useful though.
I hadn't thought about inputs but first guess is that PCA (or equivalent) should capture density relatively well? The function would let the user choose the input though right (with some sensible default)?
ivirshup commentedon May 3, 2021
We've definitely ended up with a number of features this way, but more so when we had fewer users... I think this would be a good candidate for an
experimentalmodule.I should look through the paper on this more carefully, but from my initial skimming I wasn't particularly convinced the relative density was meaningful.
I'm suspicious it could be dependent on dataset make-up, e.g. what the components represent and whether they are likely to be shared.
lazappi commentedon May 3, 2021
Ok, well I have half a function based on the current UMAP function which seems to work ok if that ends up being helpful for whatever implementation.
ivirshup commentedon May 3, 2021
Great, I think we may go for an experimental module as soon as next release (though, maybe the one after).
If you form any strong opinions or have any cool use cases for the function, I'd definitely be interested in hearing about it.
pakiessling commentedon Jan 23, 2024
Hi, did any one ever end up testing Densmap for scRNA ?
lazappi commentedon Jan 24, 2024
I tried it out and I guess I had a function somewhere (not sure if I can find it again) but I don't think anyone looked more into adding it to scanpy.
chansigit commentedon May 31, 2024
how's it going now