Skip to content

Commit 4089f17

Browse files
committed
Remove Seurat::UpdateSeuratObject
1 parent 9882e69 commit 4089f17

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

singlecell/resources/chunks/Functions.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,12 @@ addErrorMessage <- function(f) {
130130

131131
readSeuratRDS <- function(filePath) {
132132
seuratObj <- readSeuratRDS(filePath)
133-
if (!('version' %in% slotNames(seuratObj)) || package_version(seuratObj@version) < package_version('5.0.0')) {
134-
print('Updating older seurat object')
135-
seuratObj <- Seurat::UpdateSeuratObject(seuratObj)
136-
}
133+
134+
# NOTE: this could be used after SeuratObject upgrades
135+
#if (!('version' %in% slotNames(seuratObj)) || package_version(seuratObj@version) < package_version('5.0.0')) {
136+
# print('Updating older seurat object')
137+
# seuratObj <- Seurat::UpdateSeuratObject(seuratObj)
138+
#}
137139

138140
return(seuratObj)
139141
}

0 commit comments

Comments
 (0)