Skip to content

Commit

Permalink
Merge e72db79 into 943bcf7
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-gawron authored Jun 15, 2016
2 parents 943bcf7 + e72db79 commit 2773c0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/sources/BigBedDataSource.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ function createFromBigBedFile(remoteSource: BigBed): BigBedSource {
coveredRanges = ContigInterval.coalesce(coveredRanges);
var genes = fb.rows.map(parseBedFeature);
genes.forEach(gene => addGene(gene));
o.trigger('newdata', interval);
//we have new data from our internal block range
o.trigger('newdata', fb.range);
});
});
}
Expand Down
6 changes: 2 additions & 4 deletions src/main/viz/GeneTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ class GeneTrack extends React.Component {

componentDidMount() {
// Visualize new reference data as it comes in from the network.
this.props.source.on('newdata', () => {
var range = this.props.range,
ci = new ContigInterval(range.contig, range.start, range.stop);
this.props.source.on('newdata', (range) => {
this.setState({
genes: this.props.source.getGenesInRange(ci)
genes: this.props.source.getGenesInRange(range)
});
});

Expand Down

0 comments on commit 2773c0c

Please sign in to comment.