Skip to content

Commit

Permalink
Don't trim alleles when ref == alt for SPDI normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
mihaitodor committed Dec 21, 2023
1 parent 6bae114 commit 16f109b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/SPDI_Normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,5 @@ def get_normalized_spdi(acc, pos, ref, alt):
alleles=(None, alt),
mode=NormalizationMode.EXPAND,
anchor_length=0,
trim=True)
trim=ref != alt)
return (f"{acc}:{new_ival[0]}:{new_alleles[0]}:{new_alleles[1]}")

0 comments on commit 16f109b

Please sign in to comment.