insertions and deletions share the same index in fuzzy_changes

Create issue
Issue #358 new
Former user created an issue
import regex

string = "TCGTCCCCGCGTGCGCAGGGATCCTCCC"
search_pattern = "(?be)(ATGGTCCCCGCACGCGCGGGGATGGCCCC){s<=5,i<=5,d<=5,s+i+d<=10}"
original_matches = list(regex.finditer(search_pattern, string,))
print(original_matches[0].fuzzy_changes)
#([1, 10, 11, 16, 22], [24], [0, 24])

Comments (1)

  1. Matthew Barnett repo owner

    I think the insert and delete at the same place are just performing a substitution because it has already reached the maximum number of substitutions (i.e. 5).

  2. Log in to comment