Skip to content

Commit

Permalink
Remove reference to backup genomes URL (no longer maintained)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Aug 20, 2024
1 parent f858784 commit 3e8c1e8
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions js/genome/genomeUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {convertToHubURL} from "../ucsc/ucscUtils.js"
import Hub from "../ucsc/ucscHub.js"

const DEFAULT_GENOMES_URL = "https://igv.org/genomes/genomes.json"
const BACKUP_GENOMES_URL = "https://s3.amazonaws.com/igv.org.genomes/genomes.json"

const GenomeUtils = {

Expand All @@ -15,21 +14,9 @@ const GenomeUtils = {

// Get default genomes
if (config.loadDefaultGenomes !== false) {
try {
const url = DEFAULT_GENOMES_URL
const jsonArray = await igvxhr.loadJson(url, {timeout: 5000})
processJson(jsonArray)
} catch (e) {
console.error(e)
try {
const url = BACKUP_GENOMES_URL
const jsonArray = await igvxhr.loadJson(url, {})
processJson(jsonArray)
} catch (e) {
console.error(e)
console.warn("Errors loading default genome definitions.")
}
}
const url = DEFAULT_GENOMES_URL
const jsonArray = await igvxhr.loadJson(url, {timeout: 5000})
processJson(jsonArray)
}

// Add user-defined genomes
Expand All @@ -41,6 +28,8 @@ const GenomeUtils = {
} else {
processJson(genomeList)
}
} else {

}

GenomeUtils.KNOWN_GENOMES = table
Expand Down Expand Up @@ -94,7 +83,7 @@ const GenomeUtils = {
}
}

if(!reference) {
if (!reference) {
alert.present(new Error(`Unknown genome id: ${genomeID}`), undefined)
}
}
Expand All @@ -106,5 +95,4 @@ const GenomeUtils = {
}



export default GenomeUtils

0 comments on commit 3e8c1e8

Please sign in to comment.