Learn R Programming

RootscanR (version 0.0.1)

checkInput: Check if the root scan directories contain everything necessary

Description

checkInput - This function checks a set of root scan directories if they each contain two pictures, X.segmentation.png and X.skeleton.png, where X is the name of the directory.

Usage

checkInput(data_dir = NULL, data_dirs = NULL)

Value

checkInput A list containing two TRUE-FALSE-vectors showing if the root scan directories each contain the two root pictures.

Arguments

data_dir

(Optional, default = NULL) String specifying the name (full path) of the directory (full path) containing all root scan directories of interest.

data_dirs

(Optional, default = NULL) Character vector specifying all of the individual root scan directories of interest (full paths). This is only used if data_dir is set to NULL.

Examples

Run this code
# Replace NULL with path to directory.
DATA_DIR <- NULL
# Apply the function directly...
cI1 <- checkInput(data_dir = DATA_DIR)
# ... or use it in combination with \code{getOverviewInput}:
cI2 <- checkInput(data_dirs = getOverviewInput(data_dir = DATA_DIR,
                                     naming_conv = "standard")$dir_name_full)

Run the code above in your browser using DataLab