Skip to content

Cava crashes when annotating certain transcripts #10

@jrwalsh

Description

@jrwalsh

I have encountered a crash when annotating the transcript ENST00000390367.3 using Cava v1.2.0. Cava throws and error from the makeProteinString function of csn.py relating to an index out of bounds error.

This seems to be related to transcripts defined with an incomplete terminal codon and no UTR region. Variants in the position of the incomplete codon cannot be translated to an amino acid, causing the index error. When a UTR is present, it seems that cava will still define amino acids beyond the coding region, so there is no index error or crash.

This can be reproduced using this cava_db definition:
ENST00000390367.3 TRBV11-1 ENSG00000211720 -/0.5kb/2/0.4kb/115 7 -1 142223819 142224284 18 142224267 142223820 142224218 142224284 142223819 142224117

and either of these 2 variants:
chr7 142223820 . G T 39.13 LOW_VQSLOD
chr7 142223821 . G T 39.13 LOW_VQSLOD

Cava reports successful completion despite the hard crash. It would be preferable to have cava report a failure.

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