This function checks the validity of a mass_dataset object. It performs various checks on the object's slots to ensure they meet the required criteria.

check_mass_dataset_class(object)

Arguments

object

An object of class mass_dataset.

Value

Returns TRUE if the object is valid, otherwise returns a character vector of error messages.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

data("expression_data")
data("sample_info")
data("variable_info")
object <-
  create_mass_dataset(expression_data = expression_data,
                      sample_info = sample_info,
                      variable_info = variable_info)
  check_mass_dataset_class(object)
#> [1] TRUE