Skip to content

Commit 2a7a1dc

Browse files
Merge branch 'master' into 3130_rename_to_3131
2 parents 22f2c26 + 09cad4e commit 2a7a1dc

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

api-spec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.3
22
info:
33
title: ARD Reduction
44
description: Reduce to ARD Level
5-
version: "0.8.3"
5+
version: "0.9.0"
66
servers:
77
- url: 'http://localhost:8080'
88
tags:

pyard/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@
2525
from .blender import blender as dr_blender
2626

2727
__author__ = """NMDP Bioinformatics"""
28-
__version__ = "0.8.3"
28+
__version__ = "0.9.0"

pyard/data_repository.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
# > http://www.opensource.org/licenses/lgpl-license.php
2222
#
2323
import sys
24+
import copy
2425
from collections import namedtuple
2526
import functools
2627
import sqlite3
@@ -394,7 +395,7 @@ def generate_alleles_and_xx_codes_and_who(
394395
if broad in xx_codes:
395396
xx_codes[broad].extend(xx_codes[split])
396397
else:
397-
xx_codes[broad] = xx_codes[split]
398+
xx_codes[broad] = copy.deepcopy(xx_codes[split])
398399

399400
# Save this version of the valid alleles
400401
db.save_set(db_connection, "alleles", valid_alleles, "allele")

pyard/pyard.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ class ARD(object):
8181
def __init__(
8282
self, imgt_version: str = "Latest", data_dir: str = None, config: dict = None
8383
):
84-
8584
"""
8685
ARD will load valid alleles, xx codes and MAC mappings for the given
8786
version of IMGT database, downloading and generating the database if

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.8.3
2+
current_version = 0.9.0
33
commit = True
44
tag = True
55

setup.py

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

4040
setup(
4141
name="py-ard",
42-
version="0.8.3",
42+
version="0.9.0",
4343
description="ARD reduction for HLA with Python",
4444
long_description=readme + "\n\n" + history,
4545
long_description_content_type="text/markdown",

tests/test_pyard.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,9 @@ def test_allele_duplicated(self):
163163

164164
def test_imgt_db_version(self):
165165
self.assertEqual(self.ard.get_db_version(), int(TestPyArd.db_version))
166+
167+
def test_xx_codes_broad_split(self):
168+
self.assertFalse(
169+
"DQB1*06" in self.ard.redux_gl("DQB1*05:XX", "lgx"),
170+
"The split shouldn't include other splits",
171+
)

0 commit comments

Comments
 (0)