Navigation Menu

Skip to content

Commit

Permalink
New inferHTMLSubfeatures config
Browse files Browse the repository at this point in the history
  • Loading branch information
abretaud committed Mar 19, 2019
1 parent 551c648 commit 4866d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion jbrowse.conf
Expand Up @@ -59,6 +59,8 @@
## sequence dropdown
# refSeqOrder = length descending

## Uncomment to prevent HTML tracks from displaying gene subfeatures (enabled by default)
# inferHTMLSubfeatures = false

## to set a default data directory other than 'data', uncomment and
## edit the line below
Expand Down Expand Up @@ -92,4 +94,3 @@ include += {dataRoot}/tracks.conf
# [datasets.yeast]
# url = ?data=sample_data/json/yeast
# name = Yeast Example

3 changes: 2 additions & 1 deletion src/JBrowse/View/Track/HTMLFeatures.js
Expand Up @@ -703,7 +703,8 @@ define( [
addFeatureToBlock: function( feature, uniqueId, block, scale, labelScale, descriptionScale,
containerStart, containerEnd ) {
var thisB = this;
if( feature.get('type') == 'gene') {

if ((typeof this.browser.config.inferHTMLSubfeatures === 'undefined' || this.browser.config.inferHTMLSubfeatures===true) && feature.get('type') == 'gene') {
var d = dojo.create('div');
var feats = feature.get('subfeatures');
if(!feats) {
Expand Down

0 comments on commit 4866d65

Please sign in to comment.