evaluate_file_availability: Evaluate the availability of files

Description Usage Arguments Value

View source: R/data-loading.R

Description

This functions takes a list as input that contains a well-plate data.frame (slot must be named wp_df) and a directory. The directory leads to the folder in which to look for .csv and .xls files named according to the well-image they belong. The availability of files is compared to what is expected based on the well-plate data.frame (wells, number of images per well etc.)

Usage

1
evaluate_file_availability(wp_list, recursive = TRUE, keep_filetype = "csv$")

Arguments

wp_list

A list that contains a well-plate data.frame and a directory leading to the folder in which the respective files are stored.

recursive

Logical value. Given to argument recursive of base::list.files().

keep_filetype

Character value. Determines the filetype to be ignored if for one well-image a .csv and a .xls file is found. Either 'xls$' or 'csv$'.

Value

The same list with additional slots containing a the well-plate data.frame joined with the evaluation variables as well as a vector containing the well-image files that are missing, a vector with file directories that are ambiguous and a vector with the valid directories from which to load the data.


kueckelj/celltracer documentation built on June 2, 2021, 6:37 a.m.