Skip to content

Commit

Permalink
Rename references of LS to visiumStitched_brain
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick-Eagles committed Jul 19, 2024
1 parent 788d04c commit 2373930
Show file tree
Hide file tree
Showing 21 changed files with 40 additions and 40 deletions.
6 changes: 3 additions & 3 deletions R/add_array_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
#' @author Nicholas J. Eagles
#'
#' @examples
#' spe <- spatialLIBD::fetch_data(type = "Visium_LS_spe")
#' spe <- spatialLIBD::fetch_data(type = "visiumStitched_brain_spe")
#'
#' ########################################################################
#' # Prepare sample_info
Expand All @@ -58,7 +58,7 @@
#' # Add 'spaceranger_dir' column
#' sr_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_spaceranger"), exdir = sr_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir
#' )
#' sample_info$spaceranger_dir = file.path(
#' sr_dir, sample_info$capture_area, 'outs', 'spatial'
Expand All @@ -67,7 +67,7 @@
#' # Add ImageJ-output-related columns
#' imagej_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir
#' )
#' sample_info$imagej_xml_path = temp[grep('xml$', temp)]
#' sample_info$imagej_image_path = temp[grep('png$', temp)]
Expand Down
2 changes: 1 addition & 1 deletion R/add_overlap_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#' @author Nicholas J. Eagles
#'
#' @examples
#' spe <- spatialLIBD::fetch_data(type = "Visium_LS_spe")
#' spe <- spatialLIBD::fetch_data(type = "visiumStitched_brain_spe")
#'
#' # Find the mean of the 'sum_umi' metric by capture area to understand
#' # which capture areas will be excluded in regions of overlap
Expand Down
4 changes: 2 additions & 2 deletions R/build_spe.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#' # Add 'spaceranger_dir' column
#' sr_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_spaceranger"), exdir = sr_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir
#' )
#' sample_info$spaceranger_dir = file.path(
#' sr_dir, sample_info$capture_area, 'outs', 'spatial'
Expand All @@ -46,7 +46,7 @@
#' # Add ImageJ-output-related columns
#' imagej_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir
#' )
#' sample_info$imagej_xml_path = temp[grep('xml$', temp)]
#' sample_info$imagej_image_path = temp[grep('png$', temp)]
Expand Down
4 changes: 2 additions & 2 deletions R/prep_imagej_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#' # Add 'spaceranger_dir' column
#' sr_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_spaceranger"), exdir = sr_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir
#' )
#' sample_info$spaceranger_dir = file.path(
#' sr_dir, sample_info$capture_area, 'outs', 'spatial'
Expand All @@ -42,7 +42,7 @@
#' # Add ImageJ-output-related columns
#' imagej_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir
#' )
#' sample_info$imagej_xml_path = temp[grep('xml$', temp)]
#' sample_info$imagej_image_path = temp[grep('png$', temp)]
Expand Down
4 changes: 2 additions & 2 deletions R/prep_imagej_image.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' # Add 'spaceranger_dir' column
#' sr_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_spaceranger"), exdir = sr_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir
#' )
#' sample_info$spaceranger_dir = file.path(
#' sr_dir, sample_info$capture_area, 'outs', 'spatial'
Expand All @@ -43,7 +43,7 @@
#' # Add ImageJ-output-related columns
#' imagej_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir
#' )
#' sample_info$imagej_xml_path = temp[grep('xml$', temp)]
#' sample_info$imagej_image_path = temp[grep('png$', temp)]
Expand Down
4 changes: 2 additions & 2 deletions R/rescale_imagej_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#' # Add 'spaceranger_dir' column
#' sr_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_spaceranger"), exdir = sr_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir
#' )
#' sample_info$spaceranger_dir = file.path(
#' sr_dir, sample_info$capture_area, 'outs', 'spatial'
Expand All @@ -50,7 +50,7 @@
#' # Add ImageJ-output-related columns
#' imagej_dir = tempdir()
#' temp = unzip(
#' spatialLIBD::fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir
#' spatialLIBD::fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir
#' )
#' sample_info$imagej_xml_path = temp[grep('xml$', temp)]
#' sample_info$imagej_image_path = temp[grep('png$', temp)]
Expand Down
2 changes: 1 addition & 1 deletion R/spe_to_seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#'
#' @examples
#'
#' spe <- spatialLIBD::fetch_data(type = "Visium_LS_spe")
#' spe <- spatialLIBD::fetch_data(type = "visiumStitched_brain_spe")
#'
#' ## Convert from a SpatialExperiment to a Seurat object
#' seur <- spe_to_seurat(spe)
Expand Down
6 changes: 3 additions & 3 deletions man/add_array_coords.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/add_overlap_info.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/build_spe.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/prep_imagej_coords.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/prep_imagej_image.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/rescale_imagej_inputs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/spe_to_seurat.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions tests/testthat/test-add_array_coords.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test_that(
"add_array_coords",
{
spe <- fetch_data(type = "Visium_LS_spe")
spe <- fetch_data(type = "visiumStitched_brain_spe")

########################################################################
# Prepare sample_info
Expand All @@ -13,14 +13,14 @@ test_that(
)
# Add 'spaceranger_dir' column
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)

# Add ImageJ-output-related columns
imagej_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir)
temp = unzip(fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir)
sample_info$imagej_xml_path = temp[grep('xml$', temp)]
sample_info$imagej_image_path = temp[grep('png$', temp)]

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-add_overlap_info.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
test_that(
"add_overlap_info",
{
spe <- fetch_data(type = "Visium_LS_spe")
spe <- fetch_data(type = "visiumStitched_brain_spe")

spe$my_metric = 0
spe$my_metric[spe$capture_area == "V13B23-283_A1"] = 1
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-build_spe.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ test_that(
)
# Add 'spaceranger_dir' column
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)

# Add ImageJ-output-related columns
imagej_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir)
temp = unzip(fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir)
sample_info$imagej_xml_path = temp[grep('xml$', temp)]
sample_info$imagej_image_path = temp[grep('png$', temp)]

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-prep_imagej_coords.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ test_that(
)
# Add 'spaceranger_dir' column
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)

# Add ImageJ-output-related columns
imagej_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir)
temp = unzip(fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir)
sample_info$imagej_xml_path = temp[grep('xml$', temp)]
sample_info$imagej_image_path = temp[grep('png$', temp)]

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-prep_imagej_image.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ test_that(
)
# Add 'spaceranger_dir' column
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)

# Add ImageJ-output-related columns
imagej_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir)
temp = unzip(fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir)
sample_info$imagej_xml_path = temp[grep('xml$', temp)]
sample_info$imagej_image_path = temp[grep('png$', temp)]

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-rescale_imagej_inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that(
)
# Add 'spaceranger_dir' column
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)
Expand Down
6 changes: 3 additions & 3 deletions vignettes/full_demo.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ with `spatialLIBD::fetch_data()`.

```{r "spaceranger_dir"}
sr_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_spaceranger"), exdir = sr_dir)
temp = unzip(fetch_data("visiumStitched_brain_spaceranger"), exdir = sr_dir)
sample_info$spaceranger_dir = file.path(
sr_dir, sample_info$capture_area, 'outs', 'spatial'
)
Expand Down Expand Up @@ -125,7 +125,7 @@ respectively.

```{r "imagej_out"}
imagej_dir = tempdir()
temp = unzip(fetch_data("Visium_LS_ImageJ_out"), exdir = imagej_dir)
temp = unzip(fetch_data("visiumStitched_brain_ImageJ_out"), exdir = imagej_dir)
sample_info$imagej_xml_path = temp[grep('xml$', temp)]
sample_info$imagej_image_path = temp[grep('png$', temp)]
```
Expand Down Expand Up @@ -288,7 +288,7 @@ object with [normalized](https://bioconductor.org/books/3.12/OSCA/normalization.
counts from `spatialLIBD`, then plot a few white matter genes as before:

```{r "fetch_norm"}
spe_norm = fetch_data(type = 'Visium_LS_spe')
spe_norm = fetch_data(type = 'visiumStitched_brain_spe')
wm_genes_ens = rownames(spe_norm)[
match(c("MBP", "GFAP", "PLP1", "AQP4"), rowData(spe_norm)$gene_name)
Expand Down

0 comments on commit 2373930

Please sign in to comment.