Skip to content

Commit

Permalink
Use packageVersion("SeuratObject") in UpdateSeuratObject()
Browse files Browse the repository at this point in the history
Use the package version of SeuratObject instead of Seurat in `UpdateSeuratObject()`; this allows running `UpdateSeuratObject()` without requiring Seurat to be installed
  • Loading branch information
mojaveazure authored and dcollins15 committed May 2, 2024
1 parent 0218527 commit 4c0a494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ UpdateSeuratObject <- function(object) {
)
}
# Update object version
slot(object = object, name = 'version') <- packageVersion(pkg = 'Seurat')
slot(object = object, name = 'version') <- packageVersion(pkg = 'SeuratObject')
}
object <- suppressWarnings(
expr = UpdateSlots(object = object),
Expand Down

0 comments on commit 4c0a494

Please sign in to comment.