From 4c0a494552512fd4a46e583c5512f86f390d5b8d Mon Sep 17 00:00:00 2001 From: Paul Hoffman Date: Wed, 10 Apr 2024 16:56:43 -0400 Subject: [PATCH 1/4] Use `packageVersion("SeuratObject")` in `UpdateSeuratObject()` Use the package version of SeuratObject instead of Seurat in `UpdateSeuratObject()`; this allows running `UpdateSeuratObject()` without requiring Seurat to be installed --- R/seurat.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/seurat.R b/R/seurat.R index 4c85adc7..71bf1e89 100644 --- a/R/seurat.R +++ b/R/seurat.R @@ -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), From 169cd32ebfdcbd252ca1109fb4529f915942936a Mon Sep 17 00:00:00 2001 From: David Collins Date: Thu, 2 May 2024 07:05:29 -0400 Subject: [PATCH 2/4] Tidy NEWS --- NEWS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 6943faed..e0bc10d0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,11 +1,11 @@ # Unreleased ## Changes: -- Add `...` to call signature for `Radius` generic - Properly re-export `%||%` from rlang (#178) - Class key-based warnings (#180) - Require R 4.1 (#180) - Fix errors in `UpdateSeuratObject` (@ddiez, #182) +- Add `...` to call signature for `Radius` generic (#190) - Fix bug in `PolyVtx` (#194) - Fix bug in feature-level subsetting (#200) From c813bf1ab65d53e7b6abce69b68d48a1ac04aaa6 Mon Sep 17 00:00:00 2001 From: David Collins Date: Thu, 2 May 2024 16:55:22 -0400 Subject: [PATCH 3/4] Update NEWS --- NEWS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/NEWS.md b/NEWS.md index e0bc10d0..5a4e8c2b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -8,6 +8,7 @@ - Add `...` to call signature for `Radius` generic (#190) - Fix bug in `PolyVtx` (#194) - Fix bug in feature-level subsetting (#200) +- Update `UpdateSeuratObject` to run without `Seurat` installed (#199) # SeuratObject 5.0.1 From 37f2e5e7da96384d9946cfd841981e387baa37c1 Mon Sep 17 00:00:00 2001 From: David Collins Date: Thu, 2 May 2024 16:57:13 -0400 Subject: [PATCH 4/4] Bump version --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6ad3f4f2..e39b6438 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: SeuratObject Type: Package Title: Data Structures for Single Cell Data -Version: 5.0.1.9008 +Version: 5.0.1.9009 Authors@R: c( person(given = 'Paul', family = 'Hoffman', email = 'hoff0792@alumni.umn.edu', role = 'aut', comment = c(ORCID = '0000-0002-7693-8957')), person(given = 'Rahul', family = 'Satija', email = 'seurat@nygenome.org', role = c('aut', 'cre'), comment = c(ORCID = '0000-0001-9448-8833')),