Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// that case.
locus = [fallbackLocus]
}
const genesTrackName = `Genes | ${bamAndBaiFiles[0].genomeAnnotation.name}`
const genesTrack = getGenesTrack(gtfFiles, genomeId, genesTrackName)
const bamTracks = getBamTracks(bamAndBaiFiles)
const tracks = [genesTrack].concat(bamTracks)
const igvOptions = { reference, locus, tracks }
if (typeof searchOptions !== 'undefined') {
igvOptions['search'] = searchOptions
}
igv.createBrowser(igvContainer, igvOptions)
// Log igv.js initialization in Google Analytics
ga('send', 'event', 'igv', 'initialize')
log('igv:initialize')
}