Skip to content

Commit 144d90a

Browse files
authored
Merge pull request #275 from bbimber/FilterObjects
Switch FilterObjects to .FilterObjects
2 parents 03c3530 + 672ffc2 commit 144d90a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: SeuratObject
22
Title: Data Structures for Single Cell Data
3-
Version: 5.3.0
3+
Version: 5.3.0.9001
44
Authors@R: c(
55
person(given = 'Paul', family = 'Hoffman', email = 'hoff0792@alumni.umn.edu', role = 'aut', comment = c(ORCID = '0000-0002-7693-8957')),
66
person(given = 'Rahul', family = 'Satija', email = 'seurat@nygenome.org', role = c('aut', 'cre'), comment = c(ORCID = '0000-0001-9448-8833')),

R/seurat.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4090,8 +4090,8 @@ setMethod( # because R doesn't allow S3-style [[<- for S4 classes
40904090
}
40914091
}
40924092
# Check to ensure that we aren't adding duplicate names
4093-
if (any(colnames(x = meta.data) %in% FilterObjects(object = x))) {
4094-
bad.cols <- colnames(x = meta.data)[which(colnames(x = meta.data) %in% FilterObjects(object = x))]
4093+
if (any(colnames(x = meta.data) %in% .FilterObjects(object = x))) {
4094+
bad.cols <- colnames(x = meta.data)[which(colnames(x = meta.data) %in% .FilterObjects(object = x))]
40954095
stop(
40964096
paste0(
40974097
"Cannot add a metadata column with the same name as an Assay or DimReduc - ",
@@ -4193,7 +4193,7 @@ setMethod( # because R doesn't allow S3-style [[<- for S4 classes
41934193
}
41944194
# When removing an Assay, clear out associated DimReducs, Graphs, and SeuratCommands
41954195
if (is.null(x = value) && inherits(x = x[[i]], what = 'Assay')) {
4196-
objs.assay <- FilterObjects(
4196+
objs.assay <- .FilterObjects(
41974197
object = x,
41984198
classes.keep = c('DimReduc', 'SeuratCommand', 'Graph')
41994199
)

0 commit comments

Comments
 (0)