-
Notifications
You must be signed in to change notification settings - Fork 28
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 [[<-
(*tmp*
, assay, value = assay.data) : [[<- defined for objects of type "S4" only for subclasses of environment
#48
Comments
If that helps, the issue started occurring after I've implemented a few R packages for QC, namely DropletUtils::emptyDrops & scDblFinder. Could it be an issue with h5ad -> anndata -> R (sce) -> anndata (my workflow) -> R (your pipeline) conversion? |
Do you have the error from the slurm job log you were running? This looks like the snakemake log only. |
That's the only error explanation I get as far as I can see:
|
The error suggests that you have a non S4 object for which assignment doesn't work. I haven't come across this before. Based on the snippets that you show this comes up for harmony, fastmnn, and Seurat? Or is the error you're sharing in the second post from fastmnn, but the above one from a harmony run? They don't seem to match. If this is consistent across R methods and assignment is indeed not working, that suggests it might be the anndata2ri conversion to the SingleCellExperiment object. Could you load your data and then just try:
|
It is consistent across all R methods. I think I started getting this error after the pipeline was updated with scvi-tools, but it could also be because of changes to my earlier workflow steps (see below). Running your code:
My package versions in the scib-pipeline-R4.0:
Scanpy: Any ideas? Had a look at my conversions from anndata to sce earlier in the workflow. Here are a few points that could potentially affect things:
I don't have nearly as much experience converting things and running R code this way so please let me know if you think there could be issues with any of my approaches here. That's all I can think of... |
Hah, yes... ofc. I don't know where my head was... |
So this can't have been the result of the scvi-tools update... i reckon it probably has something to do with the conversion or saving of data objects in R. I'm not 100% sure about the explicit conversion of data matrix formats. Specifically the The Your conversions are equivalent with |
I found the same issue. Any update for this issue? Thanks. |
Hello again!
Getting the following issue running R methods:
Example errors:
Any thoughts on what could be causing it?
The text was updated successfully, but these errors were encountered: