Switch FilterObjects to .FilterObjects#275
Conversation
44cc5fa to
fdbedde
Compare
anashen
left a comment
There was a problem hiding this comment.
Thanks @bbimber for the bug fix! Tested with example at satijalab/seurat#10251 (comment).
Notes: FilterObjects was deprecated and replaced with .FilterObjects in v5.0.0, marked as defunct in v5.3.0 (automatically via .Deprecate); #171 intended to replace all calls but missed the instances here. We reach the problematic condition on line 4093 only when adding metadata of an S3 class, hence routine testing did not find the defunction error.
|
@anashen: thank you. what is your release plan for bugfixes like this? |
|
@bbimber I will get back to you on that. For urgent needs I would suggest either 1) downgrading, 2) installing the I modified the example you provided, and verified that this does not error: createDummyObj <- function(minFeatures = 2) {
#simulate a seurat object with all features
features <- paste0('Gene-', 1:50)
nCell <- 100
mtx <- matrix(
rpois(nCell * length(features), lambda = 2),
ncol = nCell,
nrow = length(features)
)
colnames(mtx) <- paste0("Cell-", seq_len(nCell))
rownames(mtx) <- features
seuratObj <- suppressWarnings(CreateSeuratObject(
counts = mtx,
min.cells = 3,
min.features = minFeatures
))
date_factor <- factor(as.Date('2020-01-01'))
seuratObj$DateColumn<- date_factor
seuratObj$MetaCol2 <- 'B'
return(seuratObj)
}
seuratObj1 <- createDummyObj()
seuratObj2 <- createDummyObj()
seuratObjM <- merge(seuratObj1, seuratObj2) |
|
Got it, thank you. And yes, we already downgraded to 5.2.0 in our CI and docker images |
Hello,
I'm not sure how your branches work, so this might not be the right target. I would ideally like to see this as a bugfix to 5.3.0.
We just updated our docker images to SeuratObject 5.3.0 and Seurat 5.4. When doing a simple merge(), this results in this error. I think this is b/c SeuratObject is using FetchData, which is marked as deprecated_stop() in 5.0.0.