Skip to content

Commit

Permalink
Add test for homopolymer indel
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ford committed Mar 15, 2024
1 parent d6421d7 commit ef3cfda
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_alignment_variants/test_call_variants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ def test_call_variants_insertion():
variants = call_variants(assembly_seq, cigar_list, wildtype_seq)
assert variants == {(3, "insG")}

def test_call_variants_homo_insertion():
assembly_seq = "AGCGGGTA"
wildtype_seq = "AGCTA" # Insertion at position 3
cigar_list = [(3, "="), (3, "D"), (2, "=")]

variants = call_variants(assembly_seq, cigar_list, wildtype_seq)
assert variants == {(3, "insGGG")}


def test_call_variants_deletion():
assembly_seq = "AGTA"
wildtype_seq = "AGCTA" # Deletion at position 3
Expand Down

0 comments on commit ef3cfda

Please sign in to comment.