From be7989cfb12267ef4315dd020402720099addc7a Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Fri, 12 Jun 2015 16:39:17 -0400 Subject: [PATCH] un-magic --- cycledash/static/js/examine/components/PileupViewer.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cycledash/static/js/examine/components/PileupViewer.js b/cycledash/static/js/examine/components/PileupViewer.js index 0e1221b..4d14fda 100644 --- a/cycledash/static/js/examine/components/PileupViewer.js +++ b/cycledash/static/js/examine/components/PileupViewer.js @@ -11,6 +11,9 @@ var React = require('react'), var CHUNKS_LOADING = 'loading', CHUNKS_NOT_AVAILABLE = null; +// Number of loci to show around the variant. +var VIEW_WINDOW = 50; + var PileupViewer = React.createClass({ propTypes: { isOpen: React.PropTypes.bool, @@ -147,8 +150,8 @@ var PileupViewer = React.createClass({ rangeForRecord: function(record) { return { contig: record.contig, - start: record.position - 25, - stop: record.position + 25 + start: record.position - VIEW_WINDOW / 2, + stop: record.position + VIEW_WINDOW / 2 }; }, fetchIndexChunks: function() {