Skip to content

Commit

Permalink
added a showBaseMismatches conf var to alignment tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Nov 26, 2012
1 parent 74cc42a commit 8b9db7d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions release-notes.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{{$NEXT}}

* Added a `showBaseMismatches` configuration variable for Alignment
tracks that, when set to false, disables display of per-base
mismatches parsed from a SAM/BAM MD field.

* Fixed a bug with the BAM data backend in which some BAM files were
parsed as if they held no data.

Expand Down
5 changes: 4 additions & 1 deletion src/JBrowse/View/Track/Alignments.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ return declare( HTMLFeatures,
{
maxFeatureScreenDensity: 1.5,
layoutPitchY: 4,
showBaseMismatches: true,
style: {
_defaultLabelScale: 50,
className: 'alignment',
Expand All @@ -28,7 +29,9 @@ return declare( HTMLFeatures,

renderFeature: function(feature, uniqueId, block, scale, containerStart, containerEnd, destBlock ) {
var featDiv = this.inherited( arguments );
this._drawMismatches( feature, featDiv, scale );

if( this.config.showBaseMismatches )
this._drawMismatches( feature, featDiv, scale );

// if this feature is part of a multi-segment read, and not
// all of its segments are aligned, add missing_mate to its
Expand Down

0 comments on commit 8b9db7d

Please sign in to comment.