Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

comparing dataset error in netAnalysis_signalingChanges_scatter #730

Open
Leob44 opened this issue Dec 4, 2023 · 1 comment
Open

comparing dataset error in netAnalysis_signalingChanges_scatter #730

Leob44 opened this issue Dec 4, 2023 · 1 comment

Comments

@Leob44
Copy link

Leob44 commented Dec 4, 2023

Hello,
I am following the comparing dataset vignette on cellchat v2. When I try to apply the function netAnalysis_signalingChanges_scatter I have an error "$<-.data.frame(tmp`, "specificity", value = 0) : replacement has 1 rows, data has 0"

Here is the command I used:

g1 <- netAnalysis_signalingChanges_scatter(cellchat, idents.use = "NK")

I have only two conditions in my merged cellchat object as in the tutorial and "NK" is indeed present in the cellchat@idents$joint

@Leob44
Copy link
Author

Leob44 commented Dec 4, 2023

I had to go inside the function code. In line 73 of the function, there is:
mat1 <- mat[rownames(mat) %in% signaling, , drop = FALSE]
The rownames of "mat" are not fitting the "signaling" function
print(signaling)
Capture d’écran du 2023-12-04 15-18-44
print(rownames(mat)
Capture d’écran du 2023-12-04 15-20-34

All of this is resulting into an empty intermediate matrix and thus the function can not go further. Still investigating

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

No branches or pull requests

1 participant