Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: ImageArray
Type: Package
Title: A framework for on-disk and in-memory image arrays
Version: 1.1.5
Version: 1.1.6
Authors@R: c(
person("Artür", "Manukyan",
role=c("aut", "cre"),
Expand Down
8 changes: 8 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# ImageArray 1.1.6

## New features

* `ImageArray` function now accepts Bioformats compatible image pyramid
formats beyond ome.tiff and qptiff. See https://bio-formats.readthedocs.io/en/latest/supported-formats.html
for more information.

# ImageArray 1.1.5

## New features
Expand Down
4 changes: 3 additions & 1 deletion R/ImageArray.R
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ ImageArray <- function(

# create ImageArray from file path
if (inherits(image, "character")) {
if (grepl(".ome.tiff$|.ome.tif$|.qptiff$|.qptif$", image)) {
pyramid_formats <- paste0(gsub("\\.", "\\\\.", .PYRAMID_FORMATS),
"$", collapse = "|")
if (grepl(pyramid_formats, image, ignore.case = TRUE)) {
image <- BFPath(image, series, resolution)
} else {
image <- read_image(image, engine = engine)
Expand Down
16 changes: 16 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,19 @@ is.sequential <- function(x) {
#' @keywords internal
#' @noRd
.TEMPLATE_SCALES <- c(c = 1, y = 1, x = 1, z = 1, t = 0.1)

#' @keywords internal
#' @noRd
.PYRAMID_FORMATS <- c(
".ome.tiff", # OME-TIFF pyramidal TIFF variants (OME-TIFF and related)
".ome.tif",
".ome.tf2",
".ome.tf8",
".ome.btf",
".svs", # Aperio SVS
".afi", # Aperio AFI
".ndpi", # Hamamatsu NDPI
".ndpis", # Hamamatsu NDPI variants
".qptiff", # CODEX ?
".qptif" # CODEX ?
)
5 changes: 5 additions & 0 deletions vignettes/ImageArray.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,11 @@ imgarray <- ImageArray(ome.tiff.file, series = 1, resolution = 1)
imgarray
```

`r Biocpkg("ImageArray")` is also capable of reading other BioFormats
compatible image formats (e.g. qptiff, svs). For more information, visit the
[Supported Formats](https://bio-formats.readthedocs.io/en/v8.3.0/supported-formats.html)
webpage of BioFormats.

# Image Transformations

`r Biocpkg("ImageArray")` provides image transformation functions that operate
Expand Down
Loading