This function checks if the input data frame variable_info has the required columns, and if these columns have any non-NA values.

check_variable_info(variable_info)

Arguments

variable_info

A data frame. The data frame should have at least the columns "ensembl", "symbol", "uniprot", and "entrezid". Each of these columns should have at least one non-NA value.

Value

This function does not return any value. It stops execution and throws an error if any of the required conditions are not met.

Author

Xiaotao Shen shenxt1990@outlook.com

Examples

variable_info <- data.frame(
  ensembl = c("ENSG000001", NA, NA),
  symbol = c("Gene1", "Gene2", "Gene3"),
  uniprot = c(NA, "P12345", "Q67890"),
  entrezid = c(101, 102, 103)
)
check_variable_info(variable_info)