Skip to content

Commit c2df0f4

Browse files
committed
Merge discvr-25.11 to develop
2 parents 9685f68 + 3d18f3a commit c2df0f4

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

mGAP/resources/web/mGAP/DownloadWindow.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ Ext4.define('mGAP.window.DownloadWindow', {
5454

5555
LDK.Assert.assertNotEmpty('Missing objectId variantCatalogReleases', results.rows[0].objectId);
5656

57-
var releaseVcf = results.rows[0].objectId + '/' + results.rows[0]['vcfId/dataid/Name'];
58-
var urlFasta = results.rows[0]['vcfId/library_id/fasta_file/Name'];
59-
var sitesOnlyVcf = results.rows[0].objectId + '/' + results.rows[0]['sitesOnlyVcfId/dataid/Name'];
57+
var releaseVcfWithGUID = results.rows[0].objectId + '/' + results.rows[0]['vcfId/dataid/Name'];
58+
var sitesOnlyVcfWithGUID = results.rows[0].objectId + '/' + results.rows[0]['sitesOnlyVcfId/dataid/Name'];
59+
var genomeFasta = results.rows[0]['vcfId/library_id/fasta_file/Name'];
60+
var genomeDict = genomeFasta.replace(/fasta$/, 'dict')
6061

6162
const getFileName = function(path){
6263
path = path.split('/');
@@ -66,16 +67,16 @@ Ext4.define('mGAP.window.DownloadWindow', {
6667
var toAdd = [{
6768
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.<br><br>' +
6869
'Use these to download the VCF and index. Note, -C will allow file resume if the download is disrupted:<br>' +
69-
'<pre>curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + releaseVcf + '<br>' +
70-
'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + releaseVcf + '.tbi</pre>' +
71-
(sitesOnlyVcf ?
70+
'<pre>curl -C - -o ' + getFileName(releaseVcfWithGUID) + ' https://mgapdownload.ohsu.edu/' + releaseVcfWithGUID + '<br>' +
71+
'curl -C - -o ' + getFileName(releaseVcfWithGUID) + '.tbi' + ' https://mgapdownload.ohsu.edu/' + releaseVcfWithGUID + '.tbi</pre>' +
72+
(sitesOnlyVcfWithGUID ?
7273
'or a VCF without genotypes (considerably smaller):<br>' +
73-
'<pre>curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '<br>' +
74-
'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcf + '.tbi</pre>' : '') +
74+
'<pre>curl -C - -o ' + getFileName(sitesOnlyVcfWithGUID) + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcfWithGUID + '<br>' +
75+
'curl -C - -o ' + getFileName(sitesOnlyVcfWithGUID) + '.tbi' + ' https://mgapdownload.ohsu.edu/' + sitesOnlyVcfWithGUID + '.tbi</pre>' : '') +
7576
'and genome:<br>' +
76-
'<pre>curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '<br>' +
77-
'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta + '.fai<br>' +
78-
'curl -C - -o ' + getFileName(releaseVcf) + ' https://mgapdownload.ohsu.edu/genomes/' + urlFasta.replace(/fasta$/, 'dict') + '</pre>'
77+
'<pre>curl -C - -o ' + getFileName(genomeFasta) + ' https://mgapdownload.ohsu.edu/genomes/' + genomeFasta + '<br>' +
78+
'curl -C - -o ' + getFileName(genomeFasta) + '.fai' + ' https://mgapdownload.ohsu.edu/genomes/' + genomeFasta + '.fai<br>' +
79+
'curl -C - -o ' + getFileName(genomeDict) + ' https://mgapdownload.ohsu.edu/genomes/' + genomeDict + '</pre>'
7980
},{
8081
html: '<br><b>mGAP is an NIH funded project. If you use these data in a publication, we ask that you please include R24 OD021324 in the acknowledgements.</b>',
8182
border: false,

0 commit comments

Comments
 (0)