Skip to content
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 ParamSweep #193

Open
igs0011 opened this issue Feb 17, 2024 · 5 comments
Open

Error in ParamSweep #193

igs0011 opened this issue Feb 17, 2024 · 5 comments

Comments

@igs0011
Copy link

igs0011 commented Feb 17, 2024

Hello,

I have been trying to implement DoubletFinder for my sc analysis. However when I run the paramSweep function i get the following error.

"Normalizing layer: counts Error in NormalizeData.V3Matrix(object = LayerData(object = object, layer = l, : trying to get slot "params" from an object of a basic class ("NULL") with no slots"

Based on my reading, I believe its due to the function interpreting my data as an aggregated data set of WT vs MT. However, this is not the case in my data.

Is this therefore caused by just a problem in how I am preprocessing the data?

I am using Seurat V5, and following the SCTransform workflow of data processing.

I appreciate the help in advance.

@imrankhan27
Copy link

imrankhan27 commented Feb 17, 2024

I had same the issue with Seurat v5. I detached the installed DoubletFinder and reinstalled(‘2.0.4’)
detach("package:DoubletFinder", unload=TRUE)
devtools::install_github("chris-mcginnis-ucsf/DoubletFinder")
library(DoubletFinder)
packageVersion("DoubletFinder")

‘2.0.4’

This solved my issue.

@igs0011
Copy link
Author

igs0011 commented Feb 19, 2024

Thank you for the help

I did this as well as reinstalled R and it fixed the issue.

However, now I get a new error when I follow the SCTransform workflow.

Normalizing layer: counts
Error in orig.commands$NormalizeData.RNA@params :
no applicable method for @ applied to an object of class "NULL"

I can get around this issue by using the standard preprocessing workflow.

@nadinegheziel
Copy link

Hello,
Thank you for your help.

sweep.res.data <- paramSweep(data, PCs = 1:40)
Erreur : $ operator not defined for this S4 class

I am getting the same error, but I am working with Seurat v4 (4.1.0) and would like to stick with it.
Which version of Doublet Finder should I use ?

Thank you very much!

@djiuhong
Copy link

I did this as well as reinstalled R and it fixed the issue.

However, now I get a new error when I follow the SCTransform workflow.

Normalizing layer: counts Error in orig.commands$NormalizeData.RNA@params : no applicable method for @ applied to an object of class "NULL"

Maybe you could try this method, I had the same problem before and solved it with this method
sweep.res.list_se_obj <- paramSweep(se_obj, PCs = 1:50, sct = TRUE)

@NewtontheNeuron
Copy link

I also had the same error bellow when I was explicitly setting sct = FALSE. For me, the error was caused because I had performed SCTransform on my data rather than NormalizeData. So DoubletFinder was simply looking in the wrong place.

Normalizing layer: counts Error in orig.commands$NormalizeData.RNA@params :
   no applicable method for @ applied to an object of class "NULL"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants