Skip to content

Commit

Permalink
Add a skips and deletions mode for the rendering to avoid cluttered z…
Browse files Browse the repository at this point in the history
…oomed out view
  • Loading branch information
cmdcolin committed Oct 19, 2018
1 parent e78bae3 commit b1042ad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/JBrowse/Store/SeqFeature/BAM.js
Expand Up @@ -267,7 +267,6 @@ return declare( [ SeqFeatureStore, DeferredStatsMixin, DeferredFeaturesMixin, In
featCallback(this._bamRecordToFeature(records[i]))
}
}
console.log(query, Object.keys(pairCache).sort())
endCallback()
})
.catch(err => {
Expand Down
13 changes: 11 additions & 2 deletions src/JBrowse/View/FeatureGlyph/PairedAlignment.js
Expand Up @@ -20,8 +20,17 @@ renderFeature( context, fRect ) {
if(fRect.f.pairedFeature()) {
this.renderConnector( context, fRect );
this.renderSegments( context, fRect );
this._drawMismatches( context, fRect, fRect.f.f1, this._getMismatches( fRect.f.f1 ) );
this._drawMismatches( context, fRect, fRect.f.f2, this._getMismatches( fRect.f.f2 ) );
if( fRect.w > 2 ) {
if( fRect.viewInfo.scale > 0.2 ) {
this._drawMismatches( context, fRect, fRect.f.f1, this._getMismatches( fRect.f.f1 ) );
this._drawMismatches( context, fRect, fRect.f.f2, this._getMismatches( fRect.f.f2 ) );
}
else {
this._drawMismatches( context, fRect, fRect.f.f1, this._getSkipsAndDeletions( fRect.f.f1 ));
this._drawMismatches( context, fRect, fRect.f.f2, this._getSkipsAndDeletions( fRect.f.f2 ));
}
}

} else {
this.inherited(arguments)
}
Expand Down

0 comments on commit b1042ad

Please sign in to comment.