Skip to content

Commit

Permalink
Merge pull request #108 from chrovis/fix/fix-extension-condition
Browse files Browse the repository at this point in the history
NullPointerException case in vcf-variant->hgvs
  • Loading branch information
federkasten authored Oct 15, 2024
2 parents bef787d + 2c0c034 commit 2fd3fb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/varity/vcf_to_hgvs/protein.clj
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,11 @@
(count ref-exon-seq) (:name rg) (:name2 rg))
{:type :unknown, :pos nil, :ref nil, :alt nil})

(not= (last ref-prot-seq) \*)
(do (log/warnf "Last codon is not stop codon: %s (%s, %s)"
(str (last ref-prot-seq)) (:name rg) (:name2 rg))
{:type :unknown, :pos nil, :ref nil, :alt nil})

:else
(let [alt-prot-seq* (format-alt-prot-seq seq-info)
ppos (protein-position pos rg)
Expand Down

0 comments on commit 2fd3fb8

Please sign in to comment.