Skip to content

densmap #1619

Open

Description

@ivirshup

Activity

  1. lazappi commented on Apr 27, 2021

    @lazappi
    Contributor

    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()?

  2. ivirshup commented on Apr 27, 2021

    @ivirshup
    MemberAuthor

    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?

  3. lazappi commented on Apr 27, 2021

    @lazappi
    Contributor

    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)?

  4. ivirshup commented on May 3, 2021

    @ivirshup
    MemberAuthor

    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.

  5. lazappi commented on May 3, 2021

    @lazappi
    Contributor

    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.

  6. ivirshup commented on May 3, 2021

    @ivirshup
    MemberAuthor

    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.

  7. pakiessling commented on Jan 23, 2024

    @pakiessling

    Hi, did any one ever end up testing Densmap for scRNA ?

  8. lazappi commented on Jan 24, 2024

    @lazappi
    Contributor

    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.

  9. chansigit commented on May 31, 2024

    @chansigit

    how's it going now

  10. added this to the 1.12.0 milestone on Feb 18, 2025
  11. modified the milestones: 1.12.0, 1.13.0 on Nov 10, 2025
  12. modified the milestones: 1.13.0, 1.14.0 on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions