hgvs icon indicating copy to clipboard operation
hgvs copied to clipboard

AttributeError: 'AARefAlt' object has no attribute 'ref_n'

Open EnriqueDMeneses opened this issue 6 years ago • 1 comments

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)

EnriqueDMeneses avatar Oct 30 '19 20:10 EnriqueDMeneses

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.

reece avatar Oct 31 '19 16:10 reece