Skip to content

still problems with py-ard 2.1.0 #385

@mmaiers-nmdp

Description

@mmaiers-nmdp
$ pyard --version
IPD-IMGT/HLA version: 3640
py-ard version: 2.1.0

 pyard -g B63 -r lgx
Traceback (most recent call last):
...
  File "/.../serology_handler.py", line 62, in get_alleles_from_serology
    alleles = db.serology_to_alleles(self.ard.db_connection, serology)
  File "/...pyard/db.py", line 188, in serology_to_alleles
    alleles = result[0].split("/")
              ^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'split'

$ pyard -g B1516 -r lgx
Allele Error: B1516 is not a valid Allele

$ pyard -g A9 -r lgx
A*23:01/A*23:02/A*23:03/A*23:05/A*23:06... A*24:02/A*24:03/A*24:05/A*24:06/A*24:07/...

$ pyard -g A24 -r lgx
A*24:02/A*24:03/A*24:05/A...

Issues:

  1. for B1516, this is getting mis-recognized as a v2 allele.
  2. B63 returns an empty list (since there are not alleles that map to it in 3.64.0). This breaks line 188 in db.py because it is trying to split an empty string

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions