Skip to content

Commit

Permalink
un-magic
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed Jun 12, 2015
1 parent 5866d0a commit be7989c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cycledash/static/js/examine/components/PileupViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit be7989c

Please sign in to comment.