Open yasamanrezvani opened 11 months ago
Did you solve this issue?
No, I am waiting for the authors' response. Do you have the same issue?
No, I am waiting for the authors' response. Do you have the same issue? Yes, I have the same issue. Following is my package version. package.version("Doubletfinder") [1] "2.0.4" package.version("Seurat") [1] "4.4.0"
You can update the function paramSweep() by changing
seu@assays$RNA$counts
to
seu@assays$RNA@counts
in the source code and use the function. However, I believe this is a temporal fix and the authors should push the updated code.
I also had this problem. I forked the repository and fixed it. just like @yasamanrezvani said, only need change "$counts" to "@counts". Before Author fixed it, you can install DoubletFinder from my fork. use this code:
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
You can update the function paramSweep() by changing
seu@assays$RNA$counts
to
seu@assays$RNA@counts
in the source code and use the function. However, I believe this is a temporal fix and the authors should push the updated code.
I found two files have this error, paramSweep and doubletFinder. I fixed them all.
The issue is that DoubletFinder was updated to be compatible with Seurat v5, which modified how counts are stored in the object. So seu@assays$RNA@counts
no longer works with v5.
A better way for the DoubletFinder functions to fetch counts from the object is to use the accessor function Seurat::GetAssayData()
. Seurat::GetAssayData(seu, "counts")
should work with Seurat v3, v4, v5 since this function is updated with each new release of Seurat.
Hi, I I have installed the package through the following command and the problem has been resolved.
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
But there were a new error: sweep.res.list_kidney <- paramSweep(Sug_virgin, PCs = 1:30, sct = F) [1] "Creating artificial doublets for pN = 5%" [1] "Creating Seurat object..." [1] "Normalizing Seurat object..." Error in NormalizeData.default(object = GetAssayData(object = object, : trying to get slot "params" from an object of a basic class ("NULL") with no slots
Do you know what causes the error? Thanks
Had the same issues with Seurat 4.3. It works when I switch to V5. Not a good solution, but at least it works.
I also had this problem. I forked the repository and fixed it. just like @yasamanrezvani said, only need change "$counts" to "@CountS". Before Author fixed it, you can install DoubletFinder from my fork. use this code:
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
This is very helpful! Thank you for making that fix!
I also had this problem. I forked the repository and fixed it. just like @yasamanrezvani said, only need change "$counts" to "@CountS". Before Author fixed it, you can install DoubletFinder from my fork. use this code:
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
After running remotes::install_github('lzmcboy/DoubletFinder_204_fix'), I still get an error: Error in seu@assays$RNA$counts : $ operator not defined for this S4 class.
Had the same issues with Seurat 4.3. It works when I switch to V5. Not a good solution, but at least it works. I also updated Seurat to version 5.0 and reinstalled the DoubletFinder R package, and it was able to continue running.
remotes::install_github("chris-mcginnis-ucsf/DoubletFinder")
When I update to V5, I meet some new problem and I prefer to use V4.
Hi, I I have installed the package through the following command and the problem has been resolved.
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
But there were a new error: sweep.res.list_kidney <- paramSweep(Sug_virgin, PCs = 1:30, sct = F) [1] "Creating artificial doublets for pN = 5%" [1] "Creating Seurat object..." [1] "Normalizing Seurat object..." Error in NormalizeData.default(object = GetAssayData(object = object, : trying to get slot "params" from an object of a basic class ("NULL") with no slots
Do you know what causes the error? Thanks
My guess is that because I only modified the SCT method, this problem may occur if Log normalization is used. I'll check the code later and see how to modify it.
Hi, I I have installed the package through the following command and the problem has been resolved.
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
But there were a new error: sweep.res.list_kidney <- paramSweep(Sug_virgin, PCs = 1:30, sct = F) [1] "Creating artificial doublets for pN = 5%" [1] "Creating Seurat object..." [1] "Normalizing Seurat object..." Error in NormalizeData.default(object = GetAssayData(object = object, : trying to get slot "params" from an object of a basic class ("NULL") with no slots Do you know what causes the error? ThanksMy guess is that because I only modified the SCT method, this problem may occur if Log normalization is used. I'll check the code later and see how to modify it.
Hi! I also have this bug remained but I am using SCT method...
Hi, I I have installed the package through the following command and the problem has been resolved.
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
But there were a new error: sweep.res.list_kidney <- paramSweep(Sug_virgin, PCs = 1:30, sct = F) [1] "Creating artificial doublets for pN = 5%" [1] "Creating Seurat object..." [1] "Normalizing Seurat object..." Error in NormalizeData.default(object = GetAssayData(object = object, : trying to get slot "params" from an object of a basic class ("NULL") with no slots Do you know what causes the error? ThanksMy guess is that because I only modified the SCT method, this problem may occur if Log normalization is used. I'll check the code later and see how to modify it.
Hi! I also have this bug remained but I am using SCT method...
Me too......
Hi, I I have installed the package through the following command and the problem has been resolved.
remotes::install_github('lzmcboy/DoubletFinder_204_fix')
But there were a new error: sweep.res.list_kidney <- paramSweep(Sug_virgin, PCs = 1:30, sct = F) [1] "Creating artificial doublets for pN = 5%" [1] "Creating Seurat object..." [1] "Normalizing Seurat object..." Error in NormalizeData.default(object = GetAssayData(object = object, : trying to get slot "params" from an object of a basic class ("NULL") with no slots Do you know what causes the error? ThanksMy guess is that because I only modified the SCT method, this problem may occur if Log normalization is used. I'll check the code later and see how to modify it.
Hi! I also have this bug remained but I am using SCT method...
Me too......
I have solved this problem. I think it's because the parameter ‘sct’ was not set correctly to T. :)
I fixed the package ,add the sct remotes::install_github('MaxMeieran/DoubletFinder')
Hi,
Running the following command promt an error.
sweep.res.list <- paramSweep(S.O.tmp, PCs = 1:20, sct = FALSE)
I have installed the package through the following command:
install_github("chris-mcginnis-ucsf/DoubletFinder")
Do you know what causes the error?
Thanks,