Skip to content

Commit 5cfafed

Browse files
committed
outs woes again
1 parent af236cb commit 5cfafed

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

R/coerce.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
#' )
118118
#' ## using spacerangerOut folder
119119
#' tv <- TENxVisium(
120-
#' spacerangerOut = sample_dir, processing = "raw", images = "lowres"
120+
#' spacerangerOut = file.path(sample_dir, "outs"), processing = "raw", images = "lowres"
121121
#' )
122122
#' spe <- import(tv)
123123
#' # There can't be duplicate barcodes

R/dimGeometries.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ txSpots <- function(x, sample_id = 1L, withDimnames = TRUE) {
625625
#' )
626626
#' ## using spacerangerOut folder
627627
#' tv <- TENxVisium(
628-
#' spacerangerOut = sample_dir, processing = "raw", images = "lowres"
628+
#' spacerangerOut = file.path(sample_dir, "outs"), processing = "raw", images = "lowres"
629629
#' )
630630
#' spe <- import(tv)
631631
#' # There can't be suplicate barcodes

man/SpatialFeatureExperiment-coercion.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/addVisiumSpotPoly.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-coerce.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test_that("Convert SPE and SCE to SFE, no images", {
3333
})
3434

3535
test_that("Convert SPE to SFE, loaded images", {
36-
spe <- TENxVisium(spacerangerOut = dir, processing = "filtered",
36+
spe <- TENxVisium(spacerangerOut = file.path(dir, "outs"), processing = "filtered",
3737
images = c("lowres", "hires")) |> import()
3838
sfe <- toSpatialFeatureExperiment(spe)
3939
img1 <- getImg(spe)
@@ -54,7 +54,7 @@ test_that("Convert SPE to SFE, loaded images", {
5454
})
5555

5656
test_that("Convert SPE to SFE, stored images", {
57-
spe <- TENxVisium(spacerangerOut = dir, processing = "filtered",
57+
spe <- TENxVisium(spacerangerOut = file.path(dir, "outs"), processing = "filtered",
5858
images = c("lowres", "hires")) |> import()
5959
sfe <- toSpatialFeatureExperiment(spe)
6060
img1 <- getImg(spe)
@@ -75,7 +75,7 @@ test_that("Convert SPE to SFE, stored images", {
7575
})
7676

7777
test_that("Convert SPE to SFE, with SpatRaster image", {
78-
spe <- TENxVisium(spacerangerOut = dir, processing = "filtered",
78+
spe <- TENxVisium(spacerangerOut = file.path(dir, "outs"), processing = "filtered",
7979
images = c("lowres", "hires")) |> import()
8080
suppressWarnings(Img(spe, image_id = "lowres") <- rast(imgSource(getImg(spe))) |> SpatRasterImage())
8181
sfe <- toSpatialFeatureExperiment(spe)

vignettes/SFE.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ A read function for Visium HD is in progress. Contribution for Akoya, Molecular
438438
## Coercion from `SpatialExperiment`
439439
SPE objects can be coerced into SFE objects. If column geometries or spot diameter are not specified, then a column geometry called "centroids" will be created.
440440
```{r}
441-
spe <- TENxVisium(spacerangerOut = samples[1], processing = "filtered",
441+
spe <- TENxVisium(spacerangerOut = file.path(samples[1], "outs"), processing = "filtered",
442442
images = c("lowres", "hires")) |> import()
443443
```
444444

0 commit comments

Comments
 (0)