qimiandongfeng 2023-06-11 09:17 采纳率: 0%
浏览 685

R Cellchat包运行netClustering,反馈Strategy 'multiprocess' is defunct in future

问题遇到的现象和发生背景

在R包Cellchat中运行cellchat <- netClustering(cellchat, type = "functional"),反馈Error: Strategy 'multiprocess' is defunct in future (>= 1.32.0) [2023-03-06]. Instead, explicitly specify either 'multisession' (recommended) or 'multicore'.

代码

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

运行结果及详细报错内容

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

我试过

library(future)
plan(multisession)
cellchat_clustering <- netClustering(cellchat, type="functional")
仍然是同样的报错

  • 写回答

2条回答 默认 最新

  • weixin_48181732 2023-07-17 11:24
    关注

    如果不需要多线程,可以试试添加do.parallel = FALSE参数,cellchat_clustering <- netClustering(cellchat, type = "functional",do.parallel = FALSE)

    评论

报告相同问题?

问题事件

  • 创建了问题 6月11日