Releases: nmdp-bioinformatics/py-ard
BugFix for HLA Prefix
Reduce to Shortnulls
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
Support shortnull
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
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
Fix regression error for MAC reduction #152
Add reduce_2field reduce option
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
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
Fixes a breaking change where all allele lists in IMGTHLA repo have been moved to /allelelist/
subdirectory.
Bug fixes for Batch Processing
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
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
-------------------------------------------