-
Notifications
You must be signed in to change notification settings - Fork 109
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: In function [: "j" must not have duplicated values #183
Comments
Re-install Double finder its updated >2.0.4 it works well now :) good luck :) |
I'm facing the same issue. I'm using DoubletFinder v2.0.4, BPCells v0.1.0, Seurat v5.0.0, and R 4.3.1. From the error it seems that the issue is that DoubletFinder is trying to subset by a list of cells that contains a single cell multiple times, but BPCells does not allow indexing that way. Seems like this issue might require attention from the DoubletFinder and/or BPCells team. As a temporary solution, I found that converting your assays to the old versions allows DoubletFinder to work.
|
This worked for me as well, but I had to use
|
New doubletfinder only works for those Seurat V5 objects without BPCell preprocess |
Hi, I've encountered the same issue you're facing. The problem arises due to the type of data you're working with. Specifically:
However, the object seu@assays$RNA$counts is stored as a BPCells data type. This is an optimized data structure used to handle large single-cell RNA-seq datasets efficiently. Because of this, the matrix is not fully loaded into memory when you access it like this. Instead, it's handled in chunks or "iteratively," meaning you're not dealing with a typical matrix that you can manipulate directly.
This will convert the BPCells matrix into a sparse matrix (dgCMatrix), which is memory-efficient and allows you to perform standard matrix operations. I hope it helps. Cheers :) |
When I use 'DoubletFinder' with seurat5 + BPCells, I got the Error:
sweep.res.list_obj <- paramSweep(obj, PCs = 1:40, sct = FALSE)
[1] "Creating artificial doublets for pN = 5%"
Error: In function [: "j" must not have duplicated values
▆
Previous posts have raised similar questions, but ours seems to be different?
#161
Although the authors said "DoubletFinder should work with Seurat V5 now", I still cannot use 'DoubletFinder' with seurat5 + BPCells.
Is it my problem? Could someone help me, please?
The text was updated successfully, but these errors were encountered: