Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed card to utilise .tar.bz2 from .tar.gz #201

Merged
merged 1 commit into from
Nov 8, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ariba/ref_genes_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, ref_db, version=None, debug=False):
def _get_card_versions(self, tmp_file):
print('Getting available CARD versions')
common.download_file('https://card.mcmaster.ca/download', tmp_file, max_attempts=self.max_download_attempts, sleep_time=self.sleep_time, verbose=True)
p = re.compile(r'''href="(/download/.*?broad.*?v([0-9]+\.[0-9]+\.[0-9]+)\.tar\.gz)"''')
p = re.compile(r'''href="(/download/.*?broad.*?v([0-9]+\.[0-9]+\.[0-9]+)\.tar\.bz2)"''')
versions = {}

with open(tmp_file) as f:
Expand Down Expand Up @@ -85,7 +85,7 @@ def _get_from_card(self, outprefix):

print('Getting version', self.version)
card_tarball_url = versions[key]
card_tarball = 'card.tar.gz'
card_tarball = 'card.tar.bz2'
print('Working in temporary directory', tmpdir)
print('Downloading data from card:', card_tarball_url, flush=True)
common.syscall('wget -O ' + card_tarball + ' ' + card_tarball_url, verbose=True)
Expand Down