-
Notifications
You must be signed in to change notification settings - Fork 140
How to use subsetCellChat? #210
Comments
@lizanyu There is no error when I tested the example data. Could you run the source codes to figure out the reason? You can also share your object with me if you like. |
I think I find this reason in subsetCellChat. The error arises in the last step of building the CellChat object. The code for 'meta.subset' will be factor when the meta only have a col in 'meta.subset <- object@meta[cells.use.index, ]'. So I add One more step when to select the new meta.subset. The code like this. if (ncol(object@meta)==1) { |
I encountered this problem as well in cellchat v 1.6.1. I think it's caused by not subsetting the network components correctly that have a separate matrix for each pathway:
Should be the following, in order to do the same for all pathways:
The code block is here:
|
Hi, may I check if this issue has been fixed in cellchat? I'm still getting |
I am also working with CellChat 1.6.1 and the code block from @rbatorsky solved the matrix dimension problem. Another reason behind the The solution for me was the following:
|
@TzuTingWei Thanks. I will fix this issue by using your solution. |
line 827 in R/CellChat_class.R maybe missing a comma values.new <- values[group.existing.index, group.existing.index, , drop = FALSE] that's work for me! |
Hello, cellchat is a wonderful tool! code: error: I'm really at a loss as to how to proceed, and any guidance would be much appreciated! |
@QianhuiXu Can you share me your CellChat object so that I can replicate your error? |
I have sent my CellChat object to your email, Thank you very much! |
Received it. will take into it later today. |
Hi, I have three conditions and I created three cellchat objects to look communication between specific clusters at individual treatment level. BUT I am getting an error while using subsetCellChat: Would appreciate your help! |
@apal6 No idea on this error except that I can replicate your error using your cellchat object. |
@sqjin, sorry to bother but I am still getting the same error even when I ran the subset function on individual cellchat object (one object for one condition). I am happy to share my cellchat object if you need to debug? I highly appreciate your time. Thank you! |
@apal6 You can find my email in the Description file. |
@QianhuiXu, how were you able to debug? I got this error too. Thank you! |
Hello! Thank you for creating such an awesome tool! I'm following the tutorial for Comparison Analysis of Multiple Datasets and would like to subset the merged cellchat object for ease of analysis. I am trying to use
subsetCellChat
using vectors identified fromcellchat@idents$joint
:I get the following error message:
How should I be identifying
idents.use
? Any help would be greatly appreciated!Thanks,
Liz
Here is my sessionInfo:
The text was updated successfully, but these errors were encountered: