Reads a YAML file and assigns each top-level key as a variable in the target environment (e.g., `db`, `threshold_tf_expr`, etc.). Also runs standard config initialization helpers when available.
Examples
# \donttest{
config_path <- tempfile(fileext = ".yaml")
writeLines(c(
"db: JASPAR2024",
"ref_genome: hg38",
"threshold_expr: 1",
"threshold_fp_score: 0",
"threshold_fp_tf_corr_r: 0.3",
"threshold_rna_gene_corr_r: 0.3",
"threshold_fp_gene_corr_r: 0.3"
), config_path)
load_config(config_path)
# Config values are now available to CraftGRN helper functions.
# }