Skip to content

Commit

Permalink
Merge pull request #302 from rpetit3/patch-1
Browse files Browse the repository at this point in the history
Solution 1: for fixing CARD download
  • Loading branch information
Christoph Püthe authored Sep 7, 2020
2 parents aa43ddd + 307e9c6 commit 3704e07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ariba/ref_genes_getter.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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|bz2))"''')
p = re.compile(r'''href="(/download/0/.*?broad.*?v([0-9]+\.[0-9]+\.[0-9]+)\.tar\.(gz|bz2))"''')
versions = {}

with open(tmp_file) as f:
Expand Down

0 comments on commit 3704e07

Please sign in to comment.