Skip to content

Commit

Permalink
refactor: tweak ter site pos check fn
Browse files Browse the repository at this point in the history
  • Loading branch information
nokara26 committed Jan 21, 2025
1 parent 4610278 commit aaf40df
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/varity/vcf_to_hgvs/protein.clj
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,10 @@

(defn- ter-site-same-pos?
[ref-prot-seq alt-prot-seq]
(let [ref-ter-pos (count ref-prot-seq)
alt-ter-pos (inc (count (first (string/split alt-prot-seq #"\*"))))]
(and (string/includes? ref-prot-seq "*")
(string/includes? alt-prot-seq "*")
(and (string/includes? ref-prot-seq "*")
(string/includes? alt-prot-seq "*")
(let [ref-ter-pos (count ref-prot-seq)
alt-ter-pos (inc (count (first (string/split alt-prot-seq #"\*"))))]
(= ref-ter-pos alt-ter-pos))))

(defn- cds-start-upstream?
Expand Down

0 comments on commit aaf40df

Please sign in to comment.