Skip to content

Commit c161a91

Browse files
committed
fix: add substitution condition to delins
1 parent bf3dff0 commit c161a91

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/varity/vcf_to_hgvs/protein.clj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@
650650
(every? empty? [del ins])
651651
(mut/protein-no-effect)
652652

653+
(= 1 (count del) (count ins))
654+
(protein-substitution ppos* pref* palt* seq-info)
655+
653656
(empty? del)
654657
(protein-insertion ppos* pref* palt* seq-info)
655658

test/varity/vcf_to_hgvs_test.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@
201201
"chr17" 31159027 "TGC" "T" '("p.A75*") ; not actual example (+, nonsense in del case)
202202
"chr2" 47478341 "TG" "T" '("p.L762*" "p.L696*") ;; rs786204050 (+) frameshift with termination
203203
"chr17" 7676202 "T" "TGTCCCTTAGTCTT" '("p.P58*" "p.P19*") ; cf. not actual example (-, frameshift with termination)
204+
"chr13" 24421115 "TGACTTAGCC" "T" '("p.G1724K") ; not actual example (-, del includes termination codon)
204205

205206
;; deletion
206207
"chr1" 240092288 "AGTC" "A" '("p.S61del") ; cf. rs772088733 (+)

0 commit comments

Comments
 (0)