
Check Integrity and Structure of Microbiome Dataset Object
Source:R/validation_microbiome_dataset.R
check_microbiome_dataset_class.RdPerforms a series of checks on a microbiome dataset object to ensure its integrity and correct structure. This includes verifying the format of various components such as sample_info, variable_info, and expression_data.
Value
TRUE if the dataset passes all checks, otherwise returns a character vector listing the found errors.
Details
The function performs checks to ensure:
variable_infohas avariable_idcolumn and no duplicated variable IDs.sample_infohassample_idandclasscolumns with no duplicated sample IDs.sample_info_noteandvariable_info_notehave appropriate columns if they exist.Consistency between the
expression_dataand thesample_infoandvariable_info.Consistency between
sample_info,variable_infoand their respective notes. Any issues found are returned as character strings in a vector.
Author
Xiaotao Shen xiaotao.shen@outlook.com
Examples
data("global_patterns", package = "microbiomedataset")
check_microbiome_dataset_class(global_patterns)
#> [1] TRUE