-
Notifications
You must be signed in to change notification settings - Fork 35
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
no applicable method for 'JoinLayers' applied to an object of class "c('Assay', 'KeyMixin') #296
Comments
Hi, Not sure what this "KeyMIxin" assay is, I haven't seen this before. It looks like this is an error thrown by Seurat rather than hdWGCNA itself, unfortunately we run into a lot of errors related to Seurat v5 since they decided to change the SeuratObject. I am wondering if the code works when you use assay='RNA' instead of 'SCT'. If you have a reproducible example of this error it would be easier for me to look into it. |
Hi Sam, I encountered the same error. Here's a reproducible example using the Seurat object in this .qs file Notably, the error occurs with non-SCT data. I have successfully performed hdWGCNA on other similar datasets, but the error has only occurred with this one. The object in the .qs has been downsampled, but the error still occurs with the full dataset.
|
Hi all, I found a workaround for this problem: satijalab/seurat#7672 (comment) I was loading RDS output from a pipeline and I suspect they may be v3 objects which are mysteriously incompatible with JoinLayers; I received the same error when running JoinLayers on a Seurat object. This block of code fixed the above error. assay5 <- as(pbmc[["RNA"]], Class = "Assay5") seurat5 <- JoinLayers(seurat5) |
Hi all, |
In Seurat V5 using hdWGCNA, I encountered the following issue: 'Error in UseMethod(generic = "JoinLayers", object = object) : no applicable method for 'JoinLayers' applied to an object of class "c('Assay', 'KeyMixin')"'. The code is: 'seurat_obj <- MetacellsByGroups(
seurat_obj = seurat_obj,
reduction = "harmony",
assay = 'SCT',
slot = 'counts')'
The text was updated successfully, but these errors were encountered: