Skip to content

Commit

Permalink
update version and fix bam download
Browse files Browse the repository at this point in the history
  • Loading branch information
samwachspress committed Sep 9, 2021
1 parent 5ee4277 commit 77e76ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
install:
- openssl aes-256-cbc -K $encrypted_86f5a1ab1ccf_key -iv $encrypted_86f5a1ab1ccf_iv -in env_config.zip.enc -out env_config.zip -d
- unzip -qo env_config.zip
- export VERSION_NUM=1-7-0f
- export VERSION_NUM=1-7-0g
- export APP_CONFIG=master
- export CLOUD_CONFIG=1
- export GAE_VERSION=${APP_CONFIG}-${VERSION_NUM}
Expand Down
4 changes: 2 additions & 2 deletions base/views/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ def generate_bam_bai_download_script(joined_strain_list):
bam_path = 'bam/{}.bam'.format(strain)
bam_signed_url = generate_download_signed_url_v4(bam_path, expiration=expiration)
if bam_signed_url:
f.write('\nwget -O "{}" "{}"'.format(bam_path, bam_signed_url))
f.write('\nwget -O "{}.bam" "{}"'.format(strain, bam_signed_url))

bai_path = 'bam/{}.bam.bai'.format(strain)
bai_signed_url = generate_download_signed_url_v4(bai_path, expiration=expiration)
if bai_signed_url:
f.write('\nwget "{}"'.format(bai_signed_url))
f.write('\nwget -O "{}.bam.bai" "{}"'.format(strain, bai_signed_url))

f.close()
upload_file(blobPath, f"{BAM_BAI_DOWNLOAD_SCRIPT_NAME}")
Expand Down

0 comments on commit 77e76ba

Please sign in to comment.