# Define a schema for a dataframe of genes
gene_schema <- z_dataframe(
gene_name = z_string(description = "Name of the gene"),
expression = z_number(description = "Expression level"),
significant = z_boolean(description = "Is statistically significant")
)
# Use with generate_object
# result <- generate_object(model, "Extract gene data...", gene_schema)
# df <- dplyr::bind_rows(result$object)
Run the code above in your browser using DataLab