Skip to contents

Load image information

Usage

LoadImageInfo(imgfiles)

Arguments

imgfiles

A character vector with file paths. Paths should specify PNG or JPEG files containing images created with spaceranger. Alternatively, the character vector can contain URLs to images.

Value

A tbl object with image info

Examples

library(semla)

imgs <-
  Sys.glob(paths = paste0(system.file("extdata", package = "semla"),
                          "/*/spatial/tissue_lowres_image.jpg"))
image_info <- LoadImageInfo(imgs)
image_info
#> # A tibble: 2 × 9
#>   format width height colorspace matte filesize density sampleID type         
#>   <chr>  <int>  <int> <chr>      <lgl>    <int> <chr>   <chr>    <chr>        
#> 1 JPEG     565    600 sRGB       FALSE   106233 72x72   1        tissue_lowres
#> 2 JPEG     600    541 sRGB       FALSE   141710 72x72   2        tissue_lowres