Skip to content

Commit

Permalink
Session. Handle local BAM data/index files
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Jan 26, 2024
1 parent 317cf44 commit fdd6460
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion js/sessionUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ async function initializeSessionUtilities(browser, $igvMain, initializeDropbox,
for (const config of localTrackFileConfigs) {
sessionLocalTrackFilesDictionary[ config.filename ] = config
}
presentLocalTrackFileModal(document.querySelector('#igv-local-track-file-card'), localTrackFileConfigs.map(({filename}) => filename))
const names = localTrackFileConfigs.map(({file}) => file)
const indexFilenames = localTrackFileConfigs.filter(config => undefined !== config.indexFile).map(({ indexFile}) => indexFile)
if (indexFilenames.length > 0) {
names.push(...indexFilenames)
}
presentLocalTrackFileModal(document.querySelector('#igv-local-track-file-card'), names)
}

} catch (e) {
Expand Down

0 comments on commit fdd6460

Please sign in to comment.