json_config | R Documentation |
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.
json_config(file)
file |
the file path or URL to a JBrowse 2 configuration |
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
a character vector of JSON configuration from a JBrowse 2 configuration file
## Not run: json_config("./config.json")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.