Skip to content

Commit d3fff97

Browse files
authored
Merge pull request #138 from pbashyal-nmdp/0.6.x-fix-imgt-url
IMGT URL fix for 0.6.x release
2 parents dd5c07d + 0855feb commit d3fff97

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

pyard/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
from .pyard import ARD
2525

2626
__author__ = """NMDP Bioinformatics"""
27-
__version__ = '0.6.10'
27+
__version__ = '0.6.11'

pyard/data_repository.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def generate_alleles_and_xx_codes_and_who(db_connection: sqlite3.Connection, img
192192
# date: 2017-07-10
193193
# version: IPD-IMGT/HLA 3.29.0
194194
# origin: https://github.com/ANHIG/IMGTHLA/Allelelist.3290.txt
195-
# repository: https://raw.githubusercontent.com/ANHIG/IMGTHLA/Latest/Allelelist.3290.txt
195+
# repository: https://raw.githubusercontent.com/ANHIG/IMGTHLA/Latest/allelelist/Allelelist.3290.txt
196196
# author: WHO, Steven G. E. Marsh ([email protected])
197197
AlleleID,Allele
198198
HLA00001,A*01:01:01:01
@@ -228,7 +228,7 @@ def generate_alleles_and_xx_codes_and_who(db_connection: sqlite3.Connection, img
228228
if imgt_version == "Latest":
229229
allele_list_url = f'{IMGT_HLA_URL}Latest/Allelelist.txt'
230230
else:
231-
allele_list_url = f'{IMGT_HLA_URL}Latest/Allelelist.{imgt_version}.txt'
231+
allele_list_url = f'{IMGT_HLA_URL}Latest/allelelist/Allelelist.{imgt_version}.txt'
232232
allele_df = pd.read_csv(allele_list_url, header=6, usecols=['Allele'])
233233

234234
# Create a set of valid alleles

scripts/pyard-reduce-csv

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,14 @@ if __name__ == '__main__':
176176
verbose = ard_config["verbose_log"]
177177
white_space_regex = re.compile(r"\s+")
178178

179-
try:
180-
import openpyxl
181-
except ImportError:
182-
print("For Excel output, openpyxl library needs to be installed. "
183-
"Install with:")
184-
print(" pip install openpyxl")
185-
sys.exit(1)
179+
if ard_config["output_file_format"] == 'xlsx':
180+
try:
181+
import openpyxl
182+
except ImportError:
183+
print("For Excel output, openpyxl library needs to be installed. "
184+
"Install with:")
185+
print(" pip install openpyxl")
186+
sys.exit(1)
186187

187188
# Instantiate py-ard object with the latest
188189
ard = pyard.ARD()

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.6.10
2+
current_version = 0.6.11
33
commit = True
44
tag = True
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
setup(
4444
name='py-ard',
45-
version='0.6.10',
45+
version='0.6.11',
4646
description="ARD reduction for HLA with Python",
4747
long_description=readme + '\n\n' + history,
4848
author="CIBMTR",

0 commit comments

Comments
 (0)