UNPKG

@gmod/jbrowse

Version:

JBrowse - client-side genome browser

81 lines (77 loc) 19.6 kB
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><title>Global configuration options · JBrowse</title><meta name="viewport" content="width=device-width"/><meta name="generator" content="Docusaurus"/><meta name="description" content="JBrowse supports some other configuration variables that customize the overall behavior of the browser. Each of these variables goes in the top level of JSON configuration files (i.e. jbrowse_conf.json), or in a `[general]` section in textual configuration files (i.e. jbrowse.conf), or outside of the &quot;tracks&quot; section in a trackList.json or tracks.conf."/><meta name="docsearch:language" content="en"/><meta property="og:title" content="Global configuration options · JBrowse"/><meta property="og:type" content="website"/><meta property="og:url" content="https://jbrowse.org/index.html"/><meta property="og:description" content="JBrowse supports some other configuration variables that customize the overall behavior of the browser. Each of these variables goes in the top level of JSON configuration files (i.e. jbrowse_conf.json), or in a `[general]` section in textual configuration files (i.e. jbrowse.conf), or outside of the &quot;tracks&quot; section in a trackList.json or tracks.conf."/><meta name="twitter:card" content="summary"/><link rel="shortcut icon" href="/img/favicon.ico"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/default.min.css"/><link rel="alternate" type="application/atom+xml" href="https://jbrowse.org/blog/atom.xml" title="JBrowse Blog ATOM Feed"/><link rel="alternate" type="application/rss+xml" href="https://jbrowse.org/blog/feed.xml" title="JBrowse Blog RSS Feed"/><script type="text/javascript" src="https://buttons.github.io/buttons.js"></script><link rel="stylesheet" href="/css/main.css"/></head><body class="sideNavVisible separateOnPageNav"><div class="fixedHeaderContainer"><div class="headerWrapper wrapper"><header><a href="/"><h2 class="headerTitle">JBrowse</h2></a><div class="navigationWrapper navigationSlider"><nav class="slidingNav"><ul class="nav-site nav-site-internal"><li class=""><a href="/blog" target="_self">Blog</a></li><li class="siteNavGroupActive"><a href="/docs/installation.html" target="_self">Documentation</a></li><li class=""><a href="/en/demos.html" target="_self">Demos</a></li><li class=""><a href="/en/developers.html" target="_self">Developers</a></li><li class=""><a href="/en/contact.html" target="_self">Contact</a></li><li class=""><a href="/en/references.html" target="_self">References</a></li><li class=""><a href="/en/help.html" target="_self">Help</a></li></ul></nav></div></header></div></div><div class="navPusher"><div class="docMainWrapper wrapper"><div class="container docsNavContainer" id="docsNav"><nav class="toc"><div class="toggleNav"><section class="navWrapper wrapper"><div class="navBreadcrumb wrapper"><div class="navToggle" id="navToggler"><i></i></div><h2><i></i><span>Advanced configuration</span></h2><div class="tocToggler" id="tocToggler"><i class="icon-toc"></i></div></div><div class="navGroups"><div class="navGroup"><h3 class="navGroupCategoryTitle">Tutorial</h3><ul><li class="navListItem"><a class="navItem" href="/docs/installation.html">Installation</a></li><li class="navListItem"><a class="navItem" href="/docs/tutorial.html">Indexed file formats tutorial</a></li><li class="navListItem"><a class="navItem" href="/docs/tutorial_classic.html">Classic quick-start guide</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Configuring tracks</h3><ul><li class="navListItem"><a class="navItem" href="/docs/reference_sequence.html">Reference sequence configuration</a></li><li class="navListItem"><a class="navItem" href="/docs/canvas_features.html">CanvasFeatures</a></li><li class="navListItem"><a class="navItem" href="/docs/html_features.html">HTMLFeatures</a></li><li class="navListItem"><a class="navItem" href="/docs/alignments.html">Alignments tracks</a></li><li class="navListItem"><a class="navItem" href="/docs/bigwig.html">Wiggle/BigWig Tracks</a></li><li class="navListItem"><a class="navItem" href="/docs/variants.html">VCF tracks</a></li><li class="navListItem"><a class="navItem" href="/docs/minimal.html">Minimal JBrowse configurations</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Advanced configuration</h3><ul><li class="navListItem"><a class="navItem" href="/docs/embedding.html">Embedding JBrowse</a></li><li class="navListItem"><a class="navItem" href="/docs/mouse_configs.html">Mouse clicks, menus, and popups</a></li><li class="navListItem"><a class="navItem" href="/docs/configuration_file_formats.html">Configuration File Formats</a></li><li class="navListItem"><a class="navItem" href="/docs/dataset_selector.html">Dataset Selector</a></li><li class="navListItem"><a class="navItem" href="/docs/track_selectors.html">Track Selectors</a></li><li class="navListItem"><a class="navItem" href="/docs/track_metadata.html">Track Metadata</a></li><li class="navListItem navListItemActive"><a class="navItem" href="/docs/global_options.html">Global configuration options</a></li><li class="navListItem"><a class="navItem" href="/docs/compression.html">Compressing JBrowse data</a></li><li class="navListItem"><a class="navItem" href="/docs/authentication.html">HTTP authentication for JBrowse</a></li><li class="navListItem"><a class="navItem" href="/docs/paired_reads.html">Paired read viewing</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Command line</h3><ul><li class="navListItem"><a class="navItem" href="/docs/flatfile-to-json.pl.html">flatfile-to-json.pl</a></li><li class="navListItem"><a class="navItem" href="/docs/remove-track.pl.html">remove-track.pl</a></li><li class="navListItem"><a class="navItem" href="/docs/ucsc-to-json.pl.html">ucsc-to-json.pl</a></li><li class="navListItem"><a class="navItem" href="/docs/generate-names.pl.html">generate-names.pl</a></li><li class="navListItem"><a class="navItem" href="/docs/prepare-refseqs.pl.html">prepare-refseqs.pl</a></li><li class="navListItem"><a class="navItem" href="/docs/biodb-to-json.pl.html">biodb-to-json.pl</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">JBrowse Desktop</h3><ul><li class="navListItem"><a class="navItem" href="/docs/jbrowse_desktop.html">JBrowse Desktop</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">FAQ</h3><ul><li class="navListItem"><a class="navItem" href="/docs/faq.html">JBrowse FAQ</a></li></ul></div><div class="navGroup"><h3 class="navGroupCategoryTitle">Other topics</h3><ul><li class="navListItem"><a class="navItem" href="/docs/url_strings.html">JBrowse URL parameters</a></li><li class="navListItem"><a class="navItem" href="/docs/image_tracks.html">Pre-rendered Image Tracks</a></li><li class="navListItem"><a class="navItem" href="/docs/feature_coverage.html">Feature Coverage Tracks</a></li><li class="navListItem"><a class="navItem" href="/docs/screenshots.html">Automating screenshots of JBrowse</a></li><li class="navListItem"><a class="navItem" href="/docs/events.html">JBrowse Subscribe/Publish events</a></li><li class="navListItem"><a class="navItem" href="/docs/perl_config.html">Sample configuration bash script</a></li><li class="navListItem"><a class="navItem" href="/docs/data_formats.html">JBrowse REST API and Data APIs</a></li><li class="navListItem"><a class="navItem" href="/docs/plugins.html">Installing and writing plugins</a></li><li class="navListItem"><a class="navItem" href="/docs/cors.html">Cross-origin resource sharing (CORS)</a></li><li class="navListItem"><a class="navItem" href="/docs/sparql.html">SPARQL configuration</a></li><li class="navListItem"><a class="navItem" href="/docs/data_export.html">Data export</a></li><li class="navListItem"><a class="navItem" href="/docs/usage_stats.html">Usage Statistics</a></li></ul></div></div></section></div><script> document.addEventListener('DOMContentLoaded', function() { createToggler('#navToggler', '#docsNav', 'docsSliderActive'); createToggler('#tocToggler', 'body', 'tocActive'); const headings = document.querySelector('.toc-headings'); headings && headings.addEventListener('click', function(event) { if (event.target.tagName === 'A') { document.body.classList.remove('tocActive'); } }, false); function createToggler(togglerSelector, targetSelector, className) { var toggler = document.querySelector(togglerSelector); var target = document.querySelector(targetSelector); toggler.onclick = function(event) { event.preventDefault(); target.classList.toggle(className); }; } }); </script></nav></div><div class="container mainContainer"><div class="wrapper"><div class="post"><header class="postHeader"><h1 class="postHeaderTitle">Global configuration options</h1></header><article><div><span><p>JBrowse supports some other configuration variables that customize the overall behavior of the browser. Each of these variables goes in the top level of JSON configuration files (i.e. jbrowse_conf.json), or in a <code>[general]</code> section in textual configuration files (i.e. jbrowse.conf), or outside of the &quot;tracks&quot; section in a trackList.json or tracks.conf.</p> <table> <thead> <tr><th>Option</th><th>Description</th></tr> </thead> <tbody> <tr><td><code>locationBoxLength</code></td><td>The desired size, in characters of the location search box. If not set, the size of the location box is calculated to fit the largest location string that is likely to be produced, based on the length of the reference sequences and the length of their names. Added in JBrowse 1.7.0.</td></tr> <tr><td><code>css</code></td><td>Used to add additional CSS code to the browser at runtime. Can be an array of either strings containing CSS statements, or URLs for CSS stylesheets to load (<code>as json:{url: &quot;/path/to/my.css&quot;}</code>). CSS can of course also be added outside of JBrowse, at the level of the HTML page where JBrowse runs. Added in JBrowse 1.6.2.</td></tr> <tr><td><code>theme</code></td><td>Allows changing the graphical theme from the default Dijit &quot;tundra&quot; theme. Added in JBrowse 1.7.0. Intended primarily for use by plugin implementors or developers integrating JBrowse into a larger system.</td></tr> <tr><td><code>defaultTracks</code></td><td>Comma-separated list of track *labels* to show on initial load if a user has never visited this browser before. Example: &quot;snps,genes,alignments&quot;.</td></tr> <tr><td><code>forceTracks</code></td><td>Comma-separated list of track *labels* to show on initial load, regardless of the user's saved settings, but which is overridden by the URL list. Example: &quot;snps,genes,alignments&quot;.</td></tr> <tr><td><code>defaultLocation</code></td><td>Initial location to be shown for users who have never visited the browser before. Example: &quot;ctgA:1234..5678&quot;.</td></tr> <tr><td><code>view→trackPadding</code></td><td>Spacing between tracks in the genome view, in pixels. Default 20. Added in JBrowse 1.10.10.</td></tr> <tr><td><code>include</code></td><td>Imports one or more other configuration files and merges their data with the file in which this appears. Can be either a string URL of a single file, or an array of string URLs.</td></tr> <tr><td><code>initialHighlight</code></td><td>If set, the given region will be highlighted when the browser loads. Example: &quot;ctgA:1234..5678&quot;.</td></tr> <tr><td><code>highResoutionMode</code></td><td>Enable high-resolution canvas rendering. Can be &quot;auto&quot;, &quot;disabled&quot;, or a numeric specifying a scaling factor. Default &quot;disabled&quot;. Added in JBrowse 1.11.4.</td></tr> <tr><td><code>documentDomain</code></td><td>Set the document.domain property which can assist when JBrowse is in embedded mode and needs to set the same-origin policy. Added in JBrowse 1.11.3.</td></tr> <tr><td><code>shareLink</code></td><td>Enable or disable the share link button. Default: true. Can be 0 or false.</td></tr> <tr><td><code>shareURL</code></td><td>A customized shareURL for the share link button. This can be helpful for an iframe embedding to have the share link point to the page embedding the iframe. A customized example could be &quot;function(browser){ return '<a href="http://myinstance.com/?loc='+browser.view.visibleRegionLocString()">http://myinstance.com/?loc='+browser.view.visibleRegionLocString()</a>; }&quot;</td></tr> <tr><td><code>aboutThisBrowser→title</code></td><td>Title for the &quot;About&quot; popup.</td></tr> <tr><td><code>aboutThisBrowser→description</code></td><td>Custom content for the &quot;About&quot; popup.</td></tr> <tr><td><code>maxRecentTracks</code></td><td>Max length of the recent tracks menu. Default: 10</td></tr> <tr><td><code>show_tracklist</code></td><td>Optionally turn off tracklist. &amp;tracklist=0 in the URL also works. Default: true</td></tr> <tr><td><code>show_nav</code></td><td>Optionally turn off navigation bar. &amp;nav=0 in the URL also works. Default: true</td></tr> <tr><td><code>show_tracklabels</code></td><td>Optionally turn off the track labels. Works when HideTrackLabels plugin is enables. Set &amp;tracklabels=0 in the URL also works. Default: true</td></tr> <tr><td><code>show_fullviewlink</code></td><td>Optionally turn off the &quot;Full-view&quot; link in embedded mode. Set &amp;fullviewlink=0 in the URL. Default: true</td></tr> <tr><td><code>show_overview</code></td><td>Optionally turn off the overview bar. &amp;overview=0 in the URL also works. Default: true</td></tr> <tr><td><code>show_menu</code></td><td>Optionally turn off the menu bar. &amp;menu=0 in the URL also works. Added in 1.11.6. Default: true.</td></tr> <tr><td><code>containerID</code></td><td>Set a prefix on cookies and identify the ID of the div holding JBrowse. Default: GenomeBrowser.</td></tr> <tr><td><code>cookieSizeLimit</code></td><td>Default: 1200</td></tr> <tr><td><code>updateBrowserURL</code></td><td>Enable updating the URL with current view. If you encounter security exceptions from cross domain updating the URL, try disabling. Default: true</td></tr> <tr><td><code>view→maxPxPerBp</code></td><td>Sets the maximum zoom level in pixels per basepair units. Default: 20</td></tr> <tr><td><code>quickHelp→content</code></td><td>Sets the content of the help dialog.</td></tr> <tr><td><code>quickHelp→href</code></td><td>Sets the content of the help dialog using XHR to retrieve content.</td></tr> <tr><td><code>quickHelp→title</code></td><td>Sets the title of the help dialog. Note: other dijit Dialog parameter can also be passed to quickHelp, these are just the basics.</td></tr> <tr><td><code>exactReferenceSequenceNames</code></td><td>Disables the regularizeReferenceSequence routine. Default: false</td></tr> <tr><td><code>refSeqs</code></td><td>A custom URL for your refSeqs.json file (or a webservice returning something in refSeqs.json format). Example: &quot;<a href="http://mysite/refseqs.json">http://mysite/refseqs.json</a>&quot;. Can also be a URL for a FASTA index file in 1.12.0+.</td></tr> <tr><td><code>alwaysOnTracks</code></td><td>Comma-separated list of track *labels* to always show when the browser is opened. Example: &quot;snps,genes,alignments&quot;.</td></tr> <tr><td><code>classicMenu</code></td><td>Boolean to use classic menu style (File) menu. Added in 1.12.0</td></tr> <tr><td><code>hideGenomeOptions</code></td><td>Boolean - Hide the options for opening a sequence file. Added in 1.12.0</td></tr> <tr><td><code>noPluginsForAboutDialog</code></td><td>Boolean - Hide the plugins from the about box. Added in 1.12.3</td></tr> <tr><td><code>trackLabels</code></td><td>Set &quot;trackLabels&quot;: &quot;no-block&quot; to enable the trackLabels to be out of the way of the features. Added in 1.12.5</td></tr> <tr><td><code>allowCrossOriginDataRoot</code></td><td>Allows dataRoot or the ?data= url parameter to point to a remote directory. Default false. This can introduce XSS so it is not recommended on sites that have logins. Note this is set through index.html with the data-config attribute on the GenomeBrowser div</td></tr> <tr><td><code>cacheBuster</code></td><td>Sets a randomized value ?v= on requests to configuration files to avoid aggressive browser caching. Default true. Note this is set through index.html with the data-config attribute on the GenomeBrowser div</td></tr> <tr><td><code>alwaysStopScrollBubble</code></td><td>Since JBrowse 1.16.5 the scroll event can bubble the vertical scroll event instead of capturing and stopping it. This can allow for a more intuitive scrolling in a larger embedded page. If this is unwanted, add <code>alwaysStopScrollBubble: true</code></td></tr> </tbody> </table> <h2><a class="anchor" aria-hidden="true" id="generic-track-configuration-options"></a><a href="#generic-track-configuration-options" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Generic Track Configuration Options</h2> <table> <thead> <tr><th>Option</th><th>Description</th></tr> </thead> <tbody> <tr><td><code>subfeatureDetailLevel</code></td><td>Set the level of detail of the View details box. If set to 1, only displays one level of subfeatures for example. Default: 0 which displays all subfeature levels. Added in 1.12.3</td></tr> <tr><td><code>storeTimeout</code></td><td>Add timeout for calculating the feature track statistics. Mostly applicable to VCF and BAM file for when you get the error &quot;Too many BAM features. BAM chunk size M bytes exceeds chunkSizeLimit of N&quot;</td></tr> </tbody> </table> </span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/docs/track_metadata.html">← Track Metadata</a><a class="docs-next button" href="/docs/compression.html">Compressing JBrowse data →</a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#generic-track-configuration-options">Generic Track Configuration Options</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="sitemap"><div><h5>Docs</h5><a href="/blog">Blog</a><a href="/docs/tutorial.html">Getting Started</a></div><div><h5>Community</h5><a href="https://gitter.im/GMOD/jbrowse">Project Chat</a><a href="https://twitter.com/JBrowseGossip" target="_blank" rel="noreferrer noopener">Twitter</a></div><div><h5>More</h5><a href="https://github.com/GMOD/jbrowse">GitHub</a><a class="github-button" href="https://github.com/GMOD/jbrowse" data-icon="octicon-star" data-count-href="/GMOD/jbrowse/stargazers" data-show-count="true" data-count-aria-label="# stargazers on GitHub" aria-label="Star this project on GitHub">Star</a></div></section><section class="copyright">Copyright © 2019 Evolutionary Software Foundation</section></footer></div></body></html>