Skip to content

Commit

Permalink
Use feature filter to remove features with large insert sizes in view…
Browse files Browse the repository at this point in the history
… as pairs mode
  • Loading branch information
cmdcolin committed Nov 16, 2018
1 parent f5e5eec commit fe07528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/JBrowse/View/FeatureGlyph/PairedAlignment.js
Expand Up @@ -89,9 +89,6 @@ layoutFeature(viewArgs, layout, feature) {
rect.rect.t = 0
}
}
if(feature.get('end') - feature.get('start') > this.track.config.maxInsertSize) {
rect.l = Infinity
}

return rect;
}
Expand Down
8 changes: 6 additions & 2 deletions src/JBrowse/View/Track/Alignments2.js
Expand Up @@ -251,8 +251,12 @@ return declare( [ CanvasFeatureTrack, AlignmentsMixin ], {
} else {
this.inherited(arguments);
}
}

},

constructor() {
this.addFeatureFilter(feat => {
return this.config.viewAsPairs && feat.get('end') - feat.get('start') < this.config.maxInsertSize
})
}
});
});

0 comments on commit fe07528

Please sign in to comment.