Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running identifyOverExpressedGenes() #269

Open
JosieCen opened this issue Dec 7, 2024 · 1 comment
Open

Error when running identifyOverExpressedGenes() #269

JosieCen opened this issue Dec 7, 2024 · 1 comment

Comments

@JosieCen
Copy link

JosieCen commented Dec 7, 2024

I Lift up cellChat object and merge together to create cellchat. When I want to "Identify the up-gulated and down-regulated signaling ligand-receptor pairs" following the guidance, I met the error:

> cellchat <- identifyOverExpressedGenes(cellchat, group.dataset = "datasets", pos.dataset = pos.dataset, features.name = features.name, only.pos = FALSE, thresh.pc = 0.1, thresh.fc = 0.05, thresh.p = 0.05, group.DE.combined = FALSE)
Use the joint cell labels from the merged CellChat object
Error in wilcoxauc.default(data.use.i, labels.i) : 
  Must have at least 2 groups defined.

I have checked the datasets parameter and confirmed that there are only 2 groups (e.g., "HC" and "PD"), but still encountering the error...How can I troubleshoot and fix the issue?

@sqjin
Copy link
Member

sqjin commented Dec 12, 2024

@JosieCen Can you check if the variable cellchat@meta$datasets is a factor? I have no idea on this error. The best way to troubleshoot this is to run the source codes line by line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants