Skip to content

Commit f6ae67d

Browse files
committed
chore: add terra package to DESCRIPTION
1 parent 02ff2c3 commit f6ae67d

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.Rbuildignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@
1111
^pkgdown$
1212
^conda\/.+
1313
^conda$
14+
^notebooks\/.+
15+
^notebooks$
1416
^docs\/.+
1517
^docs$
1618
^test\.ipynb$
1719
^.+\.Rcheck/.+$
1820
^.+\.tar\.gz$
1921
^\.github\/.+$
20-
^conda\/.+
2122
^Makefile$
2223
^Rplots\.pdf$

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ jobs:
5555
any::Seurat, any::concaveman, any::gridGraphics, any::ggVennDiagram,
5656
any::clustree, any::ggwordcloud, any::ggalluvial, any::ggpubr, any::callr,
5757
any::ggforce, any::ggraph, any::ggridges, any::hexbin, any::igraph,
58-
any::scattermore, any::ggupset, any::iNEXT, any::metap, any::tidyprompt
58+
any::scattermore, any::ggupset, any::iNEXT, any::metap, any::tidyprompt,
59+
any::terra
5960
6061
- uses: r-lib/actions/check-r-package@v2
6162
env:

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Suggests:
4848
callr,
4949
metap (>= 1.11),
5050
knitr,
51+
terra,
5152
rmarkdown
5253
LazyData: true
5354
LazyDataCompression: xz

R/spatialplot.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ SpatialPlot.Seurat.VisiumV2 <- function(
140140
points_args$label_segment_color <- label_segment_color
141141
points_args$label_insitu <- label_insitu
142142
} else if (!is.null(features)) {
143-
cells <- unique(Seurat:::CellsByImage(object, images = if(isFALSE(image)) NULL else image, unlist = TRUE))
143+
cells_by_image <- utils::getFromNamespace("CellsByImage", "Seurat")
144+
cells <- unique(cells_by_image(object, images = if(isFALSE(image)) NULL else image, unlist = TRUE))
144145
featdata <- Seurat::FetchData(
145146
object = object,
146147
vars = features,
@@ -160,7 +161,6 @@ SpatialPlot.Seurat.VisiumV2 <- function(
160161
facet_by <- ".facet_var"
161162
}
162163
}
163-
d <<- points_args$data
164164
points_args$highlight <- highlight
165165
points_args$highlight_alpha <- highlight_alpha
166166
points_args$highlight_size <- highlight_size

0 commit comments

Comments
 (0)