Open dmsalsgh97 opened 2 years ago
Hi,
I encounter the same problem. Any chance you find a solution to this issue?
Thanks. Best, Margot
@margotvanriel The simple way is to re-name your cluster names. Cell labels cannot contain 0
!
Hi,
Thanks for your reply. Yes, I thought that was the issue, but couldn't find a quick solution until I now stumbled upon the RenameIdents function, after which it worked!
@margotvanriel The simple way is to re-name your cluster names. Cell labels cannot contain
0
!
Unfortunately this isn't really a reasonable solution, numbered clusters should be supported since numbered clustering is the default output of all of the clustering pipelines. Consider that at the point in which you are wanting to run CellChat you might not yet know the specific cell type for a given cluster and therefore wouldn't have had a reason to manually intervene to rename your clusters. Not allowing numerical clustering prevents CellChat from being incorporated into any standardized pipeline. Could we perhaps revisit this issue and change this?
@ACastanza You can run CellChat on numerical clustering, but it should start from 1,2,... (not 0). I agree that it will be nicer to deal with the case with '0'.
Oh, I see, that's still unfortuante, in my experience both seurat and scanpy clustering start with 0 by default no matter which algorithm is used (leiden, louvian, walktrap, etc)
As a workaround, the following code is an okay interim solution:
new_cluster_ids = paste0("C", levels(seurat_object)) names(new_cluster_ids) <- levels(seurat_object) seurat_object <- RenameIdents(seurat_object, new_cluster_ids)
HI, I used cellChat since last month, using Seurat object. tutorial's code for converting Seurat object to Cellchat object worked well until last week...
But, When I re-use the code, createCellChat function says an error,
I searched github issue pages and re-installed cellchat but it was not a solution...
In this case, anyone knows or tips the reason for this error?? Thanks,
Here is my sessioninfo()...