Skip to content

Commit

Permalink
If _samHeader.refSeqNameToId exists, pass through instead of checking…
Browse files Browse the repository at this point in the history
… for refseq existing in it
  • Loading branch information
cmdcolin committed Dec 9, 2018
1 parent 86dccc6 commit 0cdaa73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JBrowse/Store/SeqFeature/CRAM.js
Expand Up @@ -210,7 +210,7 @@ return declare( [ SeqFeatureStore, DeferredStatsMixin, DeferredFeaturesMixin, Gl
_refNameToId(refName) {
// use info from the SAM header if possible, but fall back to using
// the ref seq order from when the browser's refseqs were loaded
if (this._samHeader.refSeqNameToId && refName in this._samHeader.refSeqNameToId)
if (this._samHeader.refSeqNameToId)
return this._samHeader.refSeqNameToId[refName]
else
return this.browser.getRefSeqNumber(refName)
Expand Down

0 comments on commit 0cdaa73

Please sign in to comment.