Compress, uncompress .zidb files that contain data for a sample. Starting from ZooImage 3, the new format uses filehash tables for better performances. Conversion from and to the old .zid format (a zip archive indeed) is supported for compatibility with old datasets.
zidbMake(zidir, zidbfile = paste0(zidir, ".zidb"), zisfile =
file.path(dirname(zidir), "Description.zis"), type = "ZI3", check = TRUE,
check.vignettes = TRUE, replace = FALSE, delete.source = replace)
zidbMakeAll(path = ".", samples, zisfiles = file.path(dirname(samples),
"Description.zis"), type = "ZI3", check = TRUE,
check.vignettes = TRUE, replace = FALSE, delete.source = replace)
zidToZidb(zidfile, zisfile = file.path(dirname(zidfile),
"Description.zis"), replace = FALSE, delete.source = replace)
zidToZidbAll(path = ".", zidfiles, zisfiles = file.path(dirname(zidfiles),
"Description.zis"), replace = FALSE, delete.source = replace)
zidbToZid(zidbfile, zisfile = file.path(dirname(zidbfile),
"Description.zis"), replace = FALSE, delete.source = replace)
zidbToZidAll(path = ".", zidbfiles, zisfiles = file.path(dirname(zidbfiles),
"Description.zis"), replace = FALSE, delete.source = replace)
zidbLink(zidbfile)
zidbDatRead(zidbfile)
zidbSampleRead(zidbfile)zidbPlotNew(main = "ZooImage collage", ...)
zidbDrawVignette(rawimg, type = "jpg", item, nx = 5, ny = 5, vmar = 0.01)
a directory containing data to put in a .zidb files.
the path of the .zidb file.
the path of a series of .zidb files.
the path of a .zid file.
the path of a series of .zid files.
the path of the .zis file that contains description of this sample.
the path of a series of .zis files that contain description of the processed samples.
the ZI file format, currently only 'ZI3' type is supported. For
zidbDrawVignette(), it is the type of vignette image. Currently, it
can be either "jpg", or "png".
do we check the files in this directory before/after compression?
do we check if the future .zidb file contains all vignettes?
do we replace existing files?
do we delete source files after compression?
look for files in this path.
a list of 'samples', i.e., subdirectories to process.
the title of the new plot.
further arguments passed to the plot()
function.
the raw content of a vignette, as stored in a .zidb file.
the item number to draw (enumeration from left to right and from top to bottom).
the number of vignettes in a column.
the number of vignettes in a row.
the relative size of vignette margins.