CellChat
CellChat copied to clipboard
netVisual issue
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 vertex.receiver should be the index of cell groups such as vertex.receiver = c(2,3,4,5).