CellChat icon indicating copy to clipboard operation
CellChat copied to clipboard

rankSimilarity Error: attempt to set 'rownames' on an object with no dimensions

Open h1hui opened this issue 2 years ago • 1 comments

Hello, I was attempting to run plots on merged cellchat dataset, the other functions run just fine except rankSimilarity, where an error message says:

rankSimilarity(cellchat, type = "functional")
Error in `rownames<-`(`*tmp*`, value = sub("--.*", "", rownames(data1))) : 
  attempt to set 'rownames' on an object with no dimensions

Can you please help with this? Thank you so much!

h1hui avatar Aug 16 '22 06:08 h1hui

@h1hui This is an error related to your data. I have no idea except that I can replicate your error if you can provide the cellchat object.

sqjin avatar Aug 17 '22 12:08 sqjin

Hi, I have the same problem, have you been able to solve this?

Mobina-Kazemi avatar Jul 11 '23 17:07 Mobina-Kazemi