Skip to content

Commit 165f603

Browse files
committed
Apply HLA- prefix correctly if the result is an allele list
1 parent ece47dd commit 165f603

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pyard/ard.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ def _redux_allele(
189189
hla, allele_name = allele.split("-")
190190
redux_allele = self._redux_allele(allele_name, redux_type)
191191
if redux_allele:
192+
if "/" in redux_allele:
193+
return "/".join(["HLA-" + ra for ra in redux_allele.split("/")])
192194
return "HLA-" + redux_allele
193195
else:
194196
return redux_allele

0 commit comments

Comments
 (0)