Skip to content

Commit

Permalink
Allow REF/ALT to be case insensitive
Browse files Browse the repository at this point in the history
See #128
  • Loading branch information
ACEnglish committed Jun 14, 2022
1 parent 2d6e782 commit d449b24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions truvari/comparisons.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def seqsim(allele1, allele2, use_lev=False):
:return: sequence similarity
:rtype: float
"""
allele1 = allele1.upper()
allele2 = allele2.upper()
if use_lev:
return Levenshtein.ratio(allele1, allele2)
scr = edlib.align(allele1, allele2)
Expand Down

0 comments on commit d449b24

Please sign in to comment.