Skip to contents

Use the python package tifffile to get the the XML metadata of a .ome.tif file. The R package xml2 is then used to work with it to retrieve specific nodes in the xml data and extract data.

Usage

ometif_metadata(
  path,
  node = NULL,
  output = c("data.frame", "xml", "list", "structure")
)

Arguments

path

character. filepath to .ome.tif image

node

character vector. Specific xml node to get. More terms can be added to get a node from a specific hierarchy.

output

character. One of "data.frame" to return a data.frame of the attributes information of the xml node, "xmL" for an xml2 representation of the node, "list" for an R native list (note that many items in the list may have overlapping names that make indexing difficult), or "structure" to invisibly return NULL, but print the structure of the XML document or node.

Value

list of image metadata information

See also

Other ometif utility functions: ometif_to_tif()