json_config: Read in a JBrowse 2 JSON configuration file

Description Usage Arguments Details Value Examples

View source: R/json.R

Description

Reads in a JSON file with values for configuring your browser. Looks for assembly, tracks, defaultSession, and theme. Only assembly is explicitly required for a working browser.

Usage

1

Arguments

file

the file path or URL to a JBrowse 2 configuration

Details

Note: this is the most advanced API. It offers full control to do anything possible in JavaScript with an embedded JBrowse 2 React component, but comes with a steeper learning curve. For more details on JBrowse 2 configuration, visit: https://jbrowse.org/jb2/docs/config_guide

An example JSON config is provided with this package

Value

a character vector of JSON configuration from a JBrowse 2 configuration file

Examples

1
## Not run: json_config("./config.json")

JBrowseR documentation built on July 8, 2021, 1:06 a.m.