DoubletFinder
DoubletFinder copied to clipboard
paramsweep error
I'm trying to run DoubletFinder for the first time, and I'm having an issue when trying to run paramsweep.
When running sweep.res.list<- paramSweep(Seurat_Object, PCs = 1:50, sct = FALSE) the results are
sweep.res.list <- paramSweep(Seurat_Object, PCs = 1:50, sct = FALSE) Error in seu@assays$RNA$counts : $ operator not defined for this S4 class
Now it might be an issue with Seurat, as running Seurat_Object@assays$RNA$counts
produces
Error in Seurat_Object@assays$RNA$counts : $ operator not defined for this S4 class
But running Seurat_Object@assays[["RNA"]]@counts notifies that it's a sparse matrix of class "dgCMatrix"
I am getting the same error: Error in seu@assays$RNA$counts : $ operator not defined for this S4 class
... first time user of DoubletFinder and getting stuck at the first step! I am using Seurat_4.3.0 and DoubletFinder_2.0.4 ... could it be a version incompatibility issue?
UPDATE: I copied the paramSweep
function from the GitHub page and replaced seu@assays$RNA$counts
by seu@assays$RNA@counts
and that seems to work ... hopefully just a syntax issue with Seurat 4?
I am getting the same error:
Error in seu@assays$RNA$counts : $ operator not defined for this S4 class
... first time user of DoubletFinder and getting stuck at the first step! I am using Seurat_4.3.0 and DoubletFinder_2.0.4 ... could it be a version incompatibility issue? UPDATE: I copied theparamSweep
function from the GitHub page and replacedseu@assays$RNA$counts
byseu@assays$RNA@counts
and that seems to work ... hopefully just a syntax issue with Seurat 4?
I was able to fork it and fix it, I basically changed the lines from seu@assays$RNA$counts to seu@assays$RNA@counts
please use this code to install the former version 2.0.3 which supports v3/v4
remotes::install_github('https://github.com/ekernf01/DoubletFinder', force = T)