View source: R/validate_metadata.R
| validate_metadata | R Documentation |
Validates experimental metadata prior to analysis.
validate_metadata(metadata)
metadata |
Metadata table. |
Metadata are required for linking bottles to treatments and biological replicates during data processing and model fitting.
Required columns:
Head
Treatment
Rep
Validation checks may include:
Presence of required columns
Missing values
Duplicate bottle identifiers
Invalid treatment assignments
This function is typically used before
process_ankom() to ensure metadata
are suitable for downstream analyses.
The validated metadata table.
read_metadata,
validate_ankom,
process_ankom,
example_data
files <- example_data()
metadata <- read_metadata(
files$metadata
)
validate_metadata(
metadata
)
# Typical workflow
raw_data <- read_ankom(
files$ankom
)
gp <- process_ankom(
raw_data,
metadata,
headspace_ml = 210,
temperature_c = 39
)
head(
gp
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.