This function checks if an annotation table meets the required format for metabolite annotation. It verifies the presence of necessary columns, data types, and ensures that no critical values are missing (NA).

check_annotation_table(annotation_table)

Arguments

annotation_table

A data frame containing the annotation data to be validated.

Value

The function returns a message indicating that the annotation_table meets the required format, or it stops with an error message if any checks fail.

Examples

if (FALSE) { # \dontrun{
# Assuming `my_annotation_table` is the table to validate:
check_annotation_table(my_annotation_table)
} # }