CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

netVisual issue

Open bontix-77 opened this issue 6 months ago • 1 comments

levels(cellchat@idents)

  • vertex.rece = rep(TRUE, 5)   
  • vertex.rece[1] = FALSE 
  • for (i in 1:length(pathways.show.all)) {
  •   netVisual(cellchat, signaling = pathways.show.all[i], vertex.receiver = vertex.rece, layout = "hierarchy")
  •   gg <- netAnalysis_contribution(cellchat, signaling = pathways.show.all[i])
  •   ggsave(filename=paste0(pathways.show.all[i], "_L-R_contribution.pdf"), plot=gg, width = 3, height = 2, units = 'in', dpi = 300)
  • } [1] "1" "2" "3" "4" "5" Error in dimnames(x) <- dn: ! length of 'dimnames' [1] not equal to array extent Show Traceback

bontix-77 avatar Aug 08 '25 01:08 bontix-77

@bontix-77 vertex.receiver should be the index of cell groups such as vertex.receiver = c(2,3,4,5).

sqjin avatar Aug 26 '25 15:08 sqjin