Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ping mode default #323

Merged
merged 10 commits into from
May 29, 2024

Conversation

pbashyal-nmdp
Copy link
Contributor

Fix ping mode for all

Fixes #321

  • When in ping mode, Alleles that were not already in lgx mode were not reduced properly. For those alleles educe to lgx first.

List of problematic alleles, their P group, the updated lgx reduction and the test to see if they match.

Allele P lgx P == lgx
DRB4*01:03 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:02 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:03 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:04 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:05 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:06 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:07 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:08 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:09 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:10 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:11 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:12 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:13 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:14 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:15 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:16 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:17 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:18 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:19 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:20 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:21 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:22 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:23 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:24 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:25 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:26 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:27 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:28 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:29 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:30 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:31 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:32 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:33 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:34 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:35 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:01 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:03 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:04 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:05 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:06 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:07 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:08 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:09 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:10 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:11 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:12 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:14 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:15 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:16 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:17 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:01:18 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:02:01 DRB4*01:01P DRB4*01:01 True
DRB4*01:03:02:02 DRB4*01:01P DRB4*01:01 True
C*02:10:02 C*02:02P C*02:02 True

- When in `ping` mode, Alleles that were not already in `lgx` mode were not reduced properly. For those alleles educe to `lgx` first.
@pbashyal-nmdp
Copy link
Contributor Author

pbashyal-nmdp commented May 15, 2024

Lots of broken tests with making ping default. Working on fixing them. See
e.g.

       Expected: 'C*06:17'
           but: was 'C*06:02'

@pbashyal-nmdp pbashyal-nmdp changed the title Fix ping mode for all Draft: Fix ping mode for all May 16, 2024
@pbashyal-nmdp pbashyal-nmdp changed the title Draft: Fix ping mode for all **Draft**: Fix ping mode for all May 16, 2024
@pbashyal-nmdp pbashyal-nmdp changed the title **Draft**: Fix ping mode for all **Draft** : Fix ping mode for all May 16, 2024
@pbashyal-nmdp pbashyal-nmdp changed the title **Draft** : Fix ping mode for all Draft: Fix ping mode for all May 16, 2024
 - Remove special ping ard object
 - Fix for `lg` (ARS) mode in `ping` mode
 - Remove duplicate tests in .json
 - `removesuffix()` not available on str
@pbashyal-nmdp pbashyal-nmdp changed the title Draft: Fix ping mode for all Make ping mode default May 21, 2024
@mmaiers-nmdp mmaiers-nmdp merged commit 4a7bb95 into nmdp-bioinformatics:master May 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

g-group reduction for three-field alleles that aren't in a G-group is done incorrectly
2 participants