Description Usage Arguments Details Value Author(s) See Also Examples
A wrapper function, which reads an ImageJ zip file containing a collection of ROI files and outputs a list of data frames ready for convert.ijdata function.
1 2 3 |
X |
character string defining the name (including extension) or file path of an ImageJ zip file. Alternatively an |
spots |
optional. A character argument specifying the type of ROI objects that should be considered as sample spot sequences. Alternatively a numeric vector specifying the order of elements or a character vector specifying the names of ROI objects that should be assigned as sampling spot sequences. Defaults to |
gbs |
optional. A character argument, numeric vector or character vector specifying the type of ROI objects that should be considered as growth bands. Defauls to |
main |
optional. A character argument specifying the type of ROI object that should be considered as the measurement axis. Only one measurement axis per ImageJ .zip file is allowed. Defaults to |
names |
optional. A character argument specifying how the names of
|
spot.names |
optional. A character vector of equal length to |
gbs.names |
optional. A character vector of equal length to |
main.name |
optional. A character vector of lenght 1 defining the name of the measurement axis ( |
sample.name |
optional. A character vector of length 1 defining the name of the sample. File name without the extension or alternatively |
scale |
optional. A numeric value defining the scale of photograph in pixels / |
unit |
optional. A charater vector of length 1 defining the unit of measurements. See |
In order to minimize the amount of text to be typed by a user, ROI objects of type "point" (this includes the "Multi-point Tool" points) are considered as sample spot sequences (spots) by default. Further, all "polyline" objects are assumed as growth bands (gbs) and "line" objects as the measurement axis (main) resulting to that only one "line" object is allowed per .zip file using the default settings. Alternatively, the user can specify the spots, gbs, and main objects manually using the order of the ImageJ .zip file with the exception that only one measurement axis is allowed per rawDist or spotDist object.
Punctuation characters other than _ or . should not be used as names of spots or gbs, because they tend to confuse the internal grep functions in spot.dist function. Hence it is adviced to use one of the options renaming invalid names of spots and gbs ("generate.invalid", "generate", "keep").
Returns an "IJDATA" object, which is a list of data frames containing the x and y coordinates for sampling spot sequences (spots.x and spots.y), growth bands (gbs.x and gbs.y), and measurement axis (main.x and main.y) together with sample name, scaling factor and unit of measurement.
Mikko Vihtakari
order.ijdata for ordering and subsetting read.ijdata output.
convert.ijdata for converting the coordinate information to spatstat point patterns.
spot.dist for aligning sample spot sequences.
read.ijroi and read.ijzip for reading ImageJ ROI and .zip files.
1 2 3 4 5 6 7 8 9 10 11 | # Locate the example zip file
path <- file.path(system.file("extdata", package = "sclero"), "shellspots.zip")
# You can replace 'path' by 'Your_file_name.zip'
dat <- read.ijdata(path)
summary(dat)
## Works also for IJZIP objects
dat2 <- read.ijzip(path)
dat2 <- read.ijdata(dat2)
dat[!(dat %in% dat2)] # Only the sample name differs
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.