CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

netVisual_chord_gene not dividing into sender and reciver

Open LaviCor opened this issue 2 years ago • 2 comments

Hi all, I wanted to used the netVisual_chord_gene function like presented in the vignette to visualize all interactions sent from two of my clusters to a third. However, the plot does not divide the circle into senders and reciver (there is not gap), and also shows some interaction going from the senders to one another.

Anyone faced this issue? dont know where could I have messed up something here.... attached are the plot and code:

netVisual_chord_gene(MusFibLR, sources.use = c(2,4), targets.use = 7, legend.pos.x = 15) image

whereas I wanted to get something like this: image

Thanks

LaviCor avatar Mar 30 '22 09:03 LaviCor

After some further testing, if im ploting at the signlaing pathway level (using the "slot.name = "netP" argument) the groups are divided correctly Which leaves me even more confused as to why this is happening

netVisual_chord_gene(MusFibLR, sources.use = c(2,4), targets.use = c(7), slot.name = "netP", legend.pos.x = 15) image

LaviCor avatar Mar 30 '22 10:03 LaviCor

@LaviCor You can run the source code of this function line by line and see why it also retain interactions from unexpected cell pairs. I guess the code need a small change in somewhere.

sqjin avatar Mar 30 '22 23:03 sqjin