Creates a named character()
vector that can be helpful for locating
image files and used with add_images()
. This function is not necessary if
the image files don't use the spe$sample_id
.
locate_images(spe, image_dir, image_pattern)
A
SpatialExperiment-class
object. See fetch_data()
for how to download some example objects or
read10xVisiumWrapper()
to read in spaceranger --count
output files and
build your own spe
object.
A character(1)
specifying a path to a directory containing
image files with the pattern sampleID_pattern.png
.
A character(1)
specifying the pattern for the image
files.
A named character()
vector with the path to images.
Other Functions for adding non-standard images:
add_images()
if (FALSE) { # \dontrun{
locate_images(spe, tempdir(), "testImage")
} # }