Skip to content

Error when validating hgvs_pro deletions: 'AARefAlt' object has no attribute 'ref_n' #672

@jstone-dev

Description

@jstone-dev

When a new score set with hgvs_pro strings includes a deletion, the variants cannot be validated, and the following error is logged:

{
  "type": "AttributeError",
  "exception": "'AARefAlt' object has no attribute 'ref_n'",
  "location": [
    ["/code/src/mavedb/worker/jobs.py", 168, "create_variants_for_score_set"],
    ["/code/src/mavedb/lib/validation/dataframe/dataframe.py", 88, "validate_and_standardize_dataframe_pair"],
    ["/code/src/mavedb/lib/validation/dataframe/dataframe.py", 170, "validate_dataframe"],
    ["/code/src/mavedb/lib/validation/dataframe/variant.py", 169, "validate_hgvs_genomic_column"],
    ["/code/src/mavedb/lib/validation/dataframe/variant.py", 169, "<listcomp>"],
    ["/code/src/mavedb/lib/validation/dataframe/variant.py", 238, "validate_genomic_variant"]
  ]
}

This appears to be due to an unresolved problem in the hgvs package: biocommons/hgvs#727

Metadata

Metadata

Assignees

No one assigned

    Labels

    app: backendTask implementation touches the backendapp: workerTask implementation touches the workertype: bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions