Load browser configuration from YAML file
browser_load_config.RdLoads and validates a YAML configuration file for the genome browser. The configuration can contain multiple profiles (e.g., "local" and "server") with different misha database paths and settings. If no profile is specified, the function auto-detects based on which paths exist.
Value
Parsed and validated configuration list with resolved paths and defaults.
Internal fields (prefixed with ._) contain resolved paths and metadata.
Details
The configuration file should contain:
profiles: Environment-specific settings (misha_root, base_dir, data_dir)panels: Panel definitions for data visualizationvtracks: Virtual track definitionsvlines: Vertical line annotationsplot: Plot settings (iterator, extraction_mode, theme)ui: User interface settings (title, defaults)navigator: Gene navigator configurationstart: Initial region settings
See also
browser_save_config to save configuration,
browser_create_config to create configuration programmatically,
browser_create to create a browser from configuration
Examples
if (FALSE) { # \dontrun{
# Load with auto-detected profile
cfg <- browser_load_config("my_browser.yaml")
# Load with specific profile
cfg <- browser_load_config("my_browser.yaml", profile = "server")
# Use loaded config to create browser
browser <- browser_create(config = "my_browser.yaml")
} # }