DoubletFinder icon indicating copy to clipboard operation
DoubletFinder copied to clipboard

Error in .subscript.2ary(x, , j, drop = TRUE) : subscript out of bounds

Open Yijia-Jiang opened this issue 1 year ago • 4 comments

Hello, I am trying to use doubletfinder in seurat v5, and met the following error when running sweep.res.list <- paramSweep_mod(seurat_obj, PCs = 1:30, sct = T). Could you help fix this issue?

Error: Error in .subscript.2ary(x, , j, drop = TRUE)

Thank you very much!

Yijia-Jiang avatar Jan 16 '24 17:01 Yijia-Jiang

Same issue. I thought it worked perfectly in the previous release with the same dataset I have now. Is there a way it can be adjusted easily? Thank you!

biomarkerman avatar Jan 18 '24 14:01 biomarkerman

Edit: ok I fixed the issue by running DF on individual samples. The problem is that when editing V5 seurat, layers move around objects and structure changes. doubletfinder cant find/identify where the new objects are and it fails. Specially with complex experiments. You have to use sample by sample. @biomarkerman

eegk avatar Feb 06 '24 14:02 eegk

the same error here. Seurat v5 and DoubletFinder v.2.0.4 trying to run DF on individual samples as advised

IrinaVKuznetsova avatar Mar 01 '24 03:03 IrinaVKuznetsova

I went back to using SplitObject instead of the Seurat v5 split layers and managed to get it working.

yxsee avatar Mar 25 '24 05:03 yxsee