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

netClustering(cell chat, type = "functional") Error #571

Open
nandini0910 opened this issue Mar 8, 2023 · 6 comments
Open

netClustering(cell chat, type = "functional") Error #571

nandini0910 opened this issue Mar 8, 2023 · 6 comments

Comments

@nandini0910
Copy link

nandini0910 commented Mar 8, 2023

Hi @sqjin! I recently reinstalled CellChat v1.6.1. When I run either
cellchat <- netClustering(cellchat, type = "functional") or cellchat <- netClustering(cellchat, type = "structural")
I get the following error.
Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'.

My temporary solution was changing the 'multiprocess' to 'multisession' using
trace(netClustering, edit=TRUE)

How can this be fixed permanently?

@sqjin
Copy link
Owner

sqjin commented Mar 9, 2023

@nandini0910 Can you try plan(multisession, workers = 4)

@wdg118
Copy link

wdg118 commented Mar 11, 2023

@sqjin this does not work. After running plan("multisession", workers = 4) I get the error message:

And then when I run cellchat <- netClustering(cellchat, type = "functional") again I still get the same original error message as @nandini0910

Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'

@ksbb1853223
Copy link

@sqjin this does not work. After running plan("multisession", workers = 4) I get the error message:

And then when I run cellchat <- netClustering(cellchat, type = "functional") again I still get the same original error message as @nandini0910

Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'

I encountered the same problem. Solved it by downgrading the future package to 1.28.0.

@sqjin
Copy link
Owner

sqjin commented Apr 2, 2023

@nandini0910 Roughly, Results before the update: is similar to the Results after the update with changing to plan(multisession, workers = 4). Isn't it?

@karabicicim
Copy link

I am experiencing inconsistency issues when running my code as I get different results with each run. Is this a normal occurrence, and if not, how can I address it?
cellchat_trimean <- computeNetSimilarity(cellchat_trimean, type = "functional")
cellchat_trimean <- netEmbedding(cellchat_trimean, type = "functional")
cellchat_trimean <- netClustering(cellchat_trimean, type = "functional", do.parallel = TRUE)
netVisual_embedding(cellchat_trimean, type = "functional", label.size = 3.5)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants