jinworks / CellChat

R toolkit for inference, visualization and analysis of cell-cell communication from single-cell and spatially resolved transcriptomics
GNU General Public License v3.0
271 stars 41 forks source link

Error in netAnalysis_signalingRole_scatter(object.list[[i]], title = names(object.list)[i], : #44

Open ZhangMH2000 opened 9 months ago

ZhangMH2000 commented 9 months ago

Hi! Thank you for developing such a great tools. When I applied tutorial Comparison analysis of multiple datasets using CellChat , I used following command:

gg <- list()
for (i in 1:length(object.list)) {
  gg[[i]] <- netAnalysis_signalingRole_scatter(object.list[[i]], title = names(object.list)[i], weight.MinMax = weight.MinMax)
}

However, I returned

Error in netAnalysis_signalingRole_scatter(object.list[[i]], title = names(object.list)[i],  : 
  Please run `netAnalysis_computeCentrality` to compute the network centrality scores! 

I didn't see netAnalysis_computeCentrality in the tutorial , so could you please tell me how to sovle it? Thank you!

sqjin commented 9 months ago

@ZhangMH2000 This function is used in the basic tutorial of CellChat.