CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

cell types are not in same order from left to right in both datasets when comparing two group of samples

Open tumorscholar opened this issue 2 years ago • 2 comments

I am comparing two groups of samples using Comparison analysis of multiple datasets using CellChat vignette. While using the "(B) Compare outgoing (or incoming) signaling patterns associated with each cell population" function I am getting image

Could you please help What could be the reason the order of cell types from left to right is not matching in X axis? This is further messing up with downstream analysis.

Thank you

tumorscholar avatar Apr 18 '24 14:04 tumorscholar

I am facing the same issue.

TolgaDuz avatar Apr 20 '24 14:04 TolgaDuz

@sqjin do you have a fix for this?

TolgaDuz avatar May 07 '24 05:05 TolgaDuz

I managed to solve this by

  1. using the same no of clusters in both objects and,
  2. sorting/arranging the cluster/celltype in same order in the Seurat object before subjecting them to CellChat

tumorscholar avatar Aug 02 '24 13:08 tumorscholar