Skip to content

Commit

Permalink
fix: return unknown when last codon is not stop codon
Browse files Browse the repository at this point in the history
  • Loading branch information
nokara26 committed Oct 14, 2024
1 parent bef787d commit 2c0c034
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 2c0c034

Please sign in to comment.