Ensures required config keys (e.g. thresholds and db) exist in the chosen environment before running pipelines.
Usage
validate_config(
required = c("db", "ref_genome", "threshold_expr", "threshold_fp_score",
"threshold_fp_tf_corr_r", "link_window_bp", "threshold_rna_gene_corr_r",
"threshold_fp_gene_corr_r"),
numeric_required = c("threshold_expr", "threshold_fp_score", "threshold_fp_tf_corr_r",
"link_window_bp", "threshold_rna_gene_corr_r", "threshold_fp_gene_corr_r"),
env = .craftgrn_state,
project_config = NULL
)Arguments
- required
Character vector of required variable names.
- numeric_required
Character vector of required numeric variable names.
- env
Environment to check. Defaults to the internal CraftGRN config state.
- project_config
Optional parsed project config or YAML path to validate against the package project schema. Unknown or malformed entries fail.