Skip to content

Conversation

@pbashyal-nmdp
Copy link
Contributor

Depending upon whether the expanded alleles for a MAC code contains a : or not, the expansion should be treated differently.

>>> import pyard
>>> ard = pyard.ARD()
>>> ard.expand_mac('B*08:ASXJP')
['B*08:01', 'B*08:19N', 'B*08:109', 'B*08:173']

>>> ard.redux_gl('B*08:ASXJP', 'G')
'B*08:01:01G'
>>> ard.redux_gl('B*08:ASXJP', 'lgx')
'B*08:01'

>>> ard.redux_gl('B*08:AB', 'lgx')
'B*08:01/B*08:02'

Closes #64

  - Depending upon whether the expanded alleles contains a : or not, the expansion should be treated differently.
Copy link
Contributor

@mmaiers-nmdp mmaiers-nmdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmaiers-nmdp mmaiers-nmdp merged commit 5d7d42b into nmdp-bioinformatics:master Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Differntiate allelic expansion with MAC codes

2 participants