validate_metadata: Validate Metadata

View source: R/validate_metadata.R

validate_metadataR Documentation

Validate Metadata

Description

Validates experimental metadata prior to analysis.

Usage

validate_metadata(metadata)

Arguments

metadata

Metadata table.

Details

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.

Value

The validated metadata table.

See Also

read_metadata, validate_ankom, process_ankom, example_data

Examples


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
)


rumenGP documentation built on Oct. 2, 2026, 5:09 p.m.