-
Notifications
You must be signed in to change notification settings - Fork 924
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
FindNeighbors not work in Seurat 4.0.0 but work well in Seurat 3.2.3. #4263
Comments
I think I found the reason. Once I load package Rfast, the error message will appear. There may be some conflict between newly updated Seurat and Rfast. Hope this can help you to reproduce the error message. |
I've started receiving this error message recently. Any progress in resolving it? In my case it doesn't seem to be related to Rfast. |
Hi Nicholas. Previously, I had a list of packages. I excluded each one of them from the list by order and tried to use the Find Neighbor function. Finally, my case is that if I excluded Rfast, it will work. Would you mind sharing your case? I think that might help the team to resolve the problem. |
Here is my script: ` load packagesinvisible({lapply(packages2load, library, character.only = TRUE)}) process expresion matrixso.wgcna <- Seurat::CreateSeuratObject(counts = mat.data) |
Hi again. I managed to resolve the problem by changing nn.method from "annoy" to "rann". Seemed to be related to the "annoy" method in my case. |
Hi Nicholas. Thanks so much! That also works for me. |
I just updated Seurat to the newest version, but found FindNeighbors does not work for my current case. Therefore, I tested several datasets, including the example data from Seurat website. The FindNeighbors function still not work. I also tried to export the pca matrix out and directly fed into FindNeighbors function. It will not work in as.matrix version or as.data.frame version.
By the way, I use mac under macOS 10.15.4, R studio with R version 4.0.4, Seurat 4.0.0. The code example below use the provided data from Seurat website pbmc3k guided tutorial.
If I follow the below codes, the output will be
If I directly feed matrix into FindNeighbors, (previously works well for me) the output is the same as above.
If I directly feed data.frame into FindNeighbors,(previously works well for me) it will report
The text was updated successfully, but these errors were encountered: