Skip to content

Commit

Permalink
Use twobit refseq index
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Jun 2, 2018
1 parent 1ba9b82 commit ea0d0b6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/JBrowse/Browser.js
Expand Up @@ -554,6 +554,13 @@ loadRefSeqs: function() {
});
return;
}
if( this.config.refSeqs.url && this.config.refSeqs.url.match(/.2bit$/) ) {
new TwoBit({browser: this, faiUrlTemplate: this.config.refSeqs.url})
.getRefSeqs(function(refSeqs) {
thisB.addRefseqs(refSeqs);
deferred.resolve({success:true});
});
}
else if( 'data' in this.config.refSeqs ) {
this.addRefseqs( this.config.refSeqs.data );
deferred.resolve({success:true});
Expand Down

0 comments on commit ea0d0b6

Please sign in to comment.