File tree Expand file tree Collapse file tree 7 files changed +20
-10
lines changed Expand file tree Collapse file tree 7 files changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ LABEL MAINTAINER="Pradeep Bashyal"
44
55WORKDIR /app
66
7- ARG PY_ARD_VERSION=1.1.2
7+ ARG PY_ARD_VERSION=1.1.3
88
99COPY requirements.txt /app
1010RUN pip install --no-cache-dir --upgrade pip && \
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ openapi: 3.0.3
22info :
33 title : ARD Reduction
44 description : Reduce to ARD Level
5- version : " 1.1.2 "
5+ version : " 1.1.3 "
66servers :
77 - url : ' http://localhost:8080'
88tags :
Original file line number Diff line number Diff line change 2626from .misc import get_imgt_db_versions as db_versions
2727
2828__author__ = """NMDP Bioinformatics"""
29- __version__ = "1.1.2 "
29+ __version__ = "1.1.3 "
3030
3131
3232def init (
Original file line number Diff line number Diff line change @@ -258,8 +258,15 @@ def _redux_allele(
258258
259259 return exon_group_allele
260260 else :
261- # for 'exon' return allele with only first 3 fields
262- return ":" .join (allele .split (":" )[0 :3 ])
261+ # Expand to W level and then reduce to exon
262+ w_redux = self .redux (allele , "W" )
263+ # If the W redux produces 2 field allele or the same allele,
264+ # don't recurse
265+ if w_redux == allele or len (w_redux .split (":" )) == 2 :
266+ return allele
267+ else :
268+ # recurse with the W fields
269+ return self .redux (w_redux , "exon" )
263270 elif redux_type == "U2" :
264271 allele_fields = allele .split (":" )
265272 # If resolved out to second field leave alone
Original file line number Diff line number Diff line change 11[bumpversion]
2- current_version = 1.1.2
2+ current_version = 1.1.3
33commit = True
44tag = True
55
Original file line number Diff line number Diff line change 3636
3737setup (
3838 name = "py-ard" ,
39- version = "1.1.2 " ,
39+ version = "1.1.3 " ,
4040 description = "ARD reduction for HLA with Python" ,
4141 long_description = readme ,
4242 long_description_content_type = "text/markdown" ,
Original file line number Diff line number Diff line change @@ -22,10 +22,13 @@ Feature: WHO expansion and Exon reduction
2222
2323 Scenario Outline : Exon reduction
2424
25+ Exon reductions will expand 2 field alleles to W level before generating
26+ exon level reductions.
27+
2528 Given the typing is <Allele>
2629 When expanding at the <Level> level
2730 Then the expanded allele is found to be <Expanded Alleles>
2831 Examples :
29- | Allele | Level | Expanded Alleles |
30- | DRB1 * 11 :01 | exon | DRB1 * 11 :01 |
31- | A * 01 :01 : 01 : 03 | exon | A * 01 :01 :01 |
32+ | Allele | Level | Expanded Alleles |
33+ | A * 01 :01 : 01 : 03 | exon | A * 01 :01 : 01 |
34+ | DRB1 * 11 :01 | exon | DRB1 * 11 : 01 :01 / DRB1 * 11 :01 : 02 / DRB1 * 11 : 01 : 03 / DRB1 * 11 : 01 : 04 / DRB1 * 11 : 01 : 05 / DRB1 * 11 : 01 : 06 / DRB1 * 11 : 01 : 07 / DRB1 * 11 : 01 : 08 / DRB1 * 11 : 01 : 09 / DRB1 * 11 : 01 : 10 / DRB1 * 11 : 01 : 11 / DRB1 * 11 : 01 : 12 / DRB1 * 11 : 01 : 13 / DRB1 * 11 : 01 : 14 / DRB1 * 11 : 01 : 15 / DRB1 * 11 : 01 : 16 / DRB1 * 11 : 01 : 17 / DRB1 * 11 : 01 : 18 / DRB1 * 11 : 01 : 19 / DRB1 * 11 : 01 : 20 / DRB1 * 11 : 01 : 21 / DRB1 * 11 : 01 : 22 / DRB1 * 11 : 01 : 23 / DRB1 * 11 : 01 : 24 / DRB1 * 11 : 01 : 25 / DRB1 * 11 : 01 : 26 / DRB1 * 11 : 01 : 27 / DRB1 * 11 : 01 : 28 / DRB1 * 11 : 01 : 29 / DRB1 * 11 : 01 : 30 / DRB1 * 11 : 01 : 31 / DRB1 * 11 : 01 : 32 / DRB1 * 11 : 01 : 33 / DRB1 * 11 : 01 : 34 / DRB1 * 11 : 01 : 35 / DRB1 * 11 : 01 : 36 / DRB1 * 11 : 01 : 37 / DRB1 * 11 : 01 : 38 / DRB1 * 11 : 01 : 39 / DRB1 * 11 : 01 : 40 / DRB1 * 11 : 01 : 41 / DRB1 * 11 : 01 : 42 / DRB1 * 11 : 01 : 43 |
You can’t perform that action at this time.
0 commit comments