Skip to content

Releases: nmdp-bioinformatics/py-ard

BugFix for HLA Prefix

19 May 16:02
de3eb47
Compare
Choose a tag to compare

Reduce to Shortnulls

29 Mar 18:12
d798dfe
Compare
Choose a tag to compare

Implement shortnulls behavior with new config variable set to True by default.

This will address things like DRB4*01:03N and DRB5*01:08N both in terms of accepting them as valid and also by expanding them as appropriate to the list of longer alleles that have the same expression character.

DRB5*01:08N is acceptable by WHO rules since all suballeles have N.
DRB4*01:03N is acceptable by WMDA (but not WHO) rules but this needs to be handled for things like HF analysis by expansion to something valid (vs rejection) to avoid bias

When there are multiple expression characters in the same group defined by a shortname create multiple shortnulls for the same WHO group. e.g.

{'N', 'L'}  A*02:01
{'L', 'Q'}  A*02:01:01
{'L', 'Q'}  A*24:02
{'L', 'Q'}  A*24:02:01
{'L', 'Q'}  A*31:01
{'N', 'Q'}  A*31:01:02
{'N', 'Q'}  B*15:01
{'N', 'Q'}  B*15:01:01
{'N', 'Q'}  B*44:02

See #154 and #155

Support shortnull

26 Mar 18:16
feaf02b
Compare
Choose a tag to compare

Implements shortnulls behavior with new config variable set to True by default.

This will address things like DRB4*01:03N and DRB5*01:08N both in terms of accepting them as valid and also by expanding them as appropriate to the list of longer alleles that have the same expression character.

DRB5*01:08N is acceptable by WHO rules since all suballeles have N.
DRB4*01:03N is acceptable by WMDA (but not WHO) rules but this needs to be handled for things like HF analysis by expansion to something valid (vs rejection) to avoid bias

Summary Table for Batch

23 Mar 18:56
dce480b
Compare
Choose a tag to compare

Show summary table for failed alleles.

Summary
-------
35 alleles failed to reduce.
| Column  Name    |      Allele      |      Did you mean ?
| --------------- | ---------------- | -------------------------
| r_A_TYPE1       | A*24:09          | A*24:09N
| r_A_TYPE1       | A*33:157         | A*33:157N
| r_A_TYPE1       | A*26:25          | A*26:25N
| r_A_TYPE1       | A*23:19          | A*23:19N
| r_A_TYPE1       | A*24:02:01:02    | A*24:02:01:02L

Fix batch regression error

21 Mar 22:47
429779d
Compare
Choose a tag to compare

Fix regression error for MAC reduction #152

Add reduce_2field reduce option

23 Feb 21:12
9620c56
Compare
Choose a tag to compare

Batch csv pyard-reduce-csv takes in reduce_2field option to reduce 2 fields alleles like B*15:220, DPB1*104:01 and A*02:642

Stricter Data Validation

14 Feb 20:55
01ce64c
Compare
Choose a tag to compare

Version 0.7.0 has stricter data validation. It will not silently fail by returning an empty '' string. It'll return of the Invalid exceptions in pyard.exceptions when calling redux_gl method with invalid GL String.

See CHANGELOG.md for full changelog.

Fix for IMGT URL Change

24 Jan 23:32
d3fff97
Compare
Choose a tag to compare

Fixes a breaking change where all allele lists in IMGTHLA repo have been moved to /allelelist/ subdirectory.

Bug fixes for Batch Processing

13 Dec 21:30
dd5c07d
Compare
Choose a tag to compare

Batch Reduce Fixes:

  • Fix Instantiation of pyard.ARD object.
  • Fix serology check
  • Fix issue with P groups
  • A new flag convert_v2_to_v3 to convert v2 to v3 but not reduce.

pyard-status command to check the status of all tables in the databases

27 Sep 17:59
49956e8
Compare
Choose a tag to compare

pyard-status command to check the status of all tables in the databases. This will help to see if there are missing tables and also to compare number of data between versions.

-------------------------------------------
IMGT DB Version: 3290
-------------------------------------------
|Table Name          |Rows                |
|-----------------------------------------|
|dup_g               |                  17|
|dup_lg              |                   0|
|dup_lgx             |                   0|
|g_group             |                2786|
|lg_group            |                2786|
|lgx_group           |                2786|
MISSING: exon_group table
MISSING: p_group table
|alleles             |               18451|
|xx_codes            |                 946|
MISSING: who_alleles table
MISSING: who_group table
-------------------------------------------