A problem with a error message in identifyOverExpressedGenes in CellChat. #264
Comments
@weichloe It is surprising that there are only two rows in your data. Can you show me the codes related to the database? |
Hi @sqjin, weichloe #Set the ligand-receptor interaction database use all CellChatDB for cell-cell communication analysisCellChatDB.use <- CellChatDB # simply use the default CellChatDB Mouse.cellchat@DB <- CellChatDB.use Issue identified!! Please check the official Gene Symbol of the following genes: future::plan("multiprocess", workers = 4) # do parallel Mouse.cellchat@data.signaling Epha4 . . . . . . . . 0.6931472 . . . . . . . . . . . . . . . . . . . . . . . . . . . Epha4 . . . . . . . . . . . 1.3862944 . . . . . ...... .............................. Lrp5 . . . . . . . . . . . . . . . . . . . . 0.6931472 . . . 0.6931472 . Lrp5 . . . 0.6931472 . . . . . 1.098612 . . . . . . . . . . . . . Lrp5 0.6931472 . . . ...... |
@weichloe I think there are some issues for these gene names. I will fix them in the next version. If you are really concerned about these gene names, you can manually correct these gene names. |
I cannot run identifyOverExpressedGenes function, so I run manually and get error: Error in (function (cl, name, valueClass) : |
@aj088 I suggest to check your input data including both data matrix and cell labels. |
@sqjin I have a similar issue to @weichloe I ran the source code for identifyOverExpressedGenes, and I get the error: Error in (function (cl, name, valueClass) : assignment of an object of class “character” is not valid for @‘var.features’ in an object of class “CellChat”; is(value, "list") is not TRUE
I then inspected cellchat@var.features: Extract cell-level featurescell_features <- cellchat@var.features Print the number of cell-level featuresprint(length(cell_features) and got: [1] 0 So for some reason I have no features. I also ran View(cellchat@data.signaling) and got: where my genes disappeared I read in a Seurat object and followed the tutorial to make a cellchat object. |
Hi @weichloe how did you re-create your meta data? I have the exact same problem as you, only 2 rows of genes (C3 and F2). |
Hi @sqjin, I had run “cellchat = subsetData(cellchat) ” but,then when I run ”str(cellchat@data.signaling)“ there is |
@PXYXYXY It seems that you did not use the correct input data matrix or the L-R database such as human or mouse |
Hi @sqjin,
Fantastic work and package. I am a novice at using R programming. I encountered a problem when I use the function: identifyOverExpressedGenes in CellChat.
After looking in the web, I confirmed I did the subsetData and checked `object@data.signaling.
I found my data.signaling matrix only has 2 x 2252. It looks like the gene names are disappeared. How did I solve this problem?
I am looking forward to your response.
Thank you so much for your help.
The error message is shown as bellows.
F2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 0.6931472 . . . . . . . . . . . . . . . . . . . . . .
C3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
F2 ......
C3 ......
.....suppressing 2198 columns in show(); maybe adjust 'options(max.print= *, width = *)'
..............................
The text was updated successfully, but these errors were encountered: