Skip to content

Commit ec49a52

Browse files
committed
Restore code to run UpdateSeuratObject
1 parent f151797 commit ec49a52

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

singlecell/resources/chunks/Functions.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ readSeuratRDS <- function(filePath) {
132132
seuratObj <- readRDS(filePath)
133133

134134
# 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-
#}
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+
}
139139

140140
return(seuratObj)
141141
}

0 commit comments

Comments
 (0)