Skip to content

Commit

Permalink
Don't render click maps when doing arc views
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Nov 18, 2018
1 parent 337c390 commit ff96a55
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
8 changes: 1 addition & 7 deletions src/JBrowse/View/FeatureGlyph/PairedArc.js
Expand Up @@ -2,7 +2,7 @@ define([
'dojo/_base/declare',
'dojo/_base/array',
'dojo/_base/lang',
'JBrowse/View/FeatureGlyph/Box',
'JBrowse/View/FeatureGlyph/Alignment',
'JBrowse/View/FeatureGlyph/AlignmentColoring'
],
function(
Expand All @@ -18,11 +18,6 @@ function(
return this._mergeConfigs(lang.clone(this.inherited(arguments)), {
style: {
color: AlignmentColoring.colorArcs,
color_pair_lr: 'grey',
color_pair_rr: 'navy',
color_pair_rl: 'teal',
color_pair_ll: 'green',
color_nostrand: '#999999',
mouseovercolor: 'rgba(0,0,0,0)',
strandArrow: false,
orientationType: 'fr' // default illumina adapter sequence --> <--
Expand Down Expand Up @@ -50,7 +45,6 @@ function(
context.lineTo(r.drawTo, 1000)
} else {
context.arc(r.drawTo + r.r, 0, Math.abs(r.r), 0, Math.PI)

}
}
context.stroke();
Expand Down
13 changes: 12 additions & 1 deletion src/JBrowse/View/Track/Alignments2.js
Expand Up @@ -4,6 +4,7 @@ define( [
'dijit/MenuItem',
'JBrowse/Util',
'JBrowse/View/Track/CanvasFeatures',
'JBrowse/View/Track/BlockBased',
'JBrowse/View/Track/_AlignmentsMixin'
],
function(
Expand All @@ -12,6 +13,7 @@ define( [
MenuItem,
Util,
CanvasFeatureTrack,
BlockBased,
AlignmentsMixin
) {

Expand Down Expand Up @@ -42,7 +44,7 @@ return declare( [ CanvasFeatureTrack, AlignmentsMixin ], {
viewAsPairs: false,
viewAsSpans: false,
showInterchromosomalArcs: true,
maxInsertSize: 200000,
maxInsertSize: 2000000,

histograms: {
description: 'coverage depth',
Expand Down Expand Up @@ -264,6 +266,15 @@ return declare( [ CanvasFeatureTrack, AlignmentsMixin ], {
this.addFeatureFilter(feat => {
return (this.config.viewAsPairs && feat.get('end') - feat.get('start') < this.config.maxInsertSize) || !this.config.viewAsPairs
})
},

renderClickMap() {
if(this.config.glyph == 'JBrowse/View/FeatureGlyph/PairedArc'
|| this.config.glyph == 'JBrowse/View/FeatureGlyph/PairedReadCloud') {
return
} else {
this.inherited(arguments)
}
}
});
});

0 comments on commit ff96a55

Please sign in to comment.