Skip to content

Commit f519820

Browse files
committed
cleanup
1 parent d8c9b58 commit f519820

File tree

2 files changed

+29
-28
lines changed

2 files changed

+29
-28
lines changed

pyard/ard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def _redux_allele(
215215
# return allele with only first 2 field
216216
redux_allele = ":".join(allele.split(":")[0:2])
217217
if redux_type == "lg":
218+
# ARS suffix maybe used instead of g
218219
if self._config["ARS_as_lg"]:
219220
return redux_allele + "ARS"
220221
# lg mode has g appended with lgx reduction

tests/features/allele.feature

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Feature: Alleles
77
Then the reduced allele is found to be <Redux Allele>
88

99
Examples:
10-
| Allele | Level | Redux Allele |
11-
| C*02:02 | lg | C*02:02g |
12-
| C*02:02 | lgx | C*02:02 |
13-
| C*02:10 | lg | C*02:02g |
14-
| C*02:10 | lgx | C*02:02 |
15-
| C*06:17 | lgx | C*06:02 |
10+
| Allele | Level | Redux Allele |
11+
| C*02:02 | lg | C*02:02g |
12+
| C*02:02 | lgx | C*02:02 |
13+
| C*02:10 | lg | C*02:02g |
14+
| C*02:10 | lgx | C*02:02 |
15+
| C*06:17 | lgx | C*06:02 |
1616

1717
Scenario Outline: allele reduction
1818

@@ -21,39 +21,39 @@ Feature: Alleles
2121
Then the reduced allele is found to be <Redux Allele>
2222

2323
Examples:
24-
| Allele | Level | Redux Allele |
25-
| A*01:01:01 | G | A*01:01:01G |
26-
| A*01:01:01 | lg | A*01:01g |
27-
| A*01:01:01 | lgx | A*01:01 |
24+
| Allele | Level | Redux Allele |
25+
| A*01:01:01 | G | A*01:01:01G |
26+
| A*01:01:01 | lg | A*01:01g |
27+
| A*01:01:01 | lgx | A*01:01 |
2828

29-
| HLA-A*01:01:01 | G | HLA-A*01:01:01G |
30-
| HLA-A*01:01:01 | lg | HLA-A*01:01g |
31-
| HLA-A*01:01:01 | lgx | HLA-A*01:01 |
29+
| HLA-A*01:01:01 | G | HLA-A*01:01:01G |
30+
| HLA-A*01:01:01 | lg | HLA-A*01:01g |
31+
| HLA-A*01:01:01 | lgx | HLA-A*01:01 |
3232

33-
| DRB1*14:05:01 | lgx | DRB1*14:05 |
34-
| DRB1*14:05:01 | lg | DRB1*14:05g |
33+
| DRB1*14:05:01 | lgx | DRB1*14:05 |
34+
| DRB1*14:05:01 | lg | DRB1*14:05g |
3535

36-
| DRB1*14:06:01 | lgx | DRB1*14:06 |
37-
| DRB1*14:06:01 | lg | DRB1*14:06g |
38-
| C*02:02 | lg | C*02:02g |
39-
| C*02:02 | lgx | C*02:02 |
40-
| C*02:10 | lg | C*02:02g |
41-
| C*02:10 | lgx | C*02:02 |
42-
| C*06:17 | lgx | C*06:17 |
36+
| DRB1*14:06:01 | lgx | DRB1*14:06 |
37+
| DRB1*14:06:01 | lg | DRB1*14:06g |
38+
| C*02:02 | lg | C*02:02g |
39+
| C*02:02 | lgx | C*02:02 |
40+
| C*02:10 | lg | C*02:02g |
41+
| C*02:10 | lgx | C*02:02 |
42+
| C*06:17 | lgx | C*06:17 |
4343

4444

4545
Scenario Outline: allele reduction with ARS suffix
4646

47-
In `g` mode, use `ARS` prefix rather than `g`.
47+
In `g` mode, use `ARS` prefix rather than `g`.
4848

4949
Given the allele as <Allele>
5050
When reducing on the <Level> level with ARS suffix enabled
5151
Then the reduced allele is found to be <Redux Allele>
5252

5353
Examples:
5454
| Allele | Level | Redux Allele |
55-
| A*01:01:01 | lg | A*01:01ARS |
56-
| HLA-A*01:01:01 | lg | HLA-A*01:01ARS |
57-
| DRB1*14:06:01 | lg | DRB1*14:06ARS |
58-
| C*02:02 | lg | C*02:02ARS |
59-
| C*02:10 | lg | C*02:02ARS |
55+
| A*01:01:01 | lg | A*01:01ARS |
56+
| HLA-A*01:01:01 | lg | HLA-A*01:01ARS |
57+
| DRB1*14:06:01 | lg | DRB1*14:06ARS |
58+
| C*02:02 | lg | C*02:02ARS |
59+
| C*02:10 | lg | C*02:02ARS |

0 commit comments

Comments
 (0)