Fix "no such property, 'protein_ID'" for `pantools add_variants`
Problem
With pantools add_annotations
, both mRNA and transcript features are treated as mRNA. However, they don't always have CDS nodes connected. This causes the following properties to missing in mRNA nodes in this case: "protein_ID", "protein_length", "nucleotide_sequence", "protein_sequence". For pantools add_variants
, this causes issues if the mRNA node to which the variant nodes are connected lacks these properties.
Fix
Skip variant node if "protein_ID" is unavailable.