Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Error in cellchat <- netEmbedding(cellchat, type = "functional") / UMAP Problems #196

Open

Description

@superman2412

Hi,

This is regarding "Manifold and Classification learning analysis of signaling networks" in the full tutorial/vignette.

I installed umap and it seems to run fine like this:

Screenshot 2021-05-10 at 13 57 28

This command: cellchat <- computeNetSimilarity(cellchat, type = "functional") also seems to run well.

However: at the following command there is an error as displayed in the screenshot.

cellchat <- netEmbedding(cellchat, type = "functional")

Screenshot 2021-05-10 at 13 59 37

Can you please help me troubleshoot this?

Thank you very much for your help so far!

Activity

  1. superman2412 commented on May 12, 2021

    @superman2412
    Author

    Hi @sqjin I was wondering if there's anything you could say about this? Thank you for your help so far!

  2. sqjin commented on May 15, 2021

    @sqjin
    Owner

    @superman2412 Everything looks good. Can you open a new R studio and run use_python before loading CellChat package? Do not run 'UMAP <- import('umap, ...')'.

  3. superman2412 commented on May 18, 2021

    @superman2412
    Author

    @sqjin Unfortunately, it still does not run. I was wondering if there's anything else that could be done?

  4. sqjin commented on May 20, 2021

    @sqjin
    Owner

    @superman2412 You can check this package https://github.com/jlmelville/uwot and replace the umap function using the function from this package.

  5. superman2412 commented on May 25, 2021

    @superman2412
    Author

    @sqjin Did exactly that and it fixed the problem.

    For anyone facing the same problem here's the preview of the changes made in the source code, specifically in the netEmbedding function found in the analysis.R file. Again, the forked package (with changes made) be found here:

    Screenshot 2021-05-25 at 18 09 32

    https://github.com/superman2412/CellChat/tree/master/R

    Don't forget to install and load the library of this package (https://github.com/jlmelville/uwot) before trying to run the function.

    @sqjin you can now close this issue.

  6. RajneeshSrivastava commented on Jun 10, 2022

    @RajneeshSrivastava

    Thank you both, @sqjin and @superman2412 for this working solution for NetEmbedding function. My worry is, everytime I run the set of codes to generate functional plot, i find different umap profiles for pathways as color coded for clusters. Any solution to fix this?

  7. sqjin commented on Jun 13, 2022

    @sqjin
    Owner

    @RajneeshSrivastava Do you run umap using 'uwot' or the other one ? Do you have the same umap for each run?

  8. RajneeshSrivastava commented on Jun 14, 2022

    @RajneeshSrivastava

    Hi @sqjin, yes i used umap from 'uwot' as suggested. I created a local function 'NetEmbedding' with umap from 'uwot' , also used for the follow up steps.

  9. sqjin commented on Jun 16, 2022

    @sqjin
    Owner

    @RajneeshSrivastava Can you run the default method when running netEmbedding, i.e., "umap-learn"?

  10. hiraksarkar commented on Aug 23, 2022

    @hiraksarkar

    @sqjin , It seems runUMAP is not working, is it possible to push a new version with uwot's umap?

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions