diff --git a/js/browser.js b/js/browser.js index 0176bffb8..7d655b8f4 100755 --- a/js/browser.js +++ b/js/browser.js @@ -60,6 +60,7 @@ import igvCss from "./embedCss.js" import {sampleInfoTileWidth, sampleInfoTileXShim} from "./sample/sampleInfoConstants.js" import QTLSelections from "./qtl/qtlSelections.js" import {inferFileFormat} from "./util/fileFormatUtils.js" +import {convertToHubURL} from "./ucsc/ucscUtils.js" // css - $igv-scrollbar-outer-width: 14px; @@ -824,6 +825,10 @@ class Browser { */ async loadGenome(idOrConfig) { + if(idOrConfig.genarkAccession) { + idOrConfig.url = convertToHubURL(idOrConfig.genarkAccession) + } + // Translate the generic "url" field, used by clients such as igv-webapp if (idOrConfig.url) { if (StringUtils.isString(idOrConfig.url) && idOrConfig.url.endsWith("/hub.txt")) {