-
Notifications
You must be signed in to change notification settings - Fork 894
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
Seurat Merge Error #6462
Comments
Can you show the output of |
I am getting the same error with almost the same R code settings: epimuneen<- merge(pb11, y = c(pb11), project = "tot") # -> 'Error in apply(X = GetAssayData(object = object, assay = assay, slot = "scale.data")[, : Fyi: the merge worked with a smaller cell number with this dataset, but with other dataset it did work for whatever size. (And the good merging one looked like: pb22 sessionInfo(): R version 4.2.2 (2022-10-31 ucrt) Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
A partial solution would be to make the Seurat dataframe again: |
Bumping this w/ same issue and error message
Notably this is integrated data w/ SCT performed. After setting the SCT assay to NULL as so, the merge works
|
Thanks you @reberya ! I really don't understand why doing this would work so ... especially because I did the same merge with other samples coming from different tissues (but from the same batch, and they all got exactly the same preprocessing), and only for a subset of these I got this issue ... doesn't male sense to me THANKS! |
The solution reberya posted should fix this in the short term. You can re-run SCT after merging. we are working on a longer-term fix. merging of objects (post-SCT),as can be problematic in some cases. |
Hi,
I'm getting an error when trying to merge two Seurat objects:
> myeloid_subset <- merge(myeloid_subset, y = myeloid_strays_1) Error in apply(X = GetAssayData(object = object, assay = assay, slot = "scale.data")[, : dim(X) must have a positive length
I've run very similar code before and had no error. I thought maybe it was because the subsets weren't scaled which I never needed before, but even after scaling both myeloid_subset and myeloid_strays, and making sure the scale.data slot for the all assays were non-zero, I'm still getting the same error. Do you know what could be causing this? Thanks
The text was updated successfully, but these errors were encountered: