diff --git a/mGAP/resources/web/mGAP/DownloadWindow.js b/mGAP/resources/web/mGAP/DownloadWindow.js
index f18dffef..fde3f1b1 100644
--- a/mGAP/resources/web/mGAP/DownloadWindow.js
+++ b/mGAP/resources/web/mGAP/DownloadWindow.js
@@ -54,9 +54,10 @@ Ext4.define('mGAP.window.DownloadWindow', {
LDK.Assert.assertNotEmpty('Missing objectId variantCatalogReleases', results.rows[0].objectId);
- var releaseVcf = results.rows[0].objectId + '/' + results.rows[0]['vcfId/dataid/Name'];
- var urlFasta = results.rows[0]['vcfId/library_id/fasta_file/Name'];
- var sitesOnlyVcf = results.rows[0].objectId + '/' + results.rows[0]['sitesOnlyVcfId/dataid/Name'];
+ var releaseVcfWithGUID = results.rows[0].objectId + '/' + results.rows[0]['vcfId/dataid/Name'];
+ var sitesOnlyVcfWithGUID = results.rows[0].objectId + '/' + results.rows[0]['sitesOnlyVcfId/dataid/Name'];
+ var genomeFasta = results.rows[0]['vcfId/library_id/fasta_file/Name'];
+ var genomeDict = genomeFasta.replace(/fasta$/, 'dict')
const getFileName = function(path){
path = path.split('/');
@@ -66,16 +67,16 @@ Ext4.define('mGAP.window.DownloadWindow', {
var toAdd = [{
html: 'Due to the large file size, the preferred option is to download using wget or curl on the command line, such as the exmaples below. Nonetheless, you also are able to paste the URLs into your browser and download through this way as well, although it will be slower and possibly not able to resume if your connection is disrupted.
' +
'Use these to download the VCF and index. Note, -C will allow file resume if the download is disrupted:
' +
- '
curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + releaseVcf + '' + - (sitesOnlyVcf ? + '
' + - 'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + releaseVcf + '.tbi
curl -C - -o ' + getFileName(releaseVcfWithGUID) + ' https://mgapdownload.ohsu.edu/' + releaseVcfWithGUID + '' + + (sitesOnlyVcfWithGUID ? 'or a VCF without genotypes (considerably smaller):
' + + 'curl -C - -o ' + getFileName(releaseVcfWithGUID) + '.tbi' + ' https://mgapdownload.ohsu.edu/' + releaseVcfWithGUID + '.tbi
curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '' : '') + + '
' + - 'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '.tbi
curl -C - -o ' + getFileName(sitesOnlyVcfWithGUID) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcfWithGUID + '' : '') + 'and genome:
' + + 'curl -C - -o ' + getFileName(sitesOnlyVcfWithGUID) + '.tbi' + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcfWithGUID + '.tbi
curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '' + '
' + - 'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '.fai
' + - 'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta.replace(/fasta$/, 'dict') + '
curl -C - -o ' + getFileName(genomeFasta) + ' https://mgapdownload.ohsu.edu/genomes/' + genomeFasta + '' },{ html: '
' + + 'curl -C - -o ' + getFileName(genomeFasta) + '.fai' + ' https://mgapdownload.ohsu.edu/genomes/' + genomeFasta + '.fai
' + + 'curl -C - -o ' + getFileName(genomeDict) + ' https://mgapdownload.ohsu.edu/genomes/' + genomeDict + '