Skip to content

Commit

Permalink
add explicit genark support in genome config (to support webapp)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 20, 2024
1 parent 20f48e0 commit 6b31603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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")) {
Expand Down

0 comments on commit 6b31603

Please sign in to comment.