Skip to content

Fix short_description for PrematureStop with empty aa_ref #216

@joaoe

Description

@joaoe

Consider the variant chr1 99772782 A ATAA on GRCm38. It produces a annotation on transcript ENSMUST00000086738. The short_descriptionis p.7*.
This seems wrong. It should be p.7ins*. The code in PrematureStop.short_description does not handle empty aa_ref, unlike the code in KnownAminoAcidChange.short_description.

Suggestion: move the code from KnownAminoAcidChange.short_description into a function that accepts the arguments aa_ref,aa_alt,aa_mutation_start_offset. Call that function from both KnownAminoAcidChange and PrematureStopwhere the latter appends the stop codon * to aa_alt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions