hgvs
hgvs copied to clipboard
AttributeError: 'AARefAlt' object has no attribute 'ref_n'
When trying to parse the following, and validating I receive the attribute error:
NP_001087241.1:p.K550_E554del
https://cancer.sanger.ac.uk/cosmic/mutation/overview?id=152038808
val='NP_001087241.1:p.K550_E554del'
hp = hgvs.parser.Parser()
hv = hgvs.validator.IntrinsicValidator(strict=True)
hgvs_var = hp.parse_hgvs_variant(val)
assert hv.validate(hgvs_var)
Confirmed. This is a bug.
Ultimately, this stems from the issues discussed in #333 .
I'm currently looking for funding to address issues like this. Until then, I'll gladly accept PRs with tests.