Description Usage Arguments Value Author(s) See Also Examples
Additional data concerning the samples are collected together in .zis files. These functions manipulate such .zis files.
1 2 3 4 5 |
zisfile |
the name of the .zis file to manipulate (usually, "Description.zis"). |
template |
a .zis template to start with, if the .zis file does not exist yet. |
edit |
do we edit the .zis file after its creation? |
editor |
the program to use to edit the .zis file. |
wait |
do we wait that edition of file is done? |
expected.sections |
list of the sections that must be present in the .zis file. |
... |
further arguments to pass to |
zisRead()
returns a 'ZIDesc' object containing all the data in the .zis
file, or, in case of fealure (detailed in a warning), it returns NULL
.
The two other functions return TRUE
or FALSE
invisibly,
depending if the .zis file could be created/edited or not.
Philippe Grosjean <Philippe.Grosjean@umons.ac.be>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | ## Read content of the example zis file
zisFile <- system.file("examples", "Description.zis", package = "zooimage")
zisData <- zisRead(zisFile)
zisData # These are data for samples
attr(zisData, "metadata") # Further data (for the series) here
## Create a new .zis file in tempdir using the example .zis file as template
zisNew <- file.path(tempdir(), "Description.zis")
zisCreate(zisNew, template = zisFile, edit = FALSE) # One can edit it here too
## Edit the new file, and wait edition is completed
zisEdit(zisNew, wait = TRUE)
## It contains:
if (interactive()) file.show(zisNew, title = basename(zisNew), delete.file = TRUE)
## Clean up
rm(zisFile, zisData, zisNew)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.