You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use scTransformed counts instead of log-transformed counts for training and predicting cell types. I created a Seurat object, performed the sctranform and then created a SingleCellExperiment object from the sctransformed counts. The execution fails at this line: sce_with_sctransformed_counts <- selectFeatures(sce_with_sctransformed_counts, suppress_plot = TRUE), producing the following error:
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
In addition: Warning message:
In linearModel(object, n_features) :
Your object does not contain counts() slot. Dropouts were calculated using logcounts() slot...
It does not seem like there are any NA values in the logcounts
Did you try to create the counts slot instead of the logcounts? Also, I assume that negative values would have a small magnitude and be relatively few, but did you check how many of them you have after doing the normalization with sctransform?
As you point out, we do make the assumption that counts are non-negative and as sctransform was published after scmap we were not able to test this combination (which does seem quite useful so I am curious to see how well it works).
Hello,
I am trying to use scTransformed counts instead of log-transformed counts for training and predicting cell types. I created a Seurat object, performed the sctranform and then created a SingleCellExperiment object from the sctransformed counts. The execution fails at this line:
sce_with_sctransformed_counts <- selectFeatures(sce_with_sctransformed_counts, suppress_plot = TRUE)
, producing the following error:It does not seem like there are any NA values in the logcounts
I suspected that since the sctransformed values are negative, it could be a potential source of error. Hence, I executed the following:
But I still keep getting the same error.
Could you please help me with this?
This is a portion of the code I am using.
Thank you.
The text was updated successfully, but these errors were encountered: