Skip to content

Commit

Permalink
Additional replacements of ImageJ with Fiji meant to be included in l…
Browse files Browse the repository at this point in the history
…ast commit
  • Loading branch information
Nick-Eagles committed Jul 23, 2024
1 parent 482170b commit a9b1dda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions tests/testthat/test-prep_fiji_image.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that(
"prep_imagej_image",
"prep_fiji_image",
{
########################################################################
# Prepare sample_info
Expand All @@ -16,20 +16,20 @@ test_that(
sr_dir, sample_info$capture_area, "outs", "spatial"
)

# Add ImageJ-output-related columns
imagej_dir <- tempdir()
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)]
# Add Fiji-output-related columns
fiji_dir <- tempdir()
temp <- unzip(fetch_data("visiumStitched_brain_Fiji_out"), exdir = fiji_dir)
sample_info$fiji_xml_path <- temp[grep("xml$", temp)]
sample_info$fiji_image_path <- temp[grep("png$", temp)]

sample_info <- rescale_imagej_inputs(sample_info, out_dir = tempdir())
sample_info <- rescale_fiji_inputs(sample_info, out_dir = tempdir())

########################################################################
# Tests
########################################################################

spe_input_dir <- tempdir()
prep_imagej_image(
prep_fiji_image(
sample_info,
out_dir = spe_input_dir, lowres_max_size = 900
)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-rescale_fiji_inputs.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test_that(
"rescale_imagej_inputs",
"rescale_fiji_inputs",
{
########################################################################
# Prepare sample_info
Expand All @@ -20,7 +20,7 @@ test_that(
# Tests
########################################################################

sample_info_new <- rescale_imagej_inputs(
sample_info_new <- rescale_fiji_inputs(
sample_info,
out_dir = tempdir()
)
Expand Down

0 comments on commit a9b1dda

Please sign in to comment.