Skip to content

Commit 083360e

Browse files
committed
refactor: tweak ter site pos check fn
1 parent 658026a commit 083360e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/varity/vcf_to_hgvs/protein.clj

+4-4
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@
179179

180180
(defn- ter-site-same-pos?
181181
[ref-prot-seq alt-prot-seq]
182-
(let [ref-ter-pos (count ref-prot-seq)
183-
alt-ter-pos (inc (count (first (string/split alt-prot-seq #"\*"))))]
184-
(and (string/includes? ref-prot-seq "*")
185-
(string/includes? alt-prot-seq "*")
182+
(and (string/includes? ref-prot-seq "*")
183+
(string/includes? alt-prot-seq "*")
184+
(let [ref-ter-pos (count ref-prot-seq)
185+
alt-ter-pos (inc (count (first (string/split alt-prot-seq #"\*"))))]
186186
(= ref-ter-pos alt-ter-pos))))
187187

188188
(defn- cds-start-upstream?

0 commit comments

Comments
 (0)